X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=f6890f3d40d35c261b0188cdc51679586671f42c;hb=bbce802e95cf239b35eb82d5dc539f118ec0c5ad;hp=484e4529c6a49d7d78776b3de9420f286a96bcdf;hpb=b6502719f0f02bdb4fc39aa66fa4a369ea583036;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 484e452..f6890f3 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -18,6 +18,7 @@ #include "../app/State.h" #include "../geometry/Point.h" #include "../geometry/Vector.h" +#include "../graphics/Menu.h" #include #include @@ -77,6 +78,8 @@ public: bool HasChosenAttackType() const { return attackChoices[activeHero].GetType() != AttackChoice::UNDECIDED; } void SetAttackType(AttackChoice::Type t) { attackChoices[activeHero].SetType(t); } bool AttackSelectionDone() const { return activeHero >= (int) heroes.size(); } + graphics::Menu &GetSpellMenu() { return spellMenus[activeHero]; } + const graphics::Menu &GetSpellMenu() const { return spellMenus[activeHero]; } public: geometry::Vector CalculateScreenOffset(SDL_Surface *screen) const { @@ -103,6 +106,7 @@ private: std::vector > heroesPositions; std::vector monsters; std::vector heroes; + std::vector > spellMenus; std::vector heroTags; std::vector attackChoices; int activeHero;