CreatureLib/src/Battling/Flow/TurnHandler.hpp

29 lines
911 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"
2019-12-15 10:52:10 +00:00
#include "../TurnChoices/FleeTurnChoice.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);
2019-12-15 10:52:10 +00:00
static void ExecuteFleeChoice(FleeTurnChoice* choice);
public:
static void RunTurn(Battle* battle, ChoiceQueue* queue);
};
}
#endif // CREATURELIB_TURNHANDLER_HPP