(n *nodeRecord, newF float64)
| 83 | return n |
| 84 | } |
| 85 | func (pq *priorityQueue) update(n *nodeRecord, newF float64) { |
| 86 | n.fScore = newF |
| 87 | heap.Fix(pq, n.index) |
| 88 | } |
| 89 | |
| 90 | // heuristic is the 3D Manhattan distance. |
| 91 | // This should be redone - rooms can be one space away exit-wise, but 2+ spacex in grid space. |