private void GenerateAllEaters(int amount_of_all_eaters) { for (int i = 0; i < amount_of_all_eaters; i++) { int x = random.Next(0, Width); int y = random.Next(0, Height); if (Cells[x, y].BiomType != BiomType.water && Cells[x, y].ContainsCreature == null) { AllEater newCreature = new AllEater(x, y, random, Form, RandomGender(), this); AllEaters.Add(newCreature); Cells[x, y].ContainsCreature = newCreature; Form.DrawCell(ref Cells[x, y], x, y); } } }
protected override void PutBabyInCell(Creature <FoodAllEater> newCreature) { AllEater Baby = new AllEater(newCreature.x, newCreature.y, newCreature.random, newCreature.Form, newCreature.Gender, newCreature.Field); Field.Cells[x, y].ContainsCreature = Baby; }