CreatureLib/src/Battling/Flow/TurnHandler.hpp

29 lines
895 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:
2020-03-22 12:42:26 +00:00
static void RunTurn(ChoiceQueue* queue);
};
}
#endif // CREATURELIB_TURNHANDLER_HPP