monstersLayout->CalculatePositions(background->w, background->h, monsterPositions);
heroesLayout->CalculatePositions(background->w, background->h, heroesPositions);
for (vector<Hero>::size_type i(0), end(heroes.size()); i < end; ++i) {
- spellMenus.push_back(res->spellMenuPrototype);
+ spellMenus[i] = res->spellMenuPrototype;
LoadSpellMenu(i);
- ikariMenus.push_back(res->ikariMenuPrototype);
+ ikariMenus[i] = res->ikariMenuPrototype;
LoadIkariMenu(i);
heroTags[i] = HeroTag(this, i);
}
std::vector<geometry::Point<int> > heroesPositions;
std::vector<Monster> monsters;
std::vector<Hero> heroes;
- std::vector<graphics::Menu<const common::Spell *> > spellMenus;
+ graphics::Menu<const common::Spell *> spellMenus[4];
graphics::Menu<const common::Item *> itemMenu;
- std::vector<graphics::Menu<const common::Item *> > ikariMenus;
+ graphics::Menu<const common::Item *> ikariMenus[4];
HeroTag heroTags[4];
geometry::Point<int> heroTagPositions[4];
AttackChoice attackChoices[4];