# road_land.h

Go to the documentation of this file.

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