X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=347afc3f744e7bc3bfb2cec893c16f9aee48288e;hb=222167ba3722dc7f47ff7510006bd516e0010a50;hp=e94ed417b689807e580bf20a6925d0371327ef59;hpb=049f304d41e9aa8b5821e298fcb68c1b9a7e97d6;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index e94ed41..347afc3 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -83,6 +83,8 @@ public: const Hero &ActiveHero() const { return heroes[activeHero]; } Hero &HeroAt(std::vector::size_type index) { return heroes[index]; } const Hero &HeroAt(std::vector::size_type index) const { return heroes[index]; } + Monster &MonsterAt(std::vector::size_type index) { return monsters[index]; } + const Monster &MonsterAt(std::vector::size_type index) const { return monsters[index]; } void SwapHeroes(std::vector::size_type lhs, std::vector::size_type rhs); const HeroTag &ActiveHeroTag() const { return heroTags[activeHero]; } const HeroTag &HeroTagAt(std::vector::size_type index) const { return heroTags[index]; } @@ -109,8 +111,11 @@ public: bool HeroPositionOccupied(int index) { return index >= 0 && index < int(heroes.size()); } std::vector &Heroes() { return heroes; } const std::vector &Heroes() const { return heroes; } + std::vector &Monsters() { return monsters; } + const std::vector &Monsters() const { return monsters; } void SetRunaway() { ranAway = true; } + void ClearAllAttacks(); public: geometry::Vector CalculateScreenOffset(SDL_Surface *screen) const {