コード例 #1
0
        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];
        }
コード例 #2
0
 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);
 }