Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Inputs

NameTypeRangeDescription
Startint[ 0, 47 ]Starting point
Destinationint[ 0, 47 ]Destination point
ForwardNextint[48][5][ -1, 47 ]The next track in the main direction. Each track can have at most 5 possible next tracks. Invalid branches are represented by the value -1.
ReverseNextint[48][5][ -1, 47 ]Same behavior as ForwardNext, but in the secondary direction. If the secondary direction is not permitted all values are -1.
Reversebool[ 0, 1 ]

0 → the train is traveling in the track's main direction

1 → the train is traveling in the track's reverse direction


Outputs

NameTypeRangeDescription
Pathint[200][ 0, 47 ]

Sequence of tracks to follow to get from the starting point to the destination (shortest path)

The end of the sequence is marked by the value -1

  • No labels