AccessibilityTrie

constructor(origin: T, maxMoveCost: Int, neighbors: (T) -> List<T>, isWalkable: (T) -> Boolean, distance: (T, T) -> Int, movementCost: (T, T) -> Double)(source)

Parameters

T

The type of the elements in the grid.

origin

The starting point in the grid.

maxMoveCost

The maximum cost of moving from one point to another.

neighbors

A function that returns a list of neighbors for a given point.

isWalkable

A function that checks if a given point is walkable.

distance

A function that calculates the distance between two points.

movementCost

A function that calculates the cost of moving from one point to another.