Added Helper function to ChoiceQueue to move a specific creature's choice up next.

This commit is contained in:
2020-02-22 14:16:38 +01:00
parent d4fd7282f5
commit 442d6cd5b1
3 changed files with 79 additions and 0 deletions

View File

@@ -21,9 +21,13 @@ namespace CreatureLib::Battling {
return b;
}
BaseTurnChoice* Peek() { return _queue[_current]; }
[[nodiscard]] bool HasNext() const { return _current < _queue.size(); }
std::vector<BaseTurnChoice*>& GetInnerQueue() { return _queue; }
bool MoveCreatureChoiceNext(Creature* creature);
};
}