selectRoute

open override fun selectRoute(network: GuidedPathNetwork, fromZone: Zone, travellingForward: Boolean, toIntersection: GuidedPathNetwork.Intersection): List<Zone>(source)

The zones the transporter should cross, in order, ending at the destination's zone.

Return

the zones to cross, never empty unless the transporter is already there

Parameters

network

the network being travelled, which may be consulted for occupancy

fromZone

the zone the transporter holds now, which is not part of the returned sequence

travellingForward

the direction the transporter faces when it sits on a link zone, meaningless when it sits at an intersection

toIntersection

where it is going