MCPcopy Create free account
hub / github.com/WarFrontIO/client / getDistance

Method getDistance

src/map/GameMap.ts:66–68  ·  view source on GitHub ↗

* Get the distance to the nearest non-solid tile if the tile is solid (0 if bordering a non-solid tile). * If the tile is not solid, the distance is negative and the absolute value is the distance to the nearest solid tile (-1 if bordering a solid tile). * * Can also be used to determine wheth

(index: number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

findCoastNearMethod · 0.80
BoatManager.tsFile · 0.80
findPathInAreaFunction · 0.80
findStartsInAreaFunction · 0.80
findPlayerTileFunction · 0.80
onNeighborWaterFunction · 0.80
calculateDistancesRawMethod · 0.80
checkLineOfSightFunction · 0.80
checkCoastDistanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected