# railtypes.h

Go to the documentation of this file.

    00001 /* $Id: railtypes.h 18806 2010-01-15 11:56:31Z 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     /* rail type label */
    00088     'RAIL',
    00089   },
    00090
    00092   { // Main Sprites
    00093     { SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_X, SPR_RAIL_SINGLE_Y,
    00094       SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST,
    00095       SPR_TRACKS_FOR_SLOPES_RAIL_BASE,
    00096       SPR_CROSSING_OFF_X_RAIL,
    00097       SPR_TUNNEL_ENTRY_REAR_RAIL
    00098     },
    00099
    00100     /* GUI sprites */
    00101     {
    00102       SPR_BUILD_NS_ELRAIL,
    00103       SPR_BUILD_X_ELRAIL,
    00104       SPR_BUILD_EW_ELRAIL,
    00105       SPR_BUILD_Y_ELRAIL,
    00106       SPR_IMG_AUTOELRAIL,
    00107       SPR_IMG_DEPOT_ELRAIL,
    00108       SPR_BUILD_TUNNEL_ELRAIL,
    00109       SPR_IMG_CONVERT_ELRAIL
    00110     },
    00111
    00112     {
    00113       SPR_CURSOR_NS_ELRAIL,
    00114       SPR_CURSOR_SWNE_ELRAIL,
    00115       SPR_CURSOR_EW_ELRAIL,
    00116       SPR_CURSOR_NWSE_ELRAIL,
    00117       SPR_CURSOR_AUTOELRAIL,
    00118       SPR_CURSOR_ELRAIL_DEPOT,
    00119       SPR_CURSOR_TUNNEL_ELRAIL,
    00120       SPR_CURSOR_CONVERT_ELRAIL
    00121     },
    00122
    00123     /* strings */
    00124     {
    00125       STR_RAIL_TOOLBAR_ELRAIL_CONSTRUCTION_CAPTION,
    00126       STR_RAIL_MENU_ELRAIL_CONSTRUCTION,
    00127       STR_BUY_VEHICLE_TRAIN_ELRAIL_CAPTION,
    00128       STR_REPLACE_ELRAIL_VEHICLES,
    00129       STR_ENGINE_PREVIEW_RAILROAD_LOCOMOTIVE,
    00130     },
    00131
    00132     /* Offset of snow tiles */
    00133     SPR_RAIL_SNOW_OFFSET,
    00134
    00135     /* Powered railtypes */
    00136     RAILTYPES_ELECTRIC,
    00137
    00138     /* Compatible railtypes */
    00139     RAILTYPES_ELECTRIC | RAILTYPES_RAIL,
    00140
    00141     /* main offset */
    00142     0,
    00143
    00144     /* bridge offset */
    00145     0,
    00146
    00147     /* custom ground offset */
    00148     0,
    00149
    00150     /* curve speed advantage (multiplier) */
    00151     0,
    00152
    00153     /* flags */
    00154     RTFB_CATENARY,
    00155
    00156     /* cost multiplier */
    00157     12,
    00158
    00159     /* acceleration type */
    00160     0,
    00161
    00162     /* rail type label */
    00163     'ELRL',
    00164   },
    00165
    00167   { // Main Sprites
    00168     { SPR_MONO_TRACK_Y, SPR_MONO_TRACK_N_S, SPR_MONO_TRACK_BASE, SPR_MONO_SINGLE_X, SPR_MONO_SINGLE_Y,
    00169       SPR_MONO_SINGLE_NORTH, SPR_MONO_SINGLE_SOUTH, SPR_MONO_SINGLE_EAST, SPR_MONO_SINGLE_WEST,
    00170       SPR_TRACKS_FOR_SLOPES_MONO_BASE,
    00171       SPR_CROSSING_OFF_X_MONO,
    00172       SPR_TUNNEL_ENTRY_REAR_MONO
    00173     },
    00174
    00175     /* GUI sprites */
    00176     { 0x4E7, 0x4E8, 0x4E9, 0x4EA,
    00177       SPR_IMG_AUTOMONO,
    00178       SPR_IMG_DEPOT_MONO,
    00179       SPR_IMG_TUNNEL_MONO,
    00180       SPR_IMG_CONVERT_MONO
    00181     },
    00182
    00183     {
    00184       SPR_CURSOR_NS_MONO,
    00185       SPR_CURSOR_SWNE_MONO,
    00186       SPR_CURSOR_EW_MONO,
    00187       SPR_CURSOR_NWSE_MONO,
    00188       SPR_CURSOR_AUTOMONO,
    00189       SPR_CURSOR_MONO_DEPOT,
    00190       SPR_CURSOR_TUNNEL_MONO,
    00191       SPR_CURSOR_CONVERT_MONO
    00192     },
    00193
    00194     /* strings */
    00195     {
    00196       STR_RAIL_TOOLBAR_MONORAIL_CONSTRUCTION_CAPTION,
    00197       STR_RAIL_MENU_MONORAIL_CONSTRUCTION,
    00198       STR_BUY_VEHICLE_TRAIN_MONORAIL_CAPTION,
    00199       STR_REPLACE_MONORAIL_VEHICLES,
    00200       STR_ENGINE_PREVIEW_MONORAIL_LOCOMOTIVE,
    00201     },
    00202
    00203     /* Offset of snow tiles */
    00204     SPR_MONO_SNOW_OFFSET,
    00205
    00206     /* Powered railtypes */
    00207     RAILTYPES_MONO,
    00208
    00209     /* Compatible Railtypes */
    00210     RAILTYPES_MONO,
    00211
    00212     /* main offset */
    00213     82,
    00214
    00215     /* bridge offset */
    00216     16,
    00217
    00218     /* custom ground offset */
    00219     1,
    00220
    00221     /* curve speed advantage (multiplier) */
    00222     1,
    00223
    00224     /* flags */
    00225     RTFB_NONE,
    00226
    00227     /* cost multiplier */
    00228     16,
    00229
    00230     /* acceleration type */
    00231     1,
    00232
    00233     /* rail type label */
    00234     'MONO',
    00235   },
    00236
    00238   { // Main sprites
    00239     { SPR_MGLV_TRACK_Y, SPR_MGLV_TRACK_N_S, SPR_MGLV_TRACK_BASE, SPR_MGLV_SINGLE_X, SPR_MGLV_SINGLE_Y,
    00240       SPR_MGLV_SINGLE_NORTH, SPR_MGLV_SINGLE_SOUTH, SPR_MGLV_SINGLE_EAST, SPR_MGLV_SINGLE_WEST,
    00241       SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE,
    00242       SPR_CROSSING_OFF_X_MAGLEV,
    00243       SPR_TUNNEL_ENTRY_REAR_MAGLEV
    00244     },
    00245
    00246     /* GUI sprites */
    00247     { 0x4EB, 0x4EC, 0x4EE, 0x4ED,
    00248       SPR_IMG_AUTOMAGLEV,
    00249       SPR_IMG_DEPOT_MAGLEV,
    00250       SPR_IMG_TUNNEL_MAGLEV,
    00251       SPR_IMG_CONVERT_MAGLEV
    00252     },
    00253
    00254     {
    00255       SPR_CURSOR_NS_MAGLEV,
    00256       SPR_CURSOR_SWNE_MAGLEV,
    00257       SPR_CURSOR_EW_MAGLEV,
    00258       SPR_CURSOR_NWSE_MAGLEV,
    00259       SPR_CURSOR_AUTOMAGLEV,
    00260       SPR_CURSOR_MAGLEV_DEPOT,
    00261       SPR_CURSOR_TUNNEL_MAGLEV,
    00262       SPR_CURSOR_CONVERT_MAGLEV
    00263     },
    00264
    00265     /* strings */
    00266     {
    00267       STR_RAIL_TOOLBAR_MAGLEV_CONSTRUCTION_CAPTION,
    00268       STR_RAIL_MENU_MAGLEV_CONSTRUCTION,
    00269       STR_BUY_VEHICLE_TRAIN_MAGLEV_CAPTION,
    00270       STR_REPLACE_MAGLEV_VEHICLES,
    00271       STR_ENGINE_PREVIEW_MAGLEV_LOCOMOTIVE,
    00272     },
    00273
    00274     /* Offset of snow tiles */
    00275     SPR_MGLV_SNOW_OFFSET,
    00276
    00277     /* Powered railtypes */
    00278     RAILTYPES_MAGLEV,
    00279
    00280     /* Compatible Railtypes */
    00281     RAILTYPES_MAGLEV,
    00282
    00283     /* main offset */
    00284     164,
    00285
    00286     /* bridge offset */
    00287     24,
    00288
    00289     /* custom ground offset */
    00290     2,
    00291
    00292     /* curve speed advantage (multiplier) */
    00293     2,
    00294
    00295     /* flags */
    00296     RTFB_NONE,
    00297
    00298     /* cost multiplier */
    00299     24,
    00300
    00301     /* acceleration type */
    00302     2,
    00303
    00304     /* rail type label */
    00305     'MGLV',
    00306   },
    00307 };
    00308
    00309 #endif /* RAILTYPES_H */