Beispiel #1
0
 // Constructor
 public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivore = factory.CreateHerbivore();
 }
Beispiel #2
0
        // Constructor

        public AnimalWorld(ContinentFactory factory)
        {
            _carnivore = factory.CreateCarnivore();
            _herbivore = factory.CreateHerbivore();
        }
Beispiel #3
0
 public AnimalWorld(ContitentFactory factory)
 {
     _herbivore     = factory.CreateHerbivore();
     _carnivore     = factory.CreateCarnivore();
     _superPredator = factory.CreateSuperPredator();
 }
Beispiel #4
0
 public void NutritionCarnivores(Carnivore carnivore, Herbivore herbivore)
 {
     carnivore.Eat(herbivore);
 }
Beispiel #5
0
 public AnimalWorld(ContinentFactory p_factory)
 {
     m_carnivore = p_factory.CreateCarnivore();
     m_herbivore = p_factory.CreateHerbivore();
 }