private List <ISpellswordCommand> GetMenuCommands(MenuScene scene, Menu mainMenu, Player player) { List <ISpellswordCommand> menuCommands = new List <ISpellswordCommand>(); EquipmentMenu equipmentMenu = new EquipmentMenu(this, player); SwitchMenuCommand equipmentMenuCommand = new SwitchMenuCommand("Equipment", this, mainMenu, equipmentMenu); menuCommands.Add(equipmentMenuCommand); TalentMenu talentMenu = new TalentMenu(this, player); SwitchMenuCommand talentMenuCommand = new SwitchMenuCommand("Talents", this, mainMenu, talentMenu); menuCommands.Add(talentMenuCommand); StatusMenu statusMenu = new StatusMenu(this, player); SwitchMenuCommand statusMenuCommand = new SwitchMenuCommand("Player Status", this, mainMenu, statusMenu); menuCommands.Add(statusMenuCommand); SpellMenu spellMenu = new SpellMenu(this, player); SwitchMenuCommand spellMenuCommand = new SwitchMenuCommand("Current Spells", this, mainMenu, spellMenu); menuCommands.Add(spellMenuCommand); return(menuCommands); }
private void LoadBasicCommands() { currentCommands.Clear(); currentCommands.Add(new AttackCommand(this)); currentCommands.Add(new DefendCommand(this)); if (currentWeapon.IsFocus) { BattleMenu spellMenu = GenerateSpellMenu(); SwitchMenuCommand switchToSpells = new SwitchMenuCommand("Spells", thisGame, this, spellMenu); currentCommands.Add(switchToSpells); } currentCommands.Add(new RunCommand(thisGame, player, enemy)); controller.ResetIndex(); }