GameboardPatrolRouteSegment
Defined in: src/gameboard/navigation.ts:312
One path segment between patrol waypoints.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”cost:
number
Defined in: src/gameboard/navigation.ts:326
Segment path cost.
found:
boolean
Defined in: src/gameboard/navigation.ts:322
Whether this segment was found.
fromIndex
Section titled “fromIndex”fromIndex:
number
Defined in: src/gameboard/navigation.ts:314
Source waypoint index.
fromKey?
Section titled “fromKey?”
optionalfromKey?:string
Defined in: src/gameboard/navigation.ts:318
Source tile key.
pathKeys
Section titled “pathKeys”pathKeys: readonly
string[]
Defined in: src/gameboard/navigation.ts:324
Path tile keys for this segment.
toIndex
Section titled “toIndex”toIndex:
number
Defined in: src/gameboard/navigation.ts:316
Target waypoint index.
toKey?
Section titled “toKey?”
optionaltoKey?:string
Defined in: src/gameboard/navigation.ts:320
Target tile key.
visited
Section titled “visited”visited:
number
Defined in: src/gameboard/navigation.ts:328
Number of nodes visited by the pathfinder.