Exemple #1
0
 public void AddAnimal(Animal animal)
 {
     animalsInWagon.Add(animal);
     capacity   -= Convert.ToInt32(animal.points);
     animal.used = true;
 }
Exemple #2
0
 public override bool CanEat(Animal animal)
 {
     return(animal.Size <= Size);
 }