Esempio n. 1
0
        public void Execute()
        {
            game.SwitchOutMenu(newMenu);
            BackCommand command = new BackCommand(game, newMenu, oldMenu);

            newMenu.AddCommand(command);
        }
Esempio n. 2
0
        public void Execute()
        {
            SwitchWeaponMenu newMenu = new SwitchWeaponMenu(game, player, weaponIndex);

            game.SwitchOutMenu(newMenu);
            BackCommand command = new BackCommand(game, newMenu, oldMenu);

            newMenu.AddCommand(command);
        }