getDistance

int getDistance(Positionable position)

Gets the path distance to the specified position

Return

the distance to the specified position, or MAX_VALUE if not reachable

Parameters

position

the position