public Avoider(Vector2 a_Position, Vector2 a_Dimensions, Color a_Colour) : base(a_Position, a_Dimensions, a_Colour) { pursueBehaviour = new Pursue(this); GenerateQuadrants(); tooCloseRadius = Utility.Instance.CreateCircle(tooClose, Color.White); chooseNewTargetRadius = Utility.Instance.CreateCircle(chooseNewTarget, Color.Black); int randQuad = (int)(Utility.Instance.cRand.NextDouble() * 4); pursueBehaviour.Target = quadrants[randQuad]; }
public Pursuer(Vector2 a_Position, Vector2 a_Dimensions, Color a_Colour) : base(a_Position, a_Dimensions, a_Colour) { chaseBehaviour = new Pursue(this); tooCloseRadius = Utility.Instance.CreateCircle(tooClose, Color.Black); }