Files
CreatureLib/src/Battling/TurnChoices/PassTurnChoice.hpp
Deukhoofd 5fd8abb3a8
Some checks failed
continuous-integration/drone/push Build is failing
Reworks ScriptSources so we can get individual scripts on a source. Fixed OnEndTurn making no sense.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 19:31:08 +02:00

21 lines
711 B
C++

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