CreatureLib/src/Battling/TurnChoices/PassTurnChoice.hpp

22 lines
660 B
C++
Raw Normal View History

#ifndef CREATURELIB_PASSTURNCHOICE_HPP
#define CREATURELIB_PASSTURNCHOICE_HPP
#include "BaseTurnChoice.hpp"
namespace CreatureLib::Battling {
class PassTurnChoice : public BaseTurnChoice {
public:
PassTurnChoice(Creature* c) : BaseTurnChoice(c) {}
TurnChoiceKind GetKind() const noexcept override { return TurnChoiceKind ::Pass; }
size_t ScriptCount() const override { return GetUser()->ScriptCount(); }
protected:
void GetActiveScripts(Arbutils::Collections::List<ScriptWrapper>& scripts) override {
GetUser()->GetActiveScripts(scripts);
}
};
}
#endif // CREATURELIB_PASSTURNCHOICE_HPP