Esempio n. 1
0
        private List <ISpellswordCommand> GenerateCommands()
        {
            List <ISpellswordCommand> commands      = new List <ISpellswordCommand>();
            SwitchWeaponCommand       command       = new SwitchWeaponCommand(game, this, player, player.FirstWeapon, 1);
            SwitchWeaponCommand       secondCommand = new SwitchWeaponCommand(game, this, player, player.SecondWeapon, 2);

            commands.Add(command);
            commands.Add(secondCommand);
            return(commands);
        }
Esempio n. 2
0
 private void UpdateCommands()
 {
     currentCommands[0] = new SwitchWeaponCommand(game, this, player, player.FirstWeapon, 1);
     currentCommands[1] = new SwitchWeaponCommand(game, this, player, player.SecondWeapon, 2);
 }