2019-10-29 10:19:25 +00:00
|
|
|
#ifndef CREATURELIB_BASETURNCHOICE_HPP
|
|
|
|
#define CREATURELIB_BASETURNCHOICE_HPP
|
|
|
|
|
2020-03-22 12:42:26 +00:00
|
|
|
#include <Arbutils/Assert.hpp>
|
2019-11-10 13:32:05 +00:00
|
|
|
#include "../ScriptHandling/ScriptSource.hpp"
|
2019-11-28 11:55:22 +00:00
|
|
|
#include "TurnChoiceKind.hpp"
|
2019-10-29 10:19:25 +00:00
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
namespace CreatureLib::Battling {
|
2019-10-31 11:02:23 +00:00
|
|
|
class Creature;
|
|
|
|
|
2019-11-10 13:32:05 +00:00
|
|
|
class BaseTurnChoice : public ScriptSource {
|
2019-10-29 10:19:25 +00:00
|
|
|
Creature* _user;
|
2019-11-28 11:55:22 +00:00
|
|
|
|
2019-10-29 10:19:25 +00:00
|
|
|
protected:
|
2020-03-25 18:07:36 +00:00
|
|
|
BaseTurnChoice(Creature* user) noexcept : _user(user){};
|
2019-11-28 11:55:22 +00:00
|
|
|
|
2019-10-29 10:19:25 +00:00
|
|
|
public:
|
|
|
|
virtual ~BaseTurnChoice() = default;
|
2020-03-25 18:07:36 +00:00
|
|
|
[[nodiscard]] virtual TurnChoiceKind GetKind() const noexcept = 0;
|
|
|
|
[[nodiscard]] inline Creature* GetUser() const noexcept { return _user; }
|
2019-10-29 10:19:25 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_BASETURNCHOICE_HPP
|