public void Dispose()
 {
     attackingAnimalCellMock = null;
     attackingAnimal = null;
     otherAnimalCellMock = null;
     otherAnimal = null;
 }
Пример #2
0
 private void AddAnimalAt(int row, int col, Animal animal)
 {
     var cell = GetCell(row, col);
     cell.Animal = animal;
     animal.Cell = cell;
 }
Пример #3
0
 private bool IsAlly(Animal nextCellAnimal)
 {
     return nextCellAnimal.playerType == playerType;
 }
Пример #4
0
 private bool CanEat(Animal nextCellAnimal)
 {
     return (int)nextCellAnimal.AnimalType <= (int)AnimalType;
 }
 private void CreateAllyAnimals(AnimalType attackingAnimalType, AnimalType otherAnimalType)
 {
     attackingAnimal = new Animal(attackingAnimalType, PlayerType.BottomPlayer);
     otherAnimal = new Animal(otherAnimalType, PlayerType.BottomPlayer) {Cell = otherAnimalCellMock.Object};
 }