X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2FBattleState.cpp;h=15d9d18c5b2739d0d1ed0d77c012036452b2d2a6;hb=8c055cbdddac2114c130e6a6524ff887d89ccf53;hp=ae882a614ed981f4083626ebab77ad894d813cbc;hpb=c61de0e168aa0ff5d5f1e429302d1cb2160ac1e4;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index ae882a6..15d9d18 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -20,6 +20,7 @@ using app::Application; using app::Input; using geometry::Point; using geometry::Vector; +using graphics::Menu; using std::vector; @@ -50,6 +51,14 @@ void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) { heroesLayout->CalculatePositions(background->w, background->h, heroesPositions); attackChoices.resize(heroes.size()); for (vector::size_type i(0), end(heroes.size()); i < end; ++i) { + // TODO: extract menu dimensions to resources + Menu spellMenu(res->normalFont, 12, 6, 8, 2, 32); + spellMenu.Add("Strong : 3", 0); + spellMenu.Add("Stronger : 8", 0); + spellMenu.Add("Champion :16", 0); + spellMenu.Add("Rally :10", 0); + spellMenu.Add("Valor :30", 0); + spellMenus.push_back(spellMenu); heroTags.push_back(HeroTag(&heroes[i], &attackChoices[i], res, HeroTag::Alignment((i + 1) % 2))); } }