2019-10-31 11:02:23 +00:00
|
|
|
#ifndef CREATURELIB_TURNHANDLER_HPP
|
|
|
|
#define CREATURELIB_TURNHANDLER_HPP
|
|
|
|
|
|
|
|
#include "ChoiceQueue.hpp"
|
2019-10-31 12:13:36 +00:00
|
|
|
#include "../TurnChoices/AttackTurnChoice.hpp"
|
2019-11-03 12:47:50 +00:00
|
|
|
#include "../Models/ExecutingAttack.hpp"
|
2019-10-31 11:02:23 +00:00
|
|
|
|
|
|
|
namespace CreatureLib::Battling {
|
|
|
|
class Battle;
|
|
|
|
|
|
|
|
class TurnHandler {
|
2019-10-31 12:13:36 +00:00
|
|
|
static void ExecuteChoice(const BaseTurnChoice* choice);
|
|
|
|
|
|
|
|
static void ExecuteAttackChoice(const AttackTurnChoice* choice);
|
2019-11-09 12:18:45 +00:00
|
|
|
static void HandleAttackForTarget(ExecutingAttack* attack, Creature* target, const ExecutingAttack::TargetData& targetData);
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //CREATURELIB_TURNHANDLER_HPP
|