CreatureLib/src/Battling/TurnChoices/AttackTurnChoice.hpp

31 lines
780 B
C++
Raw Normal View History

#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;
}
2019-10-31 11:31:31 +00:00
int8_t GetPriority() const{
//HOOK: Change priority
return _attack->GetAttack()->GetPriority();
}
};
}
#endif //CREATURELIB_ATTACKTURNCHOICE_HPP