Exemplo n.º 1
0
 public ApproachPositionPathNode(Actor target, Vector2 position, float speed)
     : base(target)
 {
     this.TargetLocation = position;
     this.Speed = speed;
     this.DeactivateAfterPathing = false;
 }
Exemplo n.º 2
0
        // 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;
        }
Exemplo n.º 3
0
        public void ActivateDoor(Actor player)
        {
            if (this.IsPlayerValidEntry(player))
            {
                this.Sprites["Door"].CurrentAnimationString = "Activate";

                this.CloseDoor();

                throw new NotImplementedException();
            }
        }
Exemplo n.º 4
0
 public PathManager(Actor target)
 {
     this.target = target;
 }
Exemplo n.º 5
0
 public PathNode(Actor target)
 {
     this.TargetActor = target;
 }