Initial work on item use handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-13 13:40:33 +01:00
parent 173c6c9926
commit c40f063683
5 changed files with 60 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#include "../Models/ExecutingAttack.hpp"
#include "../TurnChoices/AttackTurnChoice.hpp"
#include "../TurnChoices/FleeTurnChoice.hpp"
#include "../TurnChoices/ItemTurnChoice.hpp"
#include "../TurnChoices/SwitchTurnChoice.hpp"
#include "ChoiceQueue.hpp"
@@ -18,6 +19,7 @@ namespace CreatureLib::Battling {
static void ExecuteSwitchChoice(const ArbUt::BorrowedPtr<SwitchTurnChoice>& choice);
static void ExecuteFleeChoice(const ArbUt::BorrowedPtr<FleeTurnChoice>& choice);
static void ExecuteItemChoice(const ArbUt::BorrowedPtr<ItemTurnChoice>& choice);
public:
static void RunTurn(const ArbUt::BorrowedPtr<ChoiceQueue>& queue, const ArbUt::BorrowedPtr<Battle>& battle);