diff --git a/src/Battling/Models/BattleSide.hpp b/src/Battling/Models/BattleSide.hpp index 164a4a0..0073cec 100644 --- a/src/Battling/Models/BattleSide.hpp +++ b/src/Battling/Models/BattleSide.hpp @@ -50,6 +50,8 @@ namespace CreatureLib::Battling { const ArbUt::List>& GetCreatures() { return _creatures; } + const ArbUt::OptionalBorrowedPtr& GetCreature(u8 index) { return _creatures[index]; } + uint8_t GetSideIndex() noexcept { return _index; } uint8_t GetCreatureIndex(const ArbUt::BorrowedPtr& c) { for (size_t i = 0; i < _creatures.Count(); i++) { @@ -88,7 +90,7 @@ namespace CreatureLib::Battling { bool SwapPositions(u8 a, u8 b); - BattleSide *CloneWithoutCreatures(ArbUt::BorrowedPtr battle) const; + BattleSide* CloneWithoutCreatures(ArbUt::BorrowedPtr battle) const; }; }