heroTagPositions[2] = Point<int>(xOffset, BackgroundHeight() - tagHeight);
heroTagPositions[3] = Point<int>(xOffset + tagWidth, BackgroundHeight() - tagHeight);
- // TODO: insert item menu entries
itemMenu = res->itemMenuPrototype;
LoadInventory();
}
graphics::Menu<const common::Spell *> &GetSpellMenu() { return spellMenus[activeHero]; }
const graphics::Menu<const common::Spell *> &GetSpellMenu() const { return spellMenus[activeHero]; }
- graphics::Menu</* Ikari or Item */ void *> &GetIkariMenu() { return ikariMenus[activeHero]; }
- const graphics::Menu</* Ikari or Item */ void *> &GetIkariMenu() const { return ikariMenus[activeHero]; }
+ graphics::Menu<const common::Item *> &GetIkariMenu() { return ikariMenus[activeHero]; }
+ const graphics::Menu<const common::Item *> &GetIkariMenu() const { return ikariMenus[activeHero]; }
graphics::Menu<const common::Item *> &GetItemMenu() { return itemMenu; }
const graphics::Menu<const common::Item *> &GetItemMenu() const { return itemMenu; }
std::vector<Hero> heroes;
std::vector<graphics::Menu<const common::Spell *> > spellMenus;
graphics::Menu<const common::Item *> itemMenu;
- std::vector<graphics::Menu</* Ikari or Item */ void *> > ikariMenus;
+ std::vector<graphics::Menu<const common::Item *> > ikariMenus;
HeroTag heroTags[4];
geometry::Point<int> heroTagPositions[4];
AttackChoice attackChoices[4];
graphics::Menu<const common::Item *> itemMenuPrototype;
const char *ikariMenuHeadline;
- graphics::Menu</* Ikari or Item */ void *> ikariMenuPrototype;
+ graphics::Menu<const common::Item *> ikariMenuPrototype;
Resources()
dekar.SetJewel(&krakenRock);
battleRes.ikariMenuHeadline = "Please choose equipment.";
- battleRes.ikariMenuPrototype = Menu</* Item */ void *>(&normalFont, &disabledFont, &handCursorSprite, 26, 6, 8, 16, 1, 32);
+ battleRes.ikariMenuPrototype = Menu<const Item *>(&normalFont, &disabledFont, &handCursorSprite, 26, 6, 8, 16, 1, 32);
battleRes.ikariMenuPrototype.Add("Zirco whip Thundershriek", 0, false, &swordIcon);
battleRes.ikariMenuPrototype.Add("Zircon plate Sudden cure", 0, true, &armorIcon);
battleRes.ikariMenuPrototype.Add("Zirco gloves Forcefield", 0, true, &shieldIcon);