public void Visit(Races race) { if (race != null) { race.AttackPoints += 5; Console.WriteLine("{0}'s new Attack points are: {1}. Now {0} attack will be more powerfull! "); } }
public void Visit(Races race) { if (race != null) { race.DefencePoints += 5; Console.WriteLine("{0}'s new Defence points are: {1}. Now {0} has bigger defence! "); } }
public void Detach(Races race) { this.races.Remove(race); }
public void Attach(Races race) { this.races.Add(race); }