MCPcopy Create free account
hub / github.com/dabing1022/Blog / AshManhattan

Class AshManhattan

Processing/game2dai/graph/AshManhattan.java:39–66  ·  view source on GitHub ↗

This class is used to calculate the heuristic estimated-cost-to-goal. It estimates the cost to goal as the sum of the differences between the nodes in all there primary directions. So if there were 2 nodes then the estimated-cost between them is |x1 - x2| + |y1 - y2| + |z1 - z2| </pre

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected