CreatureLib/src/Battling/Flow/TurnHandler.hpp

27 lines
803 B
C++
Raw Normal View History

#ifndef CREATURELIB_TURNHANDLER_HPP
#define CREATURELIB_TURNHANDLER_HPP
2019-11-03 12:47:50 +00:00
#include "../Models/ExecutingAttack.hpp"
#include "../TurnChoices/AttackTurnChoice.hpp"
#include "../TurnChoices/SwitchTurnChoice.hpp"
#include "ChoiceQueue.hpp"
namespace CreatureLib::Battling {
class Battle;
class TurnHandler {
2019-11-23 10:53:00 +00:00
static void ExecuteChoice(BaseTurnChoice* choice);
2019-10-31 12:13:36 +00:00
2019-11-23 10:53:00 +00:00
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