2019-12-15 10:52:10 +00:00
|
|
|
#ifndef CREATURELIB_FLEETURNCHOICE_HPP
|
|
|
|
#define CREATURELIB_FLEETURNCHOICE_HPP
|
|
|
|
|
|
|
|
#include "../Models/Creature.hpp"
|
|
|
|
#include "BaseTurnChoice.hpp"
|
|
|
|
|
|
|
|
namespace CreatureLib::Battling {
|
|
|
|
class FleeTurnChoice : public BaseTurnChoice {
|
|
|
|
public:
|
2020-06-02 16:30:37 +00:00
|
|
|
FleeTurnChoice(ArbUt::BorrowedPtr<Creature> user) : BaseTurnChoice(user) {}
|
2019-12-15 10:52:10 +00:00
|
|
|
|
2020-03-25 18:07:36 +00:00
|
|
|
TurnChoiceKind GetKind() const noexcept override { return TurnChoiceKind ::Flee; }
|
2020-04-25 09:33:25 +00:00
|
|
|
size_t ScriptCount() const override { return GetUser()->ScriptCount(); }
|
2019-12-15 10:52:10 +00:00
|
|
|
|
|
|
|
protected:
|
2020-05-26 16:31:06 +00:00
|
|
|
void GetActiveScripts(ArbUt::List<ScriptWrapper>& scripts) override { GetUser()->GetActiveScripts(scripts); }
|
2019-12-15 10:52:10 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CREATURELIB_FLEETURNCHOICE_HPP
|