MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / update

Method update

internal/mapper/mapper.path.go:85–88  ·  view source on GitHub ↗
(n *nodeRecord, newF float64)

Source from the content-addressed store, hash-verified

83 return n
84}
85func (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.

Callers 1

findPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected