24 lines
694 B
C++
24 lines
694 B
C++
#ifndef CREATURELIB_TURNHANDLER_HPP
|
|
#define CREATURELIB_TURNHANDLER_HPP
|
|
|
|
#include "../Models/ExecutingAttack.hpp"
|
|
#include "../TurnChoices/AttackTurnChoice.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,
|
|
const ExecutingAttack::TargetData& targetData);
|
|
|
|
public:
|
|
static void RunTurn(Battle* battle, ChoiceQueue* queue);
|
|
};
|
|
}
|
|
|
|
#endif // CREATURELIB_TURNHANDLER_HPP
|