Pathfinding.BinaryHeapM.GetNode C# (CSharp) 메소드

GetNode() 공개 메소드

public GetNode ( int i ) : PathNode
i int
리턴 PathNode
		public PathNode GetNode (int i) {
			return binaryHeap[i];
		}
		

Usage Example

예제 #1
0
        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