Skip to content

five-on-it / apps/client/src/ui/mission-route / MissionRoute

Interface: MissionRoute ​

Defined in: apps/client/src/ui/mission-route.ts:25

The route of one game: the line to the target, kept between steps.

Methods ​

update() ​

update(me, target, now): readonly GroundPoint[] | undefined

Defined in: apps/client/src/ui/mission-route.ts:30

The route from me to target at now (ms): the last one while neither moved enough, a new one otherwise; none without a target.

Parameters ​

me ​

GroundPoint | undefined

target ​

GroundPoint | undefined

now ​

number

Returns ​

readonly GroundPoint[] | undefined