Files
CreatureLib/src/Battling/TurnChoices/AttackTurnChoice.hpp
Deukhoofd 42c1623985
All checks were successful
continuous-integration/drone/push Build is passing
Fully handle turn ordering
2019-10-31 12:31:31 +01:00

31 lines
780 B
C++

#ifndef CREATURELIB_ATTACKTURNCHOICE_HPP
#define CREATURELIB_ATTACKTURNCHOICE_HPP
#include "BaseTurnChoice.hpp"
#include "../Models/LearnedAttack.hpp"
namespace CreatureLib::Battling{
class AttackTurnChoice : public BaseTurnChoice {
LearnedAttack* _attack;
public:
AttackTurnChoice(Creature* c, LearnedAttack* attack)
: BaseTurnChoice(c), _attack(attack){}
inline LearnedAttack* GetAttack() const{
return _attack;
}
TurnChoiceKind GetKind() const override {
return TurnChoiceKind ::Attack;
}
int8_t GetPriority() const{
//HOOK: Change priority
return _attack->GetAttack()->GetPriority();
}
};
}
#endif //CREATURELIB_ATTACKTURNCHOICE_HPP