Pathfinding.BinaryHeapM.GetNode C# (CSharp) Méthode

GetNode() public méthode

public GetNode ( int i ) : PathNode
i int
Résultat PathNode
		public PathNode GetNode (int i) {
			return binaryHeap[i];
		}
		

Usage Example

        protected void RebuildOpenList()
        {
            BinaryHeapM heap = base.pathHandler.GetHeap();

            for (int i = 0; i < heap.numberOfItems; i++)
            {
                PathNode node = heap.GetNode(i);
                node.H = base.CalculateHScore(node.node);
                heap.SetF(i, node.F);
            }
            base.pathHandler.RebuildHeap();
        }
All Usage Examples Of Pathfinding.BinaryHeapM::GetNode