Initial support for ordering choices and getting them ready for execution.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-31 12:02:23 +01:00
parent af611070c5
commit 972af35ecf
11 changed files with 157 additions and 4 deletions

View File

@@ -8,11 +8,16 @@ namespace CreatureLib::Battling{
class AttackTurnChoice : public BaseTurnChoice {
LearnedAttack* _attack;
public:
AttackTurnChoice(Creature* c) : BaseTurnChoice(c){}
AttackTurnChoice(Creature* c, LearnedAttack* attack)
: BaseTurnChoice(c), _attack(attack){}
inline LearnedAttack* GetAttack() const{
return _attack;
}
TurnChoiceKind GetKind() const override {
return TurnChoiceKind ::Attack;
}
};
}

View File

@@ -4,6 +4,8 @@
#include "TurnChoiceKind.hpp"
namespace CreatureLib::Battling{
class Creature;
class BaseTurnChoice {
Creature* _user;
protected: