|
1 /* $Id$ */ |
|
2 |
|
3 #ifndef RAILTYPES_H |
|
4 #define RAILTYPES_H |
|
5 |
|
6 /** @file railtypes.h |
|
7 * All the railtype-specific information is stored here. |
|
8 */ |
|
9 |
|
10 /** Global Railtype definition |
|
11 */ |
|
12 RailtypeInfo _railtypes[] = { |
|
13 /** Railway */ |
|
14 { /* Main Sprites */ |
|
15 { SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_Y, SPR_RAIL_SINGLE_X, |
|
16 SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST, |
|
17 SPR_CROSSING_OFF_X_RAIL, |
|
18 SPR_TUNNEL_ENTRY_REAR_RAIL |
|
19 }, |
|
20 |
|
21 /* GUI sprites */ |
|
22 { 0x4E3, 0x4E4, 0x4E5, 0x4E6, |
|
23 SPR_IMG_AUTORAIL, |
|
24 SPR_IMG_DEPOT_RAIL, |
|
25 SPR_IMG_TUNNEL_RAIL, |
|
26 SPR_IMG_CONVERT_RAIL |
|
27 }, |
|
28 |
|
29 { |
|
30 SPR_CURSOR_NS_TRACK, |
|
31 SPR_CURSOR_SWNE_TRACK, |
|
32 SPR_CURSOR_EW_TRACK, |
|
33 SPR_CURSOR_NWSE_TRACK, |
|
34 SPR_CURSOR_AUTORAIL, |
|
35 SPR_CURSOR_RAIL_DEPOT, |
|
36 SPR_CURSOR_TUNNEL_RAIL, |
|
37 SPR_CURSOR_CONVERT_RAIL |
|
38 }, |
|
39 |
|
40 /* strings */ |
|
41 { STR_100A_RAILROAD_CONSTRUCTION }, |
|
42 |
|
43 /* Offset of snow tiles */ |
|
44 SPR_RAIL_SNOW_OFFSET, |
|
45 |
|
46 /* Powered railtypes */ |
|
47 1 << RAILTYPE_RAIL | 1 << RAILTYPE_ELECTRIC, |
|
48 |
|
49 /* Compatible railtypes */ |
|
50 1 << RAILTYPE_RAIL | 1 << RAILTYPE_ELECTRIC, |
|
51 |
|
52 /* main offset */ |
|
53 0, |
|
54 |
|
55 /* bridge offset */ |
|
56 0, |
|
57 |
|
58 /* custom ground offset */ |
|
59 0, |
|
60 }, |
|
61 |
|
62 /** Electrified railway */ |
|
63 { /* Main Sprites */ |
|
64 { SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_Y, SPR_RAIL_SINGLE_X, |
|
65 SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST, |
|
66 SPR_CROSSING_OFF_X_RAIL, |
|
67 SPR_TUNNEL_ENTRY_REAR_RAIL |
|
68 }, |
|
69 |
|
70 /* GUI sprites */ |
|
71 { |
|
72 SPR_BUILD_NS_ELRAIL, |
|
73 SPR_BUILD_X_ELRAIL, |
|
74 SPR_BUILD_EW_ELRAIL, |
|
75 SPR_BUILD_Y_ELRAIL, |
|
76 SPR_OPENTTD_BASE + 0, |
|
77 0x50E, |
|
78 SPR_BUILD_TUNNEL_ELRAIL, |
|
79 SPR_IMG_CONVERT_RAIL |
|
80 }, |
|
81 |
|
82 { |
|
83 SPR_CURSOR_NS_ELRAIL, |
|
84 SPR_CURSOR_SWNE_ELRAIL, |
|
85 SPR_CURSOR_EW_ELRAIL, |
|
86 SPR_CURSOR_NWSE_ELRAIL, |
|
87 SPR_CURSOR_AUTORAIL, |
|
88 SPR_CURSOR_RAIL_DEPOT, |
|
89 SPR_CURSOR_TUNNEL_ELRAIL, |
|
90 SPR_CURSOR_CONVERT_RAIL |
|
91 }, |
|
92 |
|
93 /* strings */ |
|
94 { STR_TITLE_ELRAIL_CONSTRUCTION }, |
|
95 |
|
96 /* Offset of snow tiles */ |
|
97 SPR_RAIL_SNOW_OFFSET, |
|
98 |
|
99 /* Powered railtypes */ |
|
100 1 << RAILTYPE_ELECTRIC, |
|
101 |
|
102 /* Compatible railtypes */ |
|
103 1 << RAILTYPE_ELECTRIC | 1 << RAILTYPE_RAIL, |
|
104 |
|
105 /* main offset */ |
|
106 0, |
|
107 |
|
108 /* bridge offset */ |
|
109 0, |
|
110 |
|
111 /* custom ground offset */ |
|
112 0, |
|
113 }, |
|
114 |
|
115 /** Monorail */ |
|
116 { /* Main Sprites */ |
|
117 { SPR_MONO_TRACK_Y, SPR_MONO_TRACK_N_S, SPR_MONO_TRACK_BASE, SPR_MONO_SINGLE_Y, SPR_MONO_SINGLE_X, |
|
118 SPR_MONO_SINGLE_NORTH, SPR_MONO_SINGLE_SOUTH, SPR_MONO_SINGLE_EAST, SPR_MONO_SINGLE_WEST, |
|
119 SPR_CROSSING_OFF_X_MONO, |
|
120 SPR_TUNNEL_ENTRY_REAR_MONO |
|
121 }, |
|
122 |
|
123 /* GUI sprites */ |
|
124 { 0x4E7, 0x4E8, 0x4E9, 0x4EA, |
|
125 SPR_IMG_AUTOMONO, |
|
126 SPR_IMG_DEPOT_MONO, |
|
127 SPR_IMG_TUNNEL_MONO, |
|
128 SPR_IMG_CONVERT_MONO |
|
129 }, |
|
130 |
|
131 { |
|
132 SPR_CURSOR_NS_MONO, |
|
133 SPR_CURSOR_SWNE_MONO, |
|
134 SPR_CURSOR_EW_MONO, |
|
135 SPR_CURSOR_NWSE_MONO, |
|
136 SPR_CURSOR_AUTOMONO, |
|
137 SPR_CURSOR_MONO_DEPOT, |
|
138 SPR_CURSOR_TUNNEL_MONO, |
|
139 SPR_CURSOR_CONVERT_MONO |
|
140 }, |
|
141 |
|
142 /* strings */ |
|
143 { STR_100B_MONORAIL_CONSTRUCTION }, |
|
144 |
|
145 /* Offset of snow tiles */ |
|
146 SPR_MONO_SNOW_OFFSET, |
|
147 |
|
148 /* Powered railtypes */ |
|
149 1 << RAILTYPE_MONO, |
|
150 |
|
151 /* Compatible Railtypes */ |
|
152 1 << RAILTYPE_MONO, |
|
153 |
|
154 /* main offset */ |
|
155 82, |
|
156 |
|
157 /* bridge offset */ |
|
158 16, |
|
159 |
|
160 /* custom ground offset */ |
|
161 1, |
|
162 }, |
|
163 |
|
164 /** Maglev */ |
|
165 { /* Main sprites */ |
|
166 { SPR_MGLV_TRACK_Y, SPR_MGLV_TRACK_N_S, SPR_MGLV_TRACK_BASE, SPR_MGLV_SINGLE_Y, SPR_MGLV_SINGLE_X, |
|
167 SPR_MGLV_SINGLE_NORTH, SPR_MGLV_SINGLE_SOUTH, SPR_MGLV_SINGLE_EAST, SPR_MGLV_SINGLE_WEST, |
|
168 SPR_CROSSING_OFF_X_MAGLEV, |
|
169 SPR_TUNNEL_ENTRY_REAR_MAGLEV |
|
170 }, |
|
171 |
|
172 /* GUI sprites */ |
|
173 { 0x4EB, 0x4EC, 0x4EE, 0x4ED, |
|
174 SPR_IMG_AUTOMAGLEV, |
|
175 SPR_IMG_DEPOT_MAGLEV, |
|
176 SPR_IMG_TUNNEL_MAGLEV, |
|
177 SPR_IMG_CONVERT_MAGLEV |
|
178 }, |
|
179 |
|
180 { |
|
181 SPR_CURSOR_NS_MAGLEV, |
|
182 SPR_CURSOR_SWNE_MAGLEV, |
|
183 SPR_CURSOR_EW_MAGLEV, |
|
184 SPR_CURSOR_NWSE_MAGLEV, |
|
185 SPR_CURSOR_AUTOMAGLEV, |
|
186 SPR_CURSOR_MAGLEV_DEPOT, |
|
187 SPR_CURSOR_TUNNEL_MAGLEV, |
|
188 SPR_CURSOR_CONVERT_MAGLEV |
|
189 }, |
|
190 |
|
191 /* strings */ |
|
192 { STR_100C_MAGLEV_CONSTRUCTION }, |
|
193 |
|
194 /* Offset of snow tiles */ |
|
195 SPR_MGLV_SNOW_OFFSET, |
|
196 |
|
197 /* Powered railtypes */ |
|
198 1 << RAILTYPE_MAGLEV, |
|
199 |
|
200 /* Compatible Railtypes */ |
|
201 1 << RAILTYPE_MAGLEV, |
|
202 |
|
203 /* main offset */ |
|
204 164, |
|
205 |
|
206 /* bridge offset */ |
|
207 24, |
|
208 |
|
209 /* custom ground offset */ |
|
210 2, |
|
211 }, |
|
212 }; |
|
213 |
|
214 #endif /* RAILTYPES_H */ |