public GameEngine(IDisplay display, IConsoleFacade facade, IHerbivoreManager herbivore, ICarnivoreManager carnivore, IAnimalFactory animalfactory, IFieldFactory fieldFactory, IGenericAnimalManager genericAnimal) { _display = display; _facade = facade; _herbivore = herbivore; _carnivore = carnivore; _animalFactory = animalfactory; _fieldFactory = fieldFactory; _genericAnimal = genericAnimal; }
/// <summary> /// Default constructor /// </summary> public SavannaEngine(IAnimalFactory animalFactory, IAnimalManager animalmanager, IHerbivoreManager herbivoreManager, ICarnivoreManager carnivoreManager, IView view, IConsole console) { _herbivoreManager = herbivoreManager; _carnivoreManager = carnivoreManager; _animalFactory = animalFactory; _animalManager = animalmanager; _console = console; _view = view; _field = new(); }