public Organism CreateOrganismDeer() { var xVelocity = Rando.Next(-50, 50) * 0.05f; var yVelocity = Rando.Next(-50, 50) * 0.05f; var organism = new Deer(OrganismTexture, GetOrganismColor(OrganismType.DEER), 25, new Vector2(Rando.Next(-500, 500) + 500, Rando.Next(-500, 500) + 500), new Vector2(xVelocity, yVelocity), Organism.OrganismType.DEER, 100f, 100f, 200f, new Dictionary<Organism.OrganismType, Reaction>()); return organism; }
public override Organism Reproduce() { Vector2 startPos = Position + new Vector2(Rando.Next(-25, 25), Rando.Next(-25, 25)); Deer o = new Deer(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; }