Exemplo n.º 1
0
 public void Eat()
 {
     movingStrategy.Move();
     animalListeners.ForEach(z =>
     {
         z.onEat(new AnimalEvent(this));
     });
 }
Exemplo n.º 2
0
 public void Move()
 {
     Console.WriteLine($"{this.name} has moved.");
     movingStrategy.Move();
 }
Exemplo n.º 3
0
 public void Move()
 {
     movingStrategy.Move();
 }