# railtypes.h

Go to the documentation of this file.

    00001 /* $Id: railtypes.h 18972 2010-01-31 13:17:29Z peter1138 $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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/>.
    00008  */
    00009
    00014 #ifndef RAILTYPES_H
    00015 #define RAILTYPES_H
    00016
    00019 static const RailtypeInfo _original_railtypes[] = {
    00021   { // Main Sprites
    00022     { SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_X, SPR_RAIL_SINGLE_Y,
    00023       SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST,
    00024       SPR_TRACKS_FOR_SLOPES_RAIL_BASE,
    00025       SPR_CROSSING_OFF_X_RAIL,
    00026       SPR_TUNNEL_ENTRY_REAR_RAIL
    00027     },
    00028
    00029     /* GUI sprites */
    00030     { 0x4E3, 0x4E4, 0x4E5, 0x4E6,
    00031       SPR_IMG_AUTORAIL,
    00032       SPR_IMG_DEPOT_RAIL,
    00033       SPR_IMG_TUNNEL_RAIL,
    00034       SPR_IMG_CONVERT_RAIL
    00035     },
    00036
    00037     {
    00038       SPR_CURSOR_NS_TRACK,
    00039       SPR_CURSOR_SWNE_TRACK,
    00040       SPR_CURSOR_EW_TRACK,
    00041       SPR_CURSOR_NWSE_TRACK,
    00042       SPR_CURSOR_AUTORAIL,
    00043       SPR_CURSOR_RAIL_DEPOT,
    00044       SPR_CURSOR_TUNNEL_RAIL,
    00045       SPR_CURSOR_CONVERT_RAIL
    00046     },
    00047
    00048     /* strings */
    00049     {
    00050       STR_RAIL_TOOLBAR_RAILROAD_CONSTRUCTION_CAPTION,
    00051       STR_RAIL_MENU_RAILROAD_CONSTRUCTION,
    00052       STR_BUY_VEHICLE_TRAIN_RAIL_CAPTION,
    00053       STR_REPLACE_RAIL_VEHICLES,
    00054       STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE,
    00055     },
    00056
    00057     /* Offset of snow tiles */
    00058     SPR_RAIL_SNOW_OFFSET,
    00059
    00060     /* Powered railtypes */
    00061     RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
    00062
    00063     /* Compatible railtypes */
    00064     RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
    00065
    00066     /* main offset */
    00067     0,
    00068
    00069     /* bridge offset */
    00070     0,
    00071
    00072     /* custom ground offset */
    00073     0,
    00074
    00075     /* curve speed advantage (multiplier) */
    00076     0,
    00077
    00078     /* flags */
    00079     RTFB_NONE,
    00080
    00081     /* cost multiplier */
    00082     8,
    00083
    00084     /* acceleration type */
    00085     0,
    00086
    00087     /* max speed */
    00088     0,
    00089
    00090     /* rail type label */
    00091     'RAIL',
    00092   },
    00093
    00095   { // Main Sprites
    00096     { SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_X, SPR_RAIL_SINGLE_Y,
    00097       SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST,
    00098       SPR_TRACKS_FOR_SLOPES_RAIL_BASE,
    00099       SPR_CROSSING_OFF_X_RAIL,
    00100       SPR_TUNNEL_ENTRY_REAR_RAIL
    00101     },
    00102
    00103     /* GUI sprites */
    00104     {
    00105       SPR_BUILD_NS_ELRAIL,
    00106       SPR_BUILD_X_ELRAIL,
    00107       SPR_BUILD_EW_ELRAIL,
    00108       SPR_BUILD_Y_ELRAIL,
    00109       SPR_IMG_AUTOELRAIL,
    00110       SPR_IMG_DEPOT_ELRAIL,
    00111       SPR_BUILD_TUNNEL_ELRAIL,
    00112       SPR_IMG_CONVERT_ELRAIL
    00113     },
    00114
    00115     {
    00116       SPR_CURSOR_NS_ELRAIL,
    00117       SPR_CURSOR_SWNE_ELRAIL,
    00118       SPR_CURSOR_EW_ELRAIL,
    00119       SPR_CURSOR_NWSE_ELRAIL,
    00120       SPR_CURSOR_AUTOELRAIL,
    00121       SPR_CURSOR_ELRAIL_DEPOT,
    00122       SPR_CURSOR_TUNNEL_ELRAIL,
    00123       SPR_CURSOR_CONVERT_ELRAIL
    00124     },
    00125
    00126     /* strings */
    00127     {
    00128       STR_RAIL_TOOLBAR_ELRAIL_CONSTRUCTION_CAPTION,
    00129       STR_RAIL_MENU_ELRAIL_CONSTRUCTION,
    00130       STR_BUY_VEHICLE_TRAIN_ELRAIL_CAPTION,
    00131       STR_REPLACE_ELRAIL_VEHICLES,
    00132       STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE,
    00133     },
    00134
    00135     /* Offset of snow tiles */
    00136     SPR_RAIL_SNOW_OFFSET,
    00137
    00138     /* Powered railtypes */
    00139     RAILTYPES_ELECTRIC,
    00140
    00141     /* Compatible railtypes */
    00142     RAILTYPES_ELECTRIC | RAILTYPES_RAIL,
    00143
    00144     /* main offset */
    00145     0,
    00146
    00147     /* bridge offset */
    00148     0,
    00149
    00150     /* custom ground offset */
    00151     0,
    00152
    00153     /* curve speed advantage (multiplier) */
    00154     0,
    00155
    00156     /* flags */
    00157     RTFB_CATENARY,
    00158
    00159     /* cost multiplier */
    00160     12,
    00161
    00162     /* acceleration type */
    00163     0,
    00164
    00165     /* max speed */
    00166     0,
    00167
    00168     /* rail type label */
    00169     'ELRL',
    00170   },
    00171
    00173   { // Main Sprites
    00174     { SPR_MONO_TRACK_Y, SPR_MONO_TRACK_N_S, SPR_MONO_TRACK_BASE, SPR_MONO_SINGLE_X, SPR_MONO_SINGLE_Y,
    00175       SPR_MONO_SINGLE_NORTH, SPR_MONO_SINGLE_SOUTH, SPR_MONO_SINGLE_EAST, SPR_MONO_SINGLE_WEST,
    00176       SPR_TRACKS_FOR_SLOPES_MONO_BASE,
    00177       SPR_CROSSING_OFF_X_MONO,
    00178       SPR_TUNNEL_ENTRY_REAR_MONO
    00179     },
    00180
    00181     /* GUI sprites */
    00182     { 0x4E7, 0x4E8, 0x4E9, 0x4EA,
    00183       SPR_IMG_AUTOMONO,
    00184       SPR_IMG_DEPOT_MONO,
    00185       SPR_IMG_TUNNEL_MONO,
    00186       SPR_IMG_CONVERT_MONO
    00187     },
    00188
    00189     {
    00190       SPR_CURSOR_NS_MONO,
    00191       SPR_CURSOR_SWNE_MONO,
    00192       SPR_CURSOR_EW_MONO,
    00193       SPR_CURSOR_NWSE_MONO,
    00194       SPR_CURSOR_AUTOMONO,
    00195       SPR_CURSOR_MONO_DEPOT,
    00196       SPR_CURSOR_TUNNEL_MONO,
    00197       SPR_CURSOR_CONVERT_MONO
    00198     },
    00199
    00200     /* strings */
    00201     {
    00202       STR_RAIL_TOOLBAR_MONORAIL_CONSTRUCTION_CAPTION,
    00203       STR_RAIL_MENU_MONORAIL_CONSTRUCTION,
    00204       STR_BUY_VEHICLE_TRAIN_MONORAIL_CAPTION,
    00205       STR_REPLACE_MONORAIL_VEHICLES,
    00206       STR_ENGINE_PREVIEW_MONORAIL_LOCOMOTIVE,
    00207     },
    00208
    00209     /* Offset of snow tiles */
    00210     SPR_MONO_SNOW_OFFSET,
    00211
    00212     /* Powered railtypes */
    00213     RAILTYPES_MONO,
    00214
    00215     /* Compatible Railtypes */
    00216     RAILTYPES_MONO,
    00217
    00218     /* main offset */
    00219     82,
    00220
    00221     /* bridge offset */
    00222     16,
    00223
    00224     /* custom ground offset */
    00225     1,
    00226
    00227     /* curve speed advantage (multiplier) */
    00228     1,
    00229
    00230     /* flags */
    00231     RTFB_NONE,
    00232
    00233     /* cost multiplier */
    00234     16,
    00235
    00236     /* acceleration type */
    00237     1,
    00238
    00239     /* max speed */
    00240     0,
    00241
    00242     /* rail type label */
    00243     'MONO',
    00244   },
    00245
    00247   { // Main sprites
    00248     { SPR_MGLV_TRACK_Y, SPR_MGLV_TRACK_N_S, SPR_MGLV_TRACK_BASE, SPR_MGLV_SINGLE_X, SPR_MGLV_SINGLE_Y,
    00249       SPR_MGLV_SINGLE_NORTH, SPR_MGLV_SINGLE_SOUTH, SPR_MGLV_SINGLE_EAST, SPR_MGLV_SINGLE_WEST,
    00250       SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE,
    00251       SPR_CROSSING_OFF_X_MAGLEV,
    00252       SPR_TUNNEL_ENTRY_REAR_MAGLEV
    00253     },
    00254
    00255     /* GUI sprites */
    00256     { 0x4EB, 0x4EC, 0x4EE, 0x4ED,
    00257       SPR_IMG_AUTOMAGLEV,
    00258       SPR_IMG_DEPOT_MAGLEV,
    00259       SPR_IMG_TUNNEL_MAGLEV,
    00260       SPR_IMG_CONVERT_MAGLEV
    00261     },
    00262
    00263     {
    00264       SPR_CURSOR_NS_MAGLEV,
    00265       SPR_CURSOR_SWNE_MAGLEV,
    00266       SPR_CURSOR_EW_MAGLEV,
    00267       SPR_CURSOR_NWSE_MAGLEV,
    00268       SPR_CURSOR_AUTOMAGLEV,
    00269       SPR_CURSOR_MAGLEV_DEPOT,
    00270       SPR_CURSOR_TUNNEL_MAGLEV,
    00271       SPR_CURSOR_CONVERT_MAGLEV
    00272     },
    00273
    00274     /* strings */
    00275     {
    00276       STR_RAIL_TOOLBAR_MAGLEV_CONSTRUCTION_CAPTION,
    00277       STR_RAIL_MENU_MAGLEV_CONSTRUCTION,
    00278       STR_BUY_VEHICLE_TRAIN_MAGLEV_CAPTION,
    00279       STR_REPLACE_MAGLEV_VEHICLES,
    00280       STR_ENGINE_PREVIEW_MAGLEV_LOCOMOTIVE,
    00281     },
    00282
    00283     /* Offset of snow tiles */
    00284     SPR_MGLV_SNOW_OFFSET,
    00285
    00286     /* Powered railtypes */
    00287     RAILTYPES_MAGLEV,
    00288
    00289     /* Compatible Railtypes */
    00290     RAILTYPES_MAGLEV,
    00291
    00292     /* main offset */
    00293     164,
    00294
    00295     /* bridge offset */
    00296     24,
    00297
    00298     /* custom ground offset */
    00299     2,
    00300
    00301     /* curve speed advantage (multiplier) */
    00302     2,
    00303
    00304     /* flags */
    00305     RTFB_NONE,
    00306
    00307     /* cost multiplier */
    00308     24,
    00309
    00310     /* acceleration type */
    00311     2,
    00312
    00313     /* max speed */
    00314     0,
    00315
    00316     /* rail type label */
    00317     'MGLV',
    00318   },
    00319 };
    00320
    00321 #endif /* RAILTYPES_H */