More work on basic turn layout.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -3,13 +3,15 @@
|
||||
|
||||
#include "BaseTurnChoice.hpp"
|
||||
#include "../Models/LearnedAttack.hpp"
|
||||
#include "../Models/Target.hpp"
|
||||
|
||||
namespace CreatureLib::Battling{
|
||||
class AttackTurnChoice : public BaseTurnChoice {
|
||||
LearnedAttack* _attack;
|
||||
Target _target;
|
||||
public:
|
||||
AttackTurnChoice(Creature* c, LearnedAttack* attack)
|
||||
: BaseTurnChoice(c), _attack(attack){}
|
||||
AttackTurnChoice(Creature* user, LearnedAttack* attack, const Target& target)
|
||||
: BaseTurnChoice(user), _attack(attack), _target(target){}
|
||||
|
||||
inline LearnedAttack* GetAttack() const{
|
||||
return _attack;
|
||||
@@ -23,6 +25,10 @@ namespace CreatureLib::Battling{
|
||||
//HOOK: Change priority
|
||||
return _attack->GetAttack()->GetPriority();
|
||||
}
|
||||
|
||||
const Target& GetTarget() const{
|
||||
return _target;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user