More work on basic turn layout.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-11-02 13:57:43 +01:00
parent d7fee13002
commit fc675efdf5
11 changed files with 122 additions and 17 deletions

View File

@@ -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;
}
};
}