public Organism CreateOrganismWolf() { var xVelocity = Rando.Next(-50, 50) * 0.05f; var yVelocity = Rando.Next(-50, 50) * 0.05f; var organism = new Wolf(OrganismTexture, GetOrganismColor(OrganismType.WOLF), 25, new Vector2(Rando.Next(-500, 500) + 500, Rando.Next(-500, 500) + 500), new Vector2(xVelocity, yVelocity), Organism.OrganismType.WOLF, 200f, 200f, 400f, new Dictionary<Organism.OrganismType, Reaction>()); return organism; }
public override Organism Reproduce() { Vector2 startPos = Position + new Vector2(Rando.Next(-25, 25), Rando.Next(-25, 25)); Wolf o = new Wolf(Texture, Color, Radius, startPos, new Vector2(Rando.Next(-5, 5), Rando.Next(-5, 5)), MyType, Energy / 2, VisionRadius, ReproductionThreshold, ReactionDictionary); Energy = Energy / 2; return o; }