Esempio n. 1
0
        public void FollowSineWave(bool vertical, int amplitude, int wavelength)
        {
            this.amplitude = amplitude;
            this.wavelength = wavelength;

            if (vertical)
                this.movement = NPCMovementType.SineWaveVertical;
            else
                this.movement = NPCMovementType.SineWaveHorizontal;
        }
Esempio n. 2
0
 public NPCObject(System.Drawing.Image image, int initialHealth = 100)
     : base(image, System.Drawing.Point.Empty)
 {
     this.rand           = new Random();
     this.amplitude      = 0;
     this.wavelength     = 0;
     this.waypoints      = null;
     this.objectToFollow = null;
     this.movement       = NPCMovementType.Normal;
     this.health         = initialHealth;
     this.maxVelocity    = 100f;
 }
Esempio n. 3
0
 public NPCObject(System.Drawing.Image image, int initialHealth = 100)
     : base(image, System.Drawing.Point.Empty)
 {
     this.rand = new Random();
     this.amplitude = 0;
     this.wavelength = 0;
     this.waypoints = null;
     this.objectToFollow = null;
     this.movement = NPCMovementType.Normal;
     this.health = initialHealth;
     this.maxVelocity = 100f;
 }
Esempio n. 4
0
        public void FollowZigZag(bool vertical, int amplitude, int wavelength)
        {
            this.amplitude  = amplitude;
            this.wavelength = wavelength;

            if (vertical)
            {
                this.movement = NPCMovementType.ZigZagVertical;
            }
            else
            {
                this.movement = NPCMovementType.ZigZagHorizontal;
            }
        }
Esempio n. 5
0
        public void FollowSineWave(bool vertical, int amplitude, int wavelength)
        {
            this.amplitude  = amplitude;
            this.wavelength = wavelength;

            if (vertical)
            {
                this.movement = NPCMovementType.SineWaveVertical;
            }
            else
            {
                this.movement = NPCMovementType.SineWaveHorizontal;
            }
        }
Esempio n. 6
0
        public void FollowZigZag(bool vertical, int amplitude, int wavelength)
        {
            this.amplitude = amplitude;
            this.wavelength = wavelength;

            if (vertical)
                this.movement = NPCMovementType.ZigZagVertical;
            else
                this.movement = NPCMovementType.ZigZagHorizontal;
        }
Esempio n. 7
0
 public void FollowWaypoints(Point[] waypoints)
 {
     this.waypoints = waypoints;
     this.movement = NPCMovementType.Waypoints;
 }
Esempio n. 8
0
 public void FollowRandom()
 {
     this.movement = NPCMovementType.Random;
 }
Esempio n. 9
0
 public void FollowObject(Object2D obj)
 {
     this.objectToFollow = obj;
     this.movement = NPCMovementType.FollowObject;
 }
Esempio n. 10
0
 public void FollowNormal()
 {
     this.movement = NPCMovementType.Normal;
 }
Esempio n. 11
0
 public void DontMove()
 {
     this.movement = NPCMovementType.DontMove;
 }
Esempio n. 12
0
 public void FollowNormal()
 {
     this.movement = NPCMovementType.Normal;
 }
Esempio n. 13
0
 public void FollowRandom()
 {
     this.movement = NPCMovementType.Random;
 }
Esempio n. 14
0
 public void FollowWaypoints(Point[] waypoints)
 {
     this.waypoints = waypoints;
     this.movement  = NPCMovementType.Waypoints;
 }
Esempio n. 15
0
 public void DontMove()
 {
     this.movement = NPCMovementType.DontMove;
 }
Esempio n. 16
0
 public void FollowObject(Object2D obj)
 {
     this.objectToFollow = obj;
     this.movement       = NPCMovementType.FollowObject;
 }