Beispiel #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();
        }
        protected void RebuildOpenList()
        {
            BinaryHeapM heap = pathHandler.GetHeap();

            for (int j = 0; j < heap.numberOfItems; j++)
            {
                PathNode nodeR = heap.GetNode(j);
                nodeR.H = CalculateHScore(nodeR.node);
                heap.SetF(j, nodeR.F);
            }

            pathHandler.RebuildHeap();
        }