public void Slaughter() { var theLeastHungry = AnimalList[0]; foreach (Animals item in AnimalList) { if (theLeastHungry.HungerValue > item.HungerValue) { theLeastHungry = item; } } AnimalList.Remove(theLeastHungry); FreePlaces++; }
public void remove(Animal oldone) { AnimalList.Remove(oldone); Grid.remove(oldone); }