# road_land.h

    00001 /* $Id: road_land.h 12149 2008-02-15 18:40:42Z frosch $ */
    00002
    00003 #define TILE_SEQ_LINE(img, pal, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 20, {img, pal} },
    00004 #define TILE_SEQ_END() { 0, 0, 0, 0, 0, 0, {0, 0} }
    00005
    00006 static const DrawTileSeqStruct _road_depot_NE[] = {
    00007   TILE_SEQ_LINE(0x584 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1)
    00008   TILE_SEQ_END()
    00009 };
    00010
    00011 static const DrawTileSeqStruct _road_depot_SE[] = {
    00012   TILE_SEQ_LINE(0x580, PAL_NONE, 0, 0, 1, 16)
    00013   TILE_SEQ_LINE(0x581 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16)
    00014   TILE_SEQ_END()
    00015 };
    00016
    00017 static const DrawTileSeqStruct _road_depot_SW[] = {
    00018   TILE_SEQ_LINE(0x582, PAL_NONE, 0, 0, 16, 1)
    00019   TILE_SEQ_LINE(0x583 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1)
    00020   TILE_SEQ_END()
    00021 };
    00022
    00023 static const DrawTileSeqStruct _road_depot_NW[] = {
    00024   TILE_SEQ_LINE(0x585 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16)
    00025   TILE_SEQ_END()
    00026 };
    00027
    00028 static const DrawTileSprites _road_depot[] = {
    00029   { {0xA4A, PAL_NONE}, _road_depot_NE },
    00030   { {0xA4A, PAL_NONE}, _road_depot_SE },
    00031   { {0xA4A, PAL_NONE}, _road_depot_SW },
    00032   { {0xA4A, PAL_NONE}, _road_depot_NW }
    00033 };
    00034
    00035 static const DrawTileSeqStruct _tram_depot_NE[] = {
    00036   TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x35) | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1)
    00037   TILE_SEQ_END()
    00038 };
    00039
    00040 static const DrawTileSeqStruct _tram_depot_SE[] = {
    00041   TILE_SEQ_LINE(SPR_TRAMWAY_BASE + 0x31, PAL_NONE, 0, 0, 1, 16)
    00042   TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x32) | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16)
    00043   TILE_SEQ_END()
    00044 };
    00045
    00046 static const DrawTileSeqStruct _tram_depot_SW[] = {
    00047   TILE_SEQ_LINE(SPR_TRAMWAY_BASE + 0x33, PAL_NONE, 0, 0, 16, 1)
    00048   TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x34) | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1)
    00049   TILE_SEQ_END()
    00050 };
    00051
    00052 static const DrawTileSeqStruct _tram_depot_NW[] = {
    00053   TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x36) | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16)
    00054   TILE_SEQ_END()
    00055 };
    00056
    00057 static const DrawTileSprites _tram_depot[] = {
    00058   { {0xA4A, PAL_NONE}, _tram_depot_NE },
    00059   { {0xA4A, PAL_NONE}, _tram_depot_SE },
    00060   { {0xA4A, PAL_NONE}, _tram_depot_SW },
    00061   { {0xA4A, PAL_NONE}, _tram_depot_NW }
    00062 };
    00063
    00064 #undef TILE_SEQ_LINE
    00065 #undef TILE_SEQ_END
    00066
    00067
    00068 static const SpriteID _road_tile_sprites_1[16] = {
    00069   0,     0x546, 0x545, 0x53B, 0x544, 0x534, 0x53E, 0x539,
    00070   0x543, 0x53C, 0x535, 0x538, 0x53D, 0x537, 0x53A, 0x536
    00071 };
    00072
    00073 static const SpriteID _road_frontwire_sprites_1[16] = {
    00074   0, 0x54, 0x55, 0x5B, 0x54, 0x54, 0x5E, 0x5A, 0x55, 0x5C, 0x55, 0x58, 0x5D, 0x57, 0x59, 0x56
    00075 };
    00076
    00077 static const SpriteID _road_backpole_sprites_1[16] = {
    00078   0, 0x38, 0x39, 0x40, 0x38, 0x38, 0x43, 0x3E, 0x39, 0x41, 0x39, 0x3C, 0x42, 0x3B, 0x3D, 0x3A
    00079 };
    00080
    00081 #define MAKELINE(a, b, c) { a, b, c },
    00082 #define ENDLINE { 0, 0, 0 }
    00083
    00084 static const DrawRoadTileStruct _roadside_nothing[] = {
    00085   ENDLINE
    00086 };
    00087
    00088 static const DrawRoadTileStruct _road_display_datas2_3[] = {
    00089   MAKELINE(0x57f,  1,  8)
    00090   ENDLINE
    00091 };
    00092
    00093 static const DrawRoadTileStruct _road_display_datas2_5[] = {
    00094   MAKELINE(0x57f,  1,  8)
    00095   MAKELINE(0x57e, 14,  8)
    00096   ENDLINE
    00097 };
    00098
    00099 static const DrawRoadTileStruct _road_display_datas2_6[] = {
    00100   MAKELINE(0x57e,  8,  1)
    00101   ENDLINE
    00102 };
    00103
    00104 static const DrawRoadTileStruct _road_display_datas2_7[] = {
    00105   MAKELINE(0x57f,  1,  8)
    00106   ENDLINE
    00107 };
    00108
    00109 static const DrawRoadTileStruct _road_display_datas2_9[] = {
    00110   MAKELINE(0x57f,  8, 14)
    00111   ENDLINE
    00112 };
    00113
    00114 static const DrawRoadTileStruct _road_display_datas2_10[] = {
    00115   MAKELINE(0x57f,  8, 14)
    00116   MAKELINE(0x57e,  8,  1)
    00117   ENDLINE
    00118 };
    00119
    00120 static const DrawRoadTileStruct _road_display_datas2_11[] = {
    00121   MAKELINE(0x57f,  8, 14)
    00122   ENDLINE
    00123 };
    00124
    00125 static const DrawRoadTileStruct _road_display_datas2_12[] = {
    00126   MAKELINE(0x57e,  8,  1)
    00127   ENDLINE
    00128 };
    00129
    00130 static const DrawRoadTileStruct _road_display_datas2_13[] = {
    00131   MAKELINE(0x57e, 14,  8)
    00132   ENDLINE
    00133 };
    00134
    00135 static const DrawRoadTileStruct _road_display_datas2_14[] = {
    00136   MAKELINE(0x57e,  8,  1)
    00137   ENDLINE
    00138 };
    00139
    00140 static const DrawRoadTileStruct _road_display_datas2_19[] = {
    00141   MAKELINE(0x1212,  0,  2)
    00142   MAKELINE(0x1212,  3,  9)
    00143   MAKELINE(0x1212, 10, 12)
    00144   ENDLINE
    00145 };
    00146
    00147 static const DrawRoadTileStruct _road_display_datas2_21[] = {
    00148   MAKELINE(0x1212,  0,  2)
    00149   MAKELINE(0x1212,  0, 10)
    00150   MAKELINE(0x1212, 12,  2)
    00151   MAKELINE(0x1212, 12, 10)
    00152   ENDLINE
    00153 };
    00154
    00155 static const DrawRoadTileStruct _road_display_datas2_22[] = {
    00156   MAKELINE(0x1212, 10,  0)
    00157   MAKELINE(0x1212,  3,  3)
    00158   MAKELINE(0x1212,  0, 10)
    00159   ENDLINE
    00160 };
    00161
    00162 static const DrawRoadTileStruct _road_display_datas2_23[] = {
    00163   MAKELINE(0x1212,  0,  2)
    00164   MAKELINE(0x1212,  0, 10)
    00165   ENDLINE
    00166 };
    00167
    00168 static const DrawRoadTileStruct _road_display_datas2_25[] = {
    00169   MAKELINE(0x1212, 12,  2)
    00170   MAKELINE(0x1212,  9,  9)
    00171   MAKELINE(0x1212,  2, 12)
    00172   ENDLINE
    00173 };
    00174
    00175 static const DrawRoadTileStruct _road_display_datas2_26[] = {
    00176   MAKELINE(0x1212,  2,  0)
    00177   MAKELINE(0x1212, 10,  0)
    00178   MAKELINE(0x1212,  2, 12)
    00179   MAKELINE(0x1212, 10, 12)
    00180   ENDLINE
    00181 };
    00182
    00183 static const DrawRoadTileStruct _road_display_datas2_27[] = {
    00184   MAKELINE(0x1212,  2, 12)
    00185   MAKELINE(0x1212, 10, 12)
    00186   ENDLINE
    00187 };
    00188
    00189 static const DrawRoadTileStruct _road_display_datas2_28[] = {
    00190   MAKELINE(0x1212,  2,  0)
    00191   MAKELINE(0x1212,  9,  3)
    00192   MAKELINE(0x1212, 12, 10)
    00193   ENDLINE
    00194 };
    00195
    00196 static const DrawRoadTileStruct _road_display_datas2_29[] = {
    00197   MAKELINE(0x1212, 12,  2)
    00198   MAKELINE(0x1212, 12, 10)
    00199   ENDLINE
    00200 };
    00201
    00202 static const DrawRoadTileStruct _road_display_datas2_30[] = {
    00203   MAKELINE(0x1212,  2, 0)
    00204   MAKELINE(0x1212, 10, 0)
    00205   ENDLINE
    00206 };
    00207
    00208 #undef MAKELINE
    00209 #undef ENDLINE
    00210
    00211 static const DrawRoadTileStruct* const _roadside_none[] = {
    00212   _roadside_nothing, _roadside_nothing,
    00213   _roadside_nothing, _roadside_nothing,
    00214   _roadside_nothing, _roadside_nothing,
    00215   _roadside_nothing, _roadside_nothing,
    00216   _roadside_nothing, _roadside_nothing,
    00217   _roadside_nothing, _roadside_nothing,
    00218   _roadside_nothing, _roadside_nothing,
    00219   _roadside_nothing, _roadside_nothing
    00220 };
    00221
    00222 static const DrawRoadTileStruct* const _roadside_lamps[] = {
    00223   _roadside_nothing,
    00224   _roadside_nothing,
    00225   _roadside_nothing,
    00226   _road_display_datas2_3,
    00227   _roadside_nothing,
    00228   _road_display_datas2_5,
    00229   _road_display_datas2_6,
    00230   _road_display_datas2_7,
    00231   _roadside_nothing,
    00232   _road_display_datas2_9,
    00233   _road_display_datas2_10,
    00234   _road_display_datas2_11,
    00235   _road_display_datas2_12,
    00236   _road_display_datas2_13,
    00237   _road_display_datas2_14,
    00238   _roadside_nothing,
    00239 };
    00240
    00241 static const DrawRoadTileStruct* const _roadside_trees[] = {
    00242   _roadside_nothing,
    00243   _roadside_nothing,
    00244   _roadside_nothing,
    00245   _road_display_datas2_19,
    00246   _roadside_nothing,
    00247   _road_display_datas2_21,
    00248   _road_display_datas2_22,
    00249   _road_display_datas2_23,
    00250
    00251   _roadside_nothing,
    00252   _road_display_datas2_25,
    00253   _road_display_datas2_26,
    00254   _road_display_datas2_27,
    00255   _road_display_datas2_28,
    00256   _road_display_datas2_29,
    00257   _road_display_datas2_30,
    00258   _roadside_nothing,
    00259 };
    00260
    00261 static const DrawRoadTileStruct* const * const _road_display_table[] = {
    00262   _roadside_none,
    00263   _roadside_none,
    00264   _roadside_none,
    00265   _roadside_lamps,
    00266   _roadside_none,
    00267   _roadside_trees,
    00268 };