Accessibility Trie
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.
max Move Cost
The maximum cost of moving from one point to another.
neighbors
A function that returns a list of neighbors for a given point.
is Walkable
A function that checks if a given point is walkable.
distance
A function that calculates the distance between two points.
movement Cost
A function that calculates the cost of moving from one point to another.