Make battle class fields all smart pointers.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-31 19:01:45 +02:00
parent 29cb4eac37
commit 01f6e59cb6
5 changed files with 16 additions and 24 deletions

View File

@@ -5,7 +5,7 @@
using namespace CreatureLib::Battling;
void TurnHandler::RunTurn(ChoiceQueue* queue) {
void TurnHandler::RunTurn(ArbUt::BorrowedPtr<ChoiceQueue> queue) {
AssertNotNull(queue)
for (auto choice : queue->GetInnerQueue()) {
HOOK(OnBeforeTurn, choice, choice);

View File

@@ -20,7 +20,7 @@ namespace CreatureLib::Battling {
static void ExecuteFleeChoice(ArbUt::BorrowedPtr<FleeTurnChoice> choice);
public:
static void RunTurn(ChoiceQueue* queue);
static void RunTurn(ArbUt::BorrowedPtr<ChoiceQueue> queue);
};
}