Map

open class Map

Represents a mapped area from some source position. This can be used to check if positions are reachable from the source position, generate paths, and get the path distance.

See also

Types

Link copied to clipboard
open class MapBuilder

Functions

Link copied to clipboard
open fun canReach(position: Positionable): Boolean
Checks if the specified position is reachable from the source position
Link copied to clipboard
open fun getDistance(position: Positionable): Int
Gets the path distance to the specified position
Link copied to clipboard
open fun getPath(position: Positionable): List<Positionable>
Generates a path to the position.