コード例 #1
0
 /// <summary>
 /// Game basic iteration.
 /// </summary>
 private void GameManipulations()
 {
     _animalManager.LocateEnemies(_field);
     _herbivoreManager.Move(_field);
     _carnivoreManager.Move(_field);
     _animalManager.DecreaseHealth(_field, 0.5f);
     _animalManager.RemoveCorpses(_field);
     _animalManager.FindPartners(_field);
     _animalManager.GiveBirthToAnimal(_field, _animalFactory);
     _view.Display(_field);
 }