Beispiel #1
0
        public void Slaughter()
        {
            var theLeastHungry = AnimalList[0];

            foreach (Animals item in AnimalList)
            {
                if (theLeastHungry.HungerValue > item.HungerValue)
                {
                    theLeastHungry = item;
                }
            }
            AnimalList.Remove(theLeastHungry);
            FreePlaces++;
        }
Beispiel #2
0
 public void remove(Animal oldone)
 {
     AnimalList.Remove(oldone);
     Grid.remove(oldone);
 }