public void Dispose() { attackingAnimalCellMock = null; attackingAnimal = null; otherAnimalCellMock = null; otherAnimal = null; }
private void AddAnimalAt(int row, int col, Animal animal) { var cell = GetCell(row, col); cell.Animal = animal; animal.Cell = cell; }
private bool IsAlly(Animal nextCellAnimal) { return nextCellAnimal.playerType == playerType; }
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}; }