Ejemplo n.º 1
0
        public CheckPointPath(Queue<GridSquare> targetSquares, Grid grid)
            : base(grid)
        {
            this.originalTargetSequence = targetSquares;
            this.completedTargets = new HashSet<GridSquare>();

            this.manipulatableTargetSequence = new Queue<GridSquare>();
            for (int i = 0; i < originalTargetSequence.Count; i++)
            {
                GridSquare square = originalTargetSequence.Dequeue();
                originalTargetSequence.Enqueue(square);
                manipulatableTargetSequence.Enqueue(square);
            }

            currentTarget = manipulatableTargetSequence.Dequeue();
            this.previousDistance = Double.MaxValue;
            this.failedAuthentication = false;
        }
Ejemplo n.º 2
0
 public GridPath(Grid grid)
 {
     this.grid = grid;
     currentPath = new LinkedList<GridSquare>();
 }