X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=ff0672da84a2f365b8379455437c109e72779c41;hb=d872d756e64b8f1f57cba64ae19f479f8eab3927;hp=1a0586c9025e31b42113468bc06c50e607517bfe;hpb=b7a90738b9ae701cfc86bf74a11ba59d7fcb17ba;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 1a0586c..ff0672d 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -27,6 +27,7 @@ namespace app { class Input; } namespace common { class Inventory; class Item; + class Spell; } namespace graphics { class Font; @@ -92,8 +93,8 @@ public: const TargetSelection &ActiveHeroTargets() const { return attackChoices[activeHero].Selection(); } bool AttackSelectionDone() const { return activeHero >= (int) heroes.size(); } - graphics::Menu &GetSpellMenu() { return spellMenus[activeHero]; } - const graphics::Menu &GetSpellMenu() const { return spellMenus[activeHero]; } + graphics::Menu &GetSpellMenu() { return spellMenus[activeHero]; } + const graphics::Menu &GetSpellMenu() const { return spellMenus[activeHero]; } graphics::Menu &GetIkariMenu() { return ikariMenus[activeHero]; } const graphics::Menu &GetIkariMenu() const { return ikariMenus[activeHero]; } graphics::Menu &GetItemMenu() { return itemMenu; } @@ -121,6 +122,7 @@ public: void RenderHeroTags(SDL_Surface *screen, const geometry::Vector &offset); private: + void LoadSpellMenu(std::vector::size_type heroIndex); void LoadInventory(); private: @@ -135,7 +137,7 @@ private: std::vector > heroesPositions; std::vector monsters; std::vector heroes; - std::vector > spellMenus; + std::vector > spellMenus; graphics::Menu itemMenu; std::vector > ikariMenus; HeroTag heroTags[4];