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