Ejemplo n.º 1
0
        private List <ISpellswordCommand> UpdateCommands()
        {
            ISpellswordCommand        backCommand = currentCommands.Last();
            List <ISpellswordCommand> commands    = new List <ISpellswordCommand>();

            foreach (Talent talent in player.AvailableTalents)
            {
                AddTalentCommand newCommand = new AddTalentCommand(player, talent);
                commands.Add(newCommand);
            }
            commands.Add(backCommand);
            return(commands);
        }
Ejemplo n.º 2
0
        private List <ISpellswordCommand> UpdateCommands()
        {
            ISpellswordCommand        backCommand = currentCommands.Last();
            List <ISpellswordCommand> spellList   = new List <ISpellswordCommand>();

            foreach (Attack attack in player.SpellList)
            {
                attack.UpdateDescription();
                EmptyCommand command = new EmptyCommand(attack.Name, attack.Description);
                spellList.Add(command);
            }
            spellList.Add(backCommand);
            return(spellList);
            //for (int i = 0; i < currentCommands.Count - 1; i++)
            //{
            //    player.SpellList[i].UpdateDescription();
            //    currentCommands[i] = new EmptyCommand(player.SpellList[i].Name, player.SpellList[i].Description);
            //}
        }
Ejemplo n.º 3
0
 public void RemoveCommand(ISpellswordCommand command)
 {
     currentCommands.Remove(command);
 }
Ejemplo n.º 4
0
 public void AddCommand(ISpellswordCommand command)
 {
     currentCommands.Add(command);
 }