public void Setup() { mappa = new MapImpl(); animals = new List <Animal>(); FactoryAnimal f = new FactoryAnimal(); player = new PlayerImpl(new Pair <int, int>(10, 10)); animals.Add(f.GetPig(new Pair <int, int>(5, 5))); animals.Add(f.GetChicken(new Pair <int, int>(5, 5))); animals.Add(f.GetCow(new Pair <int, int>(5, 5))); }
public void GenerateAnimals() { Animals.Add(factoryAnimal.GetChicken(Map.GetBlockCoordinates(Map.GetRandomFilterBlock(x => x.GetType().Equals(BlockType.STALL))))); Animals.Add(factoryAnimal.GetCow(Map.GetBlockCoordinates(Map.GetRandomFilterBlock(x => x.GetType().Equals(BlockType.STALL))))); Animals.Add(factoryAnimal.GetPig(Map.GetBlockCoordinates(Map.GetRandomFilterBlock(x => x.GetType().Equals(BlockType.STALL))))); }