Adds getter for Battle on BattleSide.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-10-28 15:01:31 +02:00
parent 19375c2f87
commit b4ef1ea98e
2 changed files with 3 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ namespace CreatureLib::Battling {
virtual ~BattleSide() = default;
[[nodiscard]] inline ArbUt::BorrowedPtr<Battle> GetBattle() const noexcept { return _battle; }
[[nodiscard]] bool AllChoicesSet() const noexcept;
[[nodiscard]] const ArbUt::List<std::shared_ptr<BaseTurnChoice>>& GetChoices() const noexcept {
return _choices;