Ejemplo n.º 1
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;
 }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 public void AddActor(Object2D obj)
 {
     _allActors.Add(obj);
 }
Ejemplo n.º 4
0
 public void FollowObject(Object2D obj)
 {
     this.objectToFollow = obj;
     this.movement = NPCMovementType.FollowObject;
 }
Ejemplo n.º 5
0
 public void FollowObject(Object2D obj)
 {
     this.objectToFollow = obj;
     this.movement       = NPCMovementType.FollowObject;
 }