GameboardNavigationPathResult
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:170
Pathfinding result between two tiles.
Properties
Section titled “Properties”coordinates
Section titled “coordinates”coordinates: readonly
HexCoordinates[]
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:176
Coordinates along the route.
cost:
number
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:178
Total route cost.
found:
boolean
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:172
Whether a route was found.
path: readonly
GameboardTileSpec[]
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:174
Tile specs along the route.
visited
Section titled “visited”visited:
number
Defined in: packages/declarative-hex-worlds/src/gameboard/navigation.ts:180
Number of nodes visited by the pathfinder.