Ejemplo n.º 1
0
 /// <summary>
 /// Applies the upgrades this Robot has earned
 /// </summary>
 public void AddCommandUpgrade(Command upCommand)
 {
     foreach (Command command in Commands)
     {
         if (command.Name.Equals(upCommand.Name))
         {
             Commands.Remove(command);
         }
     }
     AddCommand(upCommand);
 }
Ejemplo n.º 2
0
 public void AddCommand(Command command)
 {
     Commands.Add(command);
 }