private void GenerateCreatureEaters(int amount_of_creature_eaters) { for (int i = 0; i < amount_of_creature_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) { CreatureEater newCreature = new CreatureEater(x, y, random, Form, RandomGender(), this); CreatureEaters.Add(newCreature); Cells[x, y].ContainsCreature = newCreature; Form.DrawCell(ref Cells[x, y], x, y); } } }
protected override void PutBabyInCell(Creature <FoodCreatureEater> newCreature) { CreatureEater Baby = new CreatureEater(newCreature.x, newCreature.y, newCreature.random, newCreature.Form, newCreature.Gender, newCreature.Field); Field.Cells[x, y].ContainsCreature = Baby; }