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"
|
|
|
|
#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,
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_TURNHANDLER_HPP
|