1 /* $Id: railtypes.h 24368 2012-07-02 15:55:13Z frosch $ */
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
12 * All the railtype-specific information is stored here.
19 * Global Railtype definition
21 static const RailtypeInfo _original_railtypes
[] = {
24 { SPR_RAIL_TRACK_Y
, SPR_RAIL_TRACK_N_S
, SPR_RAIL_TRACK_BASE
, SPR_RAIL_SINGLE_X
, SPR_RAIL_SINGLE_Y
,
25 SPR_RAIL_SINGLE_NORTH
, SPR_RAIL_SINGLE_SOUTH
, SPR_RAIL_SINGLE_EAST
, SPR_RAIL_SINGLE_WEST
,
26 SPR_TRACKS_FOR_SLOPES_RAIL_BASE
,
27 SPR_CROSSING_OFF_X_RAIL
,
28 SPR_TUNNEL_ENTRY_REAR_RAIL
32 { 0x4E3, 0x4E4, 0x4E5, 0x4E6,
42 SPR_CURSOR_SWNE_TRACK
,
44 SPR_CURSOR_NWSE_TRACK
,
46 SPR_CURSOR_RAIL_DEPOT
,
47 SPR_CURSOR_TUNNEL_RAIL
,
48 SPR_CURSOR_CONVERT_RAIL
53 STR_RAIL_NAME_RAILROAD
,
54 STR_RAIL_TOOLBAR_RAILROAD_CONSTRUCTION_CAPTION
,
55 STR_RAIL_MENU_RAILROAD_CONSTRUCTION
,
56 STR_BUY_VEHICLE_TRAIN_RAIL_CAPTION
,
57 STR_REPLACE_RAIL_VEHICLES
,
58 STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE
,
61 /* Offset of snow tiles */
64 /* Powered railtypes */
65 RAILTYPES_RAIL
| RAILTYPES_ELECTRIC
,
67 /* Compatible railtypes */
68 RAILTYPES_RAIL
| RAILTYPES_ELECTRIC
,
73 /* fallback_railtype */
76 /* curve speed advantage (multiplier) */
85 /* maintenance cost multiplier */
88 /* acceleration type */
97 /* alternate labels */
103 /* introduction date */
106 /* railtypes required for this to be introduced */
109 /* introduction rail types */
119 /** Electrified railway */
121 { SPR_RAIL_TRACK_Y
, SPR_RAIL_TRACK_N_S
, SPR_RAIL_TRACK_BASE
, SPR_RAIL_SINGLE_X
, SPR_RAIL_SINGLE_Y
,
122 SPR_RAIL_SINGLE_NORTH
, SPR_RAIL_SINGLE_SOUTH
, SPR_RAIL_SINGLE_EAST
, SPR_RAIL_SINGLE_WEST
,
123 SPR_TRACKS_FOR_SLOPES_RAIL_BASE
,
124 SPR_CROSSING_OFF_X_RAIL
,
125 SPR_TUNNEL_ENTRY_REAR_RAIL
135 SPR_IMG_DEPOT_ELRAIL
,
136 SPR_BUILD_TUNNEL_ELRAIL
,
137 SPR_IMG_CONVERT_ELRAIL
,
142 SPR_CURSOR_NS_ELRAIL
,
143 SPR_CURSOR_SWNE_ELRAIL
,
144 SPR_CURSOR_EW_ELRAIL
,
145 SPR_CURSOR_NWSE_ELRAIL
,
146 SPR_CURSOR_AUTOELRAIL
,
147 SPR_CURSOR_ELRAIL_DEPOT
,
148 SPR_CURSOR_TUNNEL_ELRAIL
,
149 SPR_CURSOR_CONVERT_ELRAIL
154 STR_RAIL_NAME_ELRAIL
,
155 STR_RAIL_TOOLBAR_ELRAIL_CONSTRUCTION_CAPTION
,
156 STR_RAIL_MENU_ELRAIL_CONSTRUCTION
,
157 STR_BUY_VEHICLE_TRAIN_ELRAIL_CAPTION
,
158 STR_REPLACE_ELRAIL_VEHICLES
,
159 STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE
,
162 /* Offset of snow tiles */
163 SPR_RAIL_SNOW_OFFSET
,
165 /* Powered railtypes */
168 /* Compatible railtypes */
169 RAILTYPES_ELECTRIC
| RAILTYPES_RAIL
,
174 /* fallback_railtype */
177 /* curve speed advantage (multiplier) */
183 /* cost multiplier */
186 /* maintenance cost multiplier */
189 /* acceleration type */
195 /* rail type label */
198 /* alternate labels */
204 /* introduction date */
207 /* railtypes required for this to be introduced */
210 /* introduction rail types */
222 { SPR_MONO_TRACK_Y
, SPR_MONO_TRACK_N_S
, SPR_MONO_TRACK_BASE
, SPR_MONO_SINGLE_X
, SPR_MONO_SINGLE_Y
,
223 SPR_MONO_SINGLE_NORTH
, SPR_MONO_SINGLE_SOUTH
, SPR_MONO_SINGLE_EAST
, SPR_MONO_SINGLE_WEST
,
224 SPR_TRACKS_FOR_SLOPES_MONO_BASE
,
225 SPR_CROSSING_OFF_X_MONO
,
226 SPR_TUNNEL_ENTRY_REAR_MONO
230 { 0x4E7, 0x4E8, 0x4E9, 0x4EA,
234 SPR_IMG_CONVERT_MONO
,
240 SPR_CURSOR_SWNE_MONO
,
242 SPR_CURSOR_NWSE_MONO
,
244 SPR_CURSOR_MONO_DEPOT
,
245 SPR_CURSOR_TUNNEL_MONO
,
246 SPR_CURSOR_CONVERT_MONO
251 STR_RAIL_NAME_MONORAIL
,
252 STR_RAIL_TOOLBAR_MONORAIL_CONSTRUCTION_CAPTION
,
253 STR_RAIL_MENU_MONORAIL_CONSTRUCTION
,
254 STR_BUY_VEHICLE_TRAIN_MONORAIL_CAPTION
,
255 STR_REPLACE_MONORAIL_VEHICLES
,
256 STR_ENGINE_PREVIEW_MONORAIL_LOCOMOTIVE
,
259 /* Offset of snow tiles */
260 SPR_MONO_SNOW_OFFSET
,
262 /* Powered railtypes */
265 /* Compatible Railtypes */
271 /* fallback_railtype */
274 /* curve speed advantage (multiplier) */
280 /* cost multiplier */
283 /* maintenance cost multiplier */
286 /* acceleration type */
292 /* rail type label */
295 /* alternate labels */
301 /* introduction date */
304 /* railtypes required for this to be introduced */
307 /* introduction rail types */
319 { SPR_MGLV_TRACK_Y
, SPR_MGLV_TRACK_N_S
, SPR_MGLV_TRACK_BASE
, SPR_MGLV_SINGLE_X
, SPR_MGLV_SINGLE_Y
,
320 SPR_MGLV_SINGLE_NORTH
, SPR_MGLV_SINGLE_SOUTH
, SPR_MGLV_SINGLE_EAST
, SPR_MGLV_SINGLE_WEST
,
321 SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE
,
322 SPR_CROSSING_OFF_X_MAGLEV
,
323 SPR_TUNNEL_ENTRY_REAR_MAGLEV
327 { 0x4EB, 0x4EC, 0x4EE, 0x4ED,
329 SPR_IMG_DEPOT_MAGLEV
,
330 SPR_IMG_TUNNEL_MAGLEV
,
331 SPR_IMG_CONVERT_MAGLEV
,
336 SPR_CURSOR_NS_MAGLEV
,
337 SPR_CURSOR_SWNE_MAGLEV
,
338 SPR_CURSOR_EW_MAGLEV
,
339 SPR_CURSOR_NWSE_MAGLEV
,
340 SPR_CURSOR_AUTOMAGLEV
,
341 SPR_CURSOR_MAGLEV_DEPOT
,
342 SPR_CURSOR_TUNNEL_MAGLEV
,
343 SPR_CURSOR_CONVERT_MAGLEV
348 STR_RAIL_NAME_MAGLEV
,
349 STR_RAIL_TOOLBAR_MAGLEV_CONSTRUCTION_CAPTION
,
350 STR_RAIL_MENU_MAGLEV_CONSTRUCTION
,
351 STR_BUY_VEHICLE_TRAIN_MAGLEV_CAPTION
,
352 STR_REPLACE_MAGLEV_VEHICLES
,
353 STR_ENGINE_PREVIEW_MAGLEV_LOCOMOTIVE
,
356 /* Offset of snow tiles */
357 SPR_MGLV_SNOW_OFFSET
,
359 /* Powered railtypes */
362 /* Compatible Railtypes */
368 /* fallback_railtype */
371 /* curve speed advantage (multiplier) */
377 /* cost multiplier */
380 /* maintenance cost multiplier */
383 /* acceleration type */
389 /* rail type label */
392 /* alternate labels */
398 /* introduction date */
401 /* railtypes required for this to be introduced */
404 /* introduction rail types */
415 #endif /* RAILTYPES_H */