Wiki source code of Pathfinder
Version 3.1 by GiorgioGhisotti on 2019/05/05 23:51
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == Inputs == | ||
2 | |||
3 | (% class="relative-table wrapped" style="width: 99.9192%;" %) | ||
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 | |||
77 | \\ | ||
78 | |||
79 | == Outputs == | ||
80 | |||
81 | (% class="relative-table wrapped" style="width: 99.9215%;" %) | ||
82 | |=((( | ||
83 | Name | ||
84 | )))|=((( | ||
85 | Type | ||
86 | )))|=((( | ||
87 | Range | ||
88 | )))|=((( | ||
89 | Description | ||
90 | ))) | ||
91 | |((( | ||
92 | Path | ||
93 | )))|((( | ||
94 | int[200] | ||
95 | )))|((( | ||
96 | [ 0, 47 ] | ||
97 | )))|((( | ||
98 | Sequence of tracks to follow to get from the starting point to the destination (shortest path) | ||
99 | |||
100 | The end of the sequence is marked by the value -1 | ||
101 | ))) |