Skip to content

GameboardNavigationPathResult

Defined in: src/gameboard/navigation.ts:152

Pathfinding result between two tiles.

coordinates: readonly HexCoordinates[]

Defined in: src/gameboard/navigation.ts:158

Coordinates along the route.


cost: number

Defined in: src/gameboard/navigation.ts:160

Total route cost.


found: boolean

Defined in: src/gameboard/navigation.ts:154

Whether a route was found.


path: readonly GameboardTileSpec[]

Defined in: src/gameboard/navigation.ts:156

Tile specs along the route.


visited: number

Defined in: src/gameboard/navigation.ts:162

Number of nodes visited by the pathfinder.