public ApproachPositionPathNode(Actor target, Vector2 position, float speed) : base(target) { this.TargetLocation = position; this.Speed = speed; this.DeactivateAfterPathing = false; }
// if the player can enter the door on a key press public bool IsPlayerValidEntry(Actor player) { bool valid = false; if (player != null && this.Sprites["Door"].CurrentSprite.Contains(new Point((int)player.Position.X, (int)player.Position.Y))) { throw new NotImplementedException(); } return valid; }
public void ActivateDoor(Actor player) { if (this.IsPlayerValidEntry(player)) { this.Sprites["Door"].CurrentAnimationString = "Activate"; this.CloseDoor(); throw new NotImplementedException(); } }
public PathManager(Actor target) { this.target = target; }
public PathNode(Actor target) { this.TargetActor = target; }