protected void RebuildOpenList () { BinaryHeap heap = pathHandler.heap; for (int j = 0; j < heap.numberOfItems; j++) { PathNode nodeR = heap.GetNode(j); nodeR.H = CalculateHScore(nodeR.node); heap.SetF(j, nodeR.F); } pathHandler.heap.Rebuild(); }
protected void RebuildOpenList() { BinaryHeap heap = this.pathHandler.heap; for (int i = 0; i < heap.numberOfItems; i++) { PathNode node = heap.GetNode(i); node.H = base.CalculateHScore(node.node); heap.SetF(i, node.F); } this.pathHandler.heap.Rebuild(); }