Beispiel #1
0
 public override void Eat(Herbivore h)
 {
     // Eat Bison
     Debug.Log(this.GetType().Name + " eats " + h.GetType().Name);
 }
Beispiel #2
0
 // Constructor
 public AnimalWorld(ContinentFactory factory)
 {
     _botany    = factory.CreateBotany();
     _carnivore = factory.CreateCarnivore();
     _herbivore = factory.CreateHerbivore();
 }
Beispiel #3
0
 public abstract void Eat(Herbivore h);