public void delete(IntelligentCreature name) { int number = 0; foreach (IntelligentCreature i in army) { if (i == name) { break; } number++; } army.RemoveAt(number); }
public void add(IntelligentCreature name) { army.Add(name); }
public void delete(IntelligentCreature name) { int number = 0; foreach (IntelligentCreature i in army) { if (i == name) { break; } number++; } army.RemoveAt(number); }
public void add(IntelligentCreature name) { army.Add(name); }