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; }
public void AddActor(Object2D obj) { _allActors.Add(obj); }
public void FollowObject(Object2D obj) { this.objectToFollow = obj; this.movement = NPCMovementType.FollowObject; }