X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=e3ecca915cfaa967ad4b9c765edd313c696d267c;hb=923422e6a71f57b8fa24b826d1e2914faa144081;hp=93e1e2b032c82a666dcb5cd1bed79c997530d243;hpb=4170813213bafe6f4a01a79bf42308ddb7f3c545;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 93e1e2b..e3ecca9 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -65,7 +65,7 @@ public: virtual void Resize(int width, int height); - virtual void HandleInput(const app::Input &); + virtual void HandleEvents(const app::Input &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); @@ -82,6 +82,7 @@ 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]; } + 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]; } const geometry::Point &HeroTagPositionAt(std::vector::size_type index) const { return heroTagPositions[index]; } @@ -89,6 +90,7 @@ public: void SetAttackType(AttackChoice::Type t) { attackChoices[activeHero].SetType(t); } AttackChoice &ActiveHeroAttackChoice() { return attackChoices[activeHero]; } const AttackChoice &ActiveHeroAttackChoice() const { return attackChoices[activeHero]; } + const AttackChoice &AttackChoiceAt(std::vector::size_type index) const { return attackChoices[index]; } TargetSelection &ActiveHeroTargets() { return attackChoices[activeHero].Selection(); } const TargetSelection &ActiveHeroTargets() const { return attackChoices[activeHero].Selection(); } bool AttackSelectionDone() const { return activeHero >= (int) heroes.size(); }