Wiki source code of Pathfinder
Last modified by GiorgioGhisotti on 2025/01/30 12:19
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == Inputs == | ||
2 | |||
3 | (% class="relative-table wrapped" style="width: 98.4152%;" %) | ||
4 | |=((( | ||
5 | Name | ||
6 | )))|=((( | ||
7 | Type | ||
8 | )))|=((( | ||
9 | Range | ||
10 | )))|=((( | ||
11 | Description | ||
12 | ))) | ||
13 | |((( | ||
14 | Start | ||
15 | )))|((( | ||
16 | int | ||
17 | )))|((( | ||
18 | [ 0, 47 ] | ||
19 | )))|((( | ||
20 | Starting point | ||
21 | ))) | ||
22 | |(% colspan="1" %)(% colspan="1" %) | ||
23 | ((( | ||
24 | Destination | ||
25 | )))|(% colspan="1" %)(% colspan="1" %) | ||
26 | ((( | ||
27 | int | ||
28 | )))|(% colspan="1" %)(% colspan="1" %) | ||
29 | ((( | ||
30 | [ 0, 47 ] | ||
31 | )))|(% colspan="1" %)(% colspan="1" %) | ||
32 | ((( | ||
33 | Destination point | ||
34 | ))) | ||
35 | |(% colspan="1" %)(% colspan="1" %) | ||
36 | ((( | ||
37 | ForwardNext | ||
38 | )))|(% colspan="1" %)(% colspan="1" %) | ||
39 | ((( | ||
40 | int[48][5] | ||
41 | )))|(% colspan="1" %)(% colspan="1" %) | ||
42 | ((( | ||
43 | [ -1, 47 ] | ||
44 | )))|(% colspan="1" %)(% colspan="1" %) | ||
45 | ((( | ||
46 | 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. | ||
47 | ))) | ||
48 | |(% colspan="1" %)(% colspan="1" %) | ||
49 | ((( | ||
50 | ReverseNext | ||
51 | )))|(% colspan="1" %)(% colspan="1" %) | ||
52 | ((( | ||
53 | int[48][5] | ||
54 | )))|(% colspan="1" %)(% colspan="1" %) | ||
55 | ((( | ||
56 | [ -1, 47 ] | ||
57 | )))|(% colspan="1" %)(% colspan="1" %) | ||
58 | ((( | ||
59 | Same behavior as ForwardNext, but in the secondary direction. If the secondary direction is not permitted all values are -1. | ||
60 | ))) | ||
61 | |(% colspan="1" %)(% colspan="1" %) | ||
62 | ((( | ||
63 | Reverse | ||
64 | )))|(% colspan="1" %)(% colspan="1" %) | ||
65 | ((( | ||
66 | bool | ||
67 | )))|(% colspan="1" %)(% colspan="1" %) | ||
68 | ((( | ||
69 | [ 0, 1 ] | ||
70 | )))|(% colspan="1" %)(% colspan="1" %) | ||
71 | ((( | ||
72 | 0 → the train is traveling in the track's main direction | ||
73 | |||
74 | 1 → the train is traveling in the track's reverse direction | ||
75 | ))) | ||
76 | |(% colspan="1" %)(% colspan="1" %) | ||
77 | ((( | ||
78 | SwitchToForward | ||
79 | )))|(% colspan="1" %)(% colspan="1" %) | ||
80 | ((( | ||
81 | Int[2] | ||
82 | )))|(% colspan="1" %)(% colspan="1" %) | ||
83 | ((( | ||
84 | [ 0, 47 ],[ 0,4 ] | ||
85 | )))|(% colspan="1" %)(% colspan="1" %) | ||
86 | ((( | ||
87 | Identifies the track connection which places the train on the outer loop facing in the **forward** direction. | ||
88 | |||
89 | [ 0 ] → index of the inner loop track | ||
90 | |||
91 | [ 1 ] → index of the next track in the ForwardNext or ReverseNext array | ||
92 | ))) | ||
93 | |(% colspan="1" %)(% colspan="1" %) | ||
94 | ((( | ||
95 | SwitchToReverse | ||
96 | )))|(% colspan="1" %)(% colspan="1" %) | ||
97 | ((( | ||
98 | Int[2] | ||
99 | )))|(% colspan="1" %)(% colspan="1" %) | ||
100 | ((( | ||
101 | [ 0, 47 ],[ 0,4 ] | ||
102 | )))|(% colspan="1" %)(% colspan="1" %) | ||
103 | ((( | ||
104 | Identifies the track connection which places the train on the outer loop facing in the **reverse** direction. | ||
105 | |||
106 | [ 0 ] → index of the inner loop track | ||
107 | |||
108 | [ 1 ] → index of the next track in the ForwardNext or ReverseNext array | ||
109 | ))) | ||
110 | |||
111 | \\ | ||
112 | |||
113 | == Outputs == | ||
114 | |||
115 | (% class="relative-table wrapped" style="width: 99.9215%;" %) | ||
116 | |=((( | ||
117 | Name | ||
118 | )))|=((( | ||
119 | Type | ||
120 | )))|=((( | ||
121 | Range | ||
122 | )))|=((( | ||
123 | Description | ||
124 | ))) | ||
125 | |((( | ||
126 | Path | ||
127 | )))|((( | ||
128 | int[200] | ||
129 | )))|((( | ||
130 | [ 0, 47 ] | ||
131 | )))|((( | ||
132 | Sequence of tracks to follow to get from the starting point to the destination (shortest path) | ||
133 | |||
134 | The end of the sequence is marked by the value -1 | ||
135 | ))) |