public Warren(int Variability, int rabbitCount, char terrain) { this.Variability = Variability; this.RabbitCount = rabbitCount; Rabbits = new Rabbit[MaxRabbitsInWarren]; for (int r = 0; r < RabbitCount; r++) { Rabbits[r] = new Rabbit(Variability, terrain); } _terrain = terrain; }
public Warren(int Variability, char terrain) { this.Variability = Variability; Rabbits = new Rabbit[MaxRabbitsInWarren]; RabbitCount = (int)(CalculateRandomValue((int)(MaxRabbitsInWarren / 4), this.Variability)); for (int r = 0; r < RabbitCount; r++) { Rabbits[r] = new Rabbit(Variability, terrain); } _terrain = terrain; }