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

@@ -6,6 +6,7 @@
#include "../Library/BattleLibrary.hpp"
#include "../TurnChoices/BaseTurnChoice.hpp"
#include "../Flow/ChoiceQueue.hpp"
#include "Target.hpp"
namespace CreatureLib::Battling {
class Battle {
@@ -19,13 +20,19 @@ namespace CreatureLib::Battling {
public:
const BattleLibrary* GetLibrary() const;
virtual bool CanUse(BaseTurnChoice* choice);
virtual bool CanUse(const BaseTurnChoice* choice);
virtual bool TrySetChoice(BaseTurnChoice* choice);
void CheckChoicesSetAndRun();
ChoiceQueue* GetCurrentTurnQueue() const;
Core::Random& GetRandom();
bool CreatureInField(const Creature* creature) const;
Creature* GetTarget(const Target& target){
return _sides[target.GetSideIndex()]->GetCreature(target.GetCreatureIndex());
}
};
}