Implements creature switching as turn choice.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-12-14 12:15:30 +01:00
parent 2ee181bca7
commit c25d7b865e
8 changed files with 97 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include "../Models/ExecutingAttack.hpp"
#include "../TurnChoices/AttackTurnChoice.hpp"
#include "../TurnChoices/SwitchTurnChoice.hpp"
#include "ChoiceQueue.hpp"
namespace CreatureLib::Battling {
@@ -15,6 +16,8 @@ namespace CreatureLib::Battling {
static void HandleAttackForTarget(ExecutingAttack* attack, Creature* target,
ExecutingAttack::TargetData* targetData);
static void ExecuteSwitchChoice(SwitchTurnChoice* choice);
public:
static void RunTurn(Battle* battle, ChoiceQueue* queue);
};