# railtypes.h

Go to the documentation of this file.

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