Example #1
0
 public Animal(InternalState internalState, IFoodEvaluator foodEvaluator, IActionsEvaluator actionsEvaluator)
 {
     InternalState = internalState;
     FoodEvaluator = foodEvaluator;
     ActionsEvaluator = actionsEvaluator;
     SleepTimeRandom = new Random();
     Console.WriteLine("Animal is born\n");
 }
Example #2
0
 public Animal GetAnimal(InternalState internalState, IFoodEvaluator foodEvaluator,
     IActionsEvaluator actionsEvaluator)
 {
     return new Animal(internalState, foodEvaluator, actionsEvaluator);
 }