2019-10-31 11:02:23 +00:00
|
|
|
#ifndef CREATURELIB_TURNHANDLER_HPP
|
|
|
|
#define CREATURELIB_TURNHANDLER_HPP
|
|
|
|
|
2019-11-03 12:47:50 +00:00
|
|
|
#include "../Models/ExecutingAttack.hpp"
|
2019-11-28 11:55:22 +00:00
|
|
|
#include "../TurnChoices/AttackTurnChoice.hpp"
|
2019-12-15 10:52:10 +00:00
|
|
|
#include "../TurnChoices/FleeTurnChoice.hpp"
|
2019-12-14 11:15:30 +00:00
|
|
|
#include "../TurnChoices/SwitchTurnChoice.hpp"
|
2019-11-28 11:55:22 +00:00
|
|
|
#include "ChoiceQueue.hpp"
|
2019-10-31 11:02:23 +00:00
|
|
|
|
|
|
|
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);
|
2019-11-28 11:55:22 +00:00
|
|
|
static void HandleAttackForTarget(ExecutingAttack* attack, Creature* target,
|
2019-12-07 21:09:06 +00:00
|
|
|
ExecutingAttack::TargetData* targetData);
|
2019-11-28 11:55:22 +00:00
|
|
|
|
2019-12-14 11:15:30 +00:00
|
|
|
static void ExecuteSwitchChoice(SwitchTurnChoice* choice);
|
2019-12-15 10:52:10 +00:00
|
|
|
static void ExecuteFleeChoice(FleeTurnChoice* choice);
|
2019-12-14 11:15:30 +00:00
|
|
|
|
2019-10-31 11:02:23 +00:00
|
|
|
public:
|
2019-11-06 17:04:00 +00:00
|
|
|
static void RunTurn(Battle* battle, ChoiceQueue* queue);
|
2019-10-31 11:02:23 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_TURNHANDLER_HPP
|