2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
10 * All the railtype-specific information is stored here.
17 * Global Railtype definition
19 static const RailtypeInfo _original_railtypes
[] = {
22 { SPR_RAIL_TRACK_Y
, SPR_RAIL_TRACK_N_S
, SPR_RAIL_TRACK_BASE
, SPR_RAIL_SINGLE_X
, SPR_RAIL_SINGLE_Y
,
23 SPR_RAIL_SINGLE_NORTH
, SPR_RAIL_SINGLE_SOUTH
, SPR_RAIL_SINGLE_EAST
, SPR_RAIL_SINGLE_WEST
,
24 SPR_TRACKS_FOR_SLOPES_RAIL_BASE
,
25 SPR_CROSSING_OFF_X_RAIL
,
26 SPR_TUNNEL_ENTRY_REAR_RAIL
30 { 0x4E3, 0x4E4, 0x4E5, 0x4E6,
40 SPR_CURSOR_SWNE_TRACK
,
42 SPR_CURSOR_NWSE_TRACK
,
44 SPR_CURSOR_RAIL_DEPOT
,
45 SPR_CURSOR_TUNNEL_RAIL
,
46 SPR_CURSOR_CONVERT_RAIL
51 STR_RAIL_NAME_RAILROAD
,
52 STR_RAIL_TOOLBAR_RAILROAD_CONSTRUCTION_CAPTION
,
53 STR_RAIL_MENU_RAILROAD_CONSTRUCTION
,
54 STR_BUY_VEHICLE_TRAIN_RAIL_CAPTION
,
55 STR_REPLACE_RAIL_VEHICLES
,
56 STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE
,
59 /* Offset of snow tiles */
62 /* Powered railtypes */
63 RAILTYPES_RAIL
| RAILTYPES_ELECTRIC
,
65 /* Compatible railtypes */
66 RAILTYPES_RAIL
| RAILTYPES_ELECTRIC
,
71 /* fallback_railtype */
74 /* curve speed advantage (multiplier) */
83 /* maintenance cost multiplier */
86 /* acceleration type */
95 /* alternate labels */
101 /* introduction date */
104 /* railtypes required for this to be introduced */
107 /* introduction rail types */
117 /** Electrified railway */
119 { SPR_RAIL_TRACK_Y
, SPR_RAIL_TRACK_N_S
, SPR_RAIL_TRACK_BASE
, SPR_RAIL_SINGLE_X
, SPR_RAIL_SINGLE_Y
,
120 SPR_RAIL_SINGLE_NORTH
, SPR_RAIL_SINGLE_SOUTH
, SPR_RAIL_SINGLE_EAST
, SPR_RAIL_SINGLE_WEST
,
121 SPR_TRACKS_FOR_SLOPES_RAIL_BASE
,
122 SPR_CROSSING_OFF_X_RAIL
,
123 SPR_TUNNEL_ENTRY_REAR_RAIL
133 SPR_IMG_DEPOT_ELRAIL
,
134 SPR_BUILD_TUNNEL_ELRAIL
,
135 SPR_IMG_CONVERT_ELRAIL
,
140 SPR_CURSOR_NS_ELRAIL
,
141 SPR_CURSOR_SWNE_ELRAIL
,
142 SPR_CURSOR_EW_ELRAIL
,
143 SPR_CURSOR_NWSE_ELRAIL
,
144 SPR_CURSOR_AUTOELRAIL
,
145 SPR_CURSOR_ELRAIL_DEPOT
,
146 SPR_CURSOR_TUNNEL_ELRAIL
,
147 SPR_CURSOR_CONVERT_ELRAIL
152 STR_RAIL_NAME_ELRAIL
,
153 STR_RAIL_TOOLBAR_ELRAIL_CONSTRUCTION_CAPTION
,
154 STR_RAIL_MENU_ELRAIL_CONSTRUCTION
,
155 STR_BUY_VEHICLE_TRAIN_ELRAIL_CAPTION
,
156 STR_REPLACE_ELRAIL_VEHICLES
,
157 STR_ENGINE_PREVIEW_ELRAIL_LOCOMOTIVE
,
160 /* Offset of snow tiles */
161 SPR_RAIL_SNOW_OFFSET
,
163 /* Powered railtypes */
166 /* Compatible railtypes */
167 RAILTYPES_ELECTRIC
| RAILTYPES_RAIL
,
172 /* fallback_railtype */
175 /* curve speed advantage (multiplier) */
181 /* cost multiplier */
184 /* maintenance cost multiplier */
187 /* acceleration type */
193 /* rail type label */
196 /* alternate labels */
202 /* introduction date */
205 /* railtypes required for this to be introduced */
208 /* introduction rail types */
220 { SPR_MONO_TRACK_Y
, SPR_MONO_TRACK_N_S
, SPR_MONO_TRACK_BASE
, SPR_MONO_SINGLE_X
, SPR_MONO_SINGLE_Y
,
221 SPR_MONO_SINGLE_NORTH
, SPR_MONO_SINGLE_SOUTH
, SPR_MONO_SINGLE_EAST
, SPR_MONO_SINGLE_WEST
,
222 SPR_TRACKS_FOR_SLOPES_MONO_BASE
,
223 SPR_CROSSING_OFF_X_MONO
,
224 SPR_TUNNEL_ENTRY_REAR_MONO
228 { 0x4E7, 0x4E8, 0x4E9, 0x4EA,
232 SPR_IMG_CONVERT_MONO
,
238 SPR_CURSOR_SWNE_MONO
,
240 SPR_CURSOR_NWSE_MONO
,
242 SPR_CURSOR_MONO_DEPOT
,
243 SPR_CURSOR_TUNNEL_MONO
,
244 SPR_CURSOR_CONVERT_MONO
249 STR_RAIL_NAME_MONORAIL
,
250 STR_RAIL_TOOLBAR_MONORAIL_CONSTRUCTION_CAPTION
,
251 STR_RAIL_MENU_MONORAIL_CONSTRUCTION
,
252 STR_BUY_VEHICLE_TRAIN_MONORAIL_CAPTION
,
253 STR_REPLACE_MONORAIL_VEHICLES
,
254 STR_ENGINE_PREVIEW_MONORAIL_LOCOMOTIVE
,
257 /* Offset of snow tiles */
258 SPR_MONO_SNOW_OFFSET
,
260 /* Powered railtypes */
263 /* Compatible Railtypes */
269 /* fallback_railtype */
272 /* curve speed advantage (multiplier) */
278 /* cost multiplier */
281 /* maintenance cost multiplier */
284 /* acceleration type */
290 /* rail type label */
293 /* alternate labels */
299 /* introduction date */
302 /* railtypes required for this to be introduced */
305 /* introduction rail types */
317 { SPR_MGLV_TRACK_Y
, SPR_MGLV_TRACK_N_S
, SPR_MGLV_TRACK_BASE
, SPR_MGLV_SINGLE_X
, SPR_MGLV_SINGLE_Y
,
318 SPR_MGLV_SINGLE_NORTH
, SPR_MGLV_SINGLE_SOUTH
, SPR_MGLV_SINGLE_EAST
, SPR_MGLV_SINGLE_WEST
,
319 SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE
,
320 SPR_CROSSING_OFF_X_MAGLEV
,
321 SPR_TUNNEL_ENTRY_REAR_MAGLEV
325 { 0x4EB, 0x4EC, 0x4EE, 0x4ED,
327 SPR_IMG_DEPOT_MAGLEV
,
328 SPR_IMG_TUNNEL_MAGLEV
,
329 SPR_IMG_CONVERT_MAGLEV
,
334 SPR_CURSOR_NS_MAGLEV
,
335 SPR_CURSOR_SWNE_MAGLEV
,
336 SPR_CURSOR_EW_MAGLEV
,
337 SPR_CURSOR_NWSE_MAGLEV
,
338 SPR_CURSOR_AUTOMAGLEV
,
339 SPR_CURSOR_MAGLEV_DEPOT
,
340 SPR_CURSOR_TUNNEL_MAGLEV
,
341 SPR_CURSOR_CONVERT_MAGLEV
346 STR_RAIL_NAME_MAGLEV
,
347 STR_RAIL_TOOLBAR_MAGLEV_CONSTRUCTION_CAPTION
,
348 STR_RAIL_MENU_MAGLEV_CONSTRUCTION
,
349 STR_BUY_VEHICLE_TRAIN_MAGLEV_CAPTION
,
350 STR_REPLACE_MAGLEV_VEHICLES
,
351 STR_ENGINE_PREVIEW_MAGLEV_LOCOMOTIVE
,
354 /* Offset of snow tiles */
355 SPR_MGLV_SNOW_OFFSET
,
357 /* Powered railtypes */
360 /* Compatible Railtypes */
366 /* fallback_railtype */
369 /* curve speed advantage (multiplier) */
375 /* cost multiplier */
378 /* maintenance cost multiplier */
381 /* acceleration type */
387 /* rail type label */
390 /* alternate labels */
396 /* introduction date */
399 /* railtypes required for this to be introduced */
402 /* introduction rail types */
413 #endif /* RAILTYPES_H */