示例#1
0
        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);
        }
示例#2
0
        public SwitchWeaponCommand(SpellswordGame game, EquipmentMenu oldMenu, Player player, IWeapon weapon, int weaponIndex)
        {
            this.game        = game;
            this.oldMenu     = oldMenu;
            this.player      = player;
            this.weaponIndex = weaponIndex;

            this.Name        = weapon.Name;
            this.Description = weapon.Description;
        }