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); }
private void UpdateCommands() { currentCommands[0] = new SwitchWeaponCommand(game, this, player, player.FirstWeapon, 1); currentCommands[1] = new SwitchWeaponCommand(game, this, player, player.SecondWeapon, 2); }