Files
CreatureLib/src/Battling/Flow/TurnHandler.hpp
Deukhoofd c25d7b865e
All checks were successful
continuous-integration/drone/push Build is passing
Implements creature switching as turn choice.
2019-12-14 12:15:30 +01:00

27 lines
803 B
C++

#ifndef CREATURELIB_TURNHANDLER_HPP
#define CREATURELIB_TURNHANDLER_HPP
#include "../Models/ExecutingAttack.hpp"
#include "../TurnChoices/AttackTurnChoice.hpp"
#include "../TurnChoices/SwitchTurnChoice.hpp"
#include "ChoiceQueue.hpp"
namespace CreatureLib::Battling {
class Battle;
class TurnHandler {
static void ExecuteChoice(BaseTurnChoice* choice);
static void ExecuteAttackChoice(AttackTurnChoice* choice);
static void HandleAttackForTarget(ExecutingAttack* attack, Creature* target,
ExecutingAttack::TargetData* targetData);
static void ExecuteSwitchChoice(SwitchTurnChoice* choice);
public:
static void RunTurn(Battle* battle, ChoiceQueue* queue);
};
}
#endif // CREATURELIB_TURNHANDLER_HPP