/// <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); }
public void AddCommand(Command command) { Commands.Add(command); }