Add standard library header includes to precompiled header. Fix several uses of strin...
[openttd-joker.git] / src / table / railtypes.h
blob06fde3f1c33f95775449746f08d4881d943d4d27
1 /* $Id: railtypes.h 24368 2012-07-02 15:55:13Z frosch $ */
3 /*
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/>.
8 */
10 /**
11 * @file railtypes.h
12 * All the railtype-specific information is stored here.
15 #ifndef RAILTYPES_H
16 #define RAILTYPES_H
18 /**
19 * Global Railtype definition
21 static const RailtypeInfo _original_railtypes[] = {
22 /** Railway */
23 { // Main Sprites
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
31 /* GUI sprites */
32 { 0x4E3, 0x4E4, 0x4E5, 0x4E6,
33 SPR_IMG_AUTORAIL,
34 SPR_IMG_DEPOT_RAIL,
35 SPR_IMG_TUNNEL_RAIL,
36 SPR_IMG_CONVERT_RAIL,
41 SPR_CURSOR_NS_TRACK,
42 SPR_CURSOR_SWNE_TRACK,
43 SPR_CURSOR_EW_TRACK,
44 SPR_CURSOR_NWSE_TRACK,
45 SPR_CURSOR_AUTORAIL,
46 SPR_CURSOR_RAIL_DEPOT,
47 SPR_CURSOR_TUNNEL_RAIL,
48 SPR_CURSOR_CONVERT_RAIL
51 /* strings */
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 */
62 SPR_RAIL_SNOW_OFFSET,
64 /* Powered railtypes */
65 RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
67 /* Compatible railtypes */
68 RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
70 /* bridge offset */
73 /* fallback_railtype */
76 /* curve speed advantage (multiplier) */
79 /* flags */
80 RTFB_NONE,
82 /* cost multiplier */
85 /* maintenance cost multiplier */
88 /* acceleration type */
91 /* max speed */
94 /* rail type label */
95 'RAIL',
97 /* alternate labels */
98 RailTypeLabelList(),
100 /* map colour */
101 0x0A,
103 /* introduction date */
104 INVALID_DATE,
106 /* railtypes required for this to be introduced */
107 RAILTYPES_NONE,
109 /* introduction rail types */
110 RAILTYPES_RAIL,
112 /* sort order */
113 0 << 4 | 7,
115 { NULL },
116 { NULL },
119 /** Electrified railway */
120 { // Main Sprites
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
128 /* GUI sprites */
130 SPR_BUILD_NS_ELRAIL,
131 SPR_BUILD_X_ELRAIL,
132 SPR_BUILD_EW_ELRAIL,
133 SPR_BUILD_Y_ELRAIL,
134 SPR_IMG_AUTOELRAIL,
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
152 /* strings */
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 */
166 RAILTYPES_ELECTRIC,
168 /* Compatible railtypes */
169 RAILTYPES_ELECTRIC | RAILTYPES_RAIL,
171 /* bridge offset */
174 /* fallback_railtype */
177 /* curve speed advantage (multiplier) */
180 /* flags */
181 RTFB_CATENARY,
183 /* cost multiplier */
186 /* maintenance cost multiplier */
189 /* acceleration type */
192 /* max speed */
195 /* rail type label */
196 'ELRL',
198 /* alternate labels */
199 RailTypeLabelList(),
201 /* map colour */
202 0x0A,
204 /* introduction date */
205 INVALID_DATE,
207 /* railtypes required for this to be introduced */
208 RAILTYPES_NONE,
210 /* introduction rail types */
211 RAILTYPES_ELECTRIC,
213 /* sort order */
214 1 << 4 | 7,
216 { NULL },
217 { NULL },
220 /** Monorail */
221 { // Main Sprites
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
229 /* GUI sprites */
230 { 0x4E7, 0x4E8, 0x4E9, 0x4EA,
231 SPR_IMG_AUTOMONO,
232 SPR_IMG_DEPOT_MONO,
233 SPR_IMG_TUNNEL_MONO,
234 SPR_IMG_CONVERT_MONO,
239 SPR_CURSOR_NS_MONO,
240 SPR_CURSOR_SWNE_MONO,
241 SPR_CURSOR_EW_MONO,
242 SPR_CURSOR_NWSE_MONO,
243 SPR_CURSOR_AUTOMONO,
244 SPR_CURSOR_MONO_DEPOT,
245 SPR_CURSOR_TUNNEL_MONO,
246 SPR_CURSOR_CONVERT_MONO
249 /* strings */
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 */
263 RAILTYPES_MONO,
265 /* Compatible Railtypes */
266 RAILTYPES_MONO,
268 /* bridge offset */
271 /* fallback_railtype */
274 /* curve speed advantage (multiplier) */
277 /* flags */
278 RTFB_NONE,
280 /* cost multiplier */
283 /* maintenance cost multiplier */
286 /* acceleration type */
289 /* max speed */
292 /* rail type label */
293 'MONO',
295 /* alternate labels */
296 RailTypeLabelList(),
298 /* map colour */
299 0x0A,
301 /* introduction date */
302 INVALID_DATE,
304 /* railtypes required for this to be introduced */
305 RAILTYPES_NONE,
307 /* introduction rail types */
308 RAILTYPES_MONO,
310 /* sort order */
311 2 << 4 | 7,
313 { NULL },
314 { NULL },
317 /** Maglev */
318 { // Main sprites
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
326 /* GUI sprites */
327 { 0x4EB, 0x4EC, 0x4EE, 0x4ED,
328 SPR_IMG_AUTOMAGLEV,
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
346 /* strings */
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 */
360 RAILTYPES_MAGLEV,
362 /* Compatible Railtypes */
363 RAILTYPES_MAGLEV,
365 /* bridge offset */
368 /* fallback_railtype */
371 /* curve speed advantage (multiplier) */
374 /* flags */
375 RTFB_NONE,
377 /* cost multiplier */
380 /* maintenance cost multiplier */
383 /* acceleration type */
386 /* max speed */
389 /* rail type label */
390 'MGLV',
392 /* alternate labels */
393 RailTypeLabelList(),
395 /* map colour */
396 0x0A,
398 /* introduction date */
399 INVALID_DATE,
401 /* railtypes required for this to be introduced */
402 RAILTYPES_NONE,
404 /* introduction rail types */
405 RAILTYPES_MAGLEV,
407 /* sort order */
408 3 << 4 | 7,
410 { NULL },
411 { NULL },
415 #endif /* RAILTYPES_H */