author | truelight |
Sat, 19 May 2007 23:52:04 +0000 | |
changeset 6654 | 31d17823506f |
parent 5732 | 20d674f37c75 |
child 6691 | f9adbb0be102 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
3 |
#define TILE_SEQ_LINE(img, pal, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 20, img, pal }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
4 |
#define TILE_SEQ_END() { 0, 0, 0, 0, 0, 0, 0, 0 } |
0 | 5 |
|
4232
136a11474264
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
tron
parents:
4212
diff
changeset
|
6 |
static const DrawTileSeqStruct _road_depot_NE[] = { |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
7 |
TILE_SEQ_LINE(0x584 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1) |
0 | 8 |
TILE_SEQ_END() |
9 |
}; |
|
10 |
||
4232
136a11474264
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
tron
parents:
4212
diff
changeset
|
11 |
static const DrawTileSeqStruct _road_depot_SE[] = { |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
12 |
TILE_SEQ_LINE(0x580, PAL_NONE, 0, 0, 1, 16) |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
13 |
TILE_SEQ_LINE(0x581 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16) |
0 | 14 |
TILE_SEQ_END() |
15 |
}; |
|
16 |
||
4232
136a11474264
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
tron
parents:
4212
diff
changeset
|
17 |
static const DrawTileSeqStruct _road_depot_SW[] = { |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
18 |
TILE_SEQ_LINE(0x582, PAL_NONE, 0, 0, 16, 1) |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
19 |
TILE_SEQ_LINE(0x583 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 0, 15, 16, 1) |
0 | 20 |
TILE_SEQ_END() |
21 |
}; |
|
22 |
||
4232
136a11474264
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
tron
parents:
4212
diff
changeset
|
23 |
static const DrawTileSeqStruct _road_depot_NW[] = { |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
24 |
TILE_SEQ_LINE(0x585 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, 15, 0, 1, 16) |
0 | 25 |
TILE_SEQ_END() |
26 |
}; |
|
27 |
||
4232
136a11474264
(svn r5796) Use DrawTileSprites/DrawTileSeqStruct for road depot drawing data, too
tron
parents:
4212
diff
changeset
|
28 |
static const DrawTileSprites _road_depot[] = { |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
29 |
{ 0xA4A, PAL_NONE, _road_depot_NE }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
30 |
{ 0xA4A, PAL_NONE, _road_depot_SE }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
31 |
{ 0xA4A, PAL_NONE, _road_depot_SW }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5475
diff
changeset
|
32 |
{ 0xA4A, PAL_NONE, _road_depot_NW } |
0 | 33 |
}; |
34 |
||
1398 | 35 |
#undef TILE_SEQ_BEGIN |
36 |
#undef TILE_SEQ_LINE |
|
37 |
#undef TILE_SEQ_END |
|
38 |
||
0 | 39 |
|
40 |
static const SpriteID _road_tile_sprites_1[16] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
41 |
0, 0x546, 0x545, 0x53B, 0x544, 0x534, 0x53E, 0x539, |
0 | 42 |
0x543, 0x53C, 0x535, 0x538, 0x53D, 0x537, 0x53A, 0x536 |
43 |
}; |
|
44 |
||
45 |
||
46 |
||
1398 | 47 |
#define MAKELINE(a, b, c) { a, b, c }, |
48 |
#define ENDLINE { 0, 0, 0 } |
|
0 | 49 |
|
5732 | 50 |
static const DrawRoadTileStruct _roadside_nothing[] = { |
1398 | 51 |
ENDLINE |
0 | 52 |
}; |
53 |
||
1398 | 54 |
static const DrawRoadTileStruct _road_display_datas2_3[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
55 |
MAKELINE(0x57f, 1, 8) |
1398 | 56 |
ENDLINE |
0 | 57 |
}; |
58 |
||
1398 | 59 |
static const DrawRoadTileStruct _road_display_datas2_5[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
60 |
MAKELINE(0x57f, 1, 8) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
61 |
MAKELINE(0x57e, 14, 8) |
1398 | 62 |
ENDLINE |
0 | 63 |
}; |
64 |
||
1398 | 65 |
static const DrawRoadTileStruct _road_display_datas2_6[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
66 |
MAKELINE(0x57e, 8, 1) |
1398 | 67 |
ENDLINE |
68 |
}; |
|
69 |
||
70 |
static const DrawRoadTileStruct _road_display_datas2_7[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
71 |
MAKELINE(0x57f, 1, 8) |
1398 | 72 |
ENDLINE |
73 |
}; |
|
74 |
||
75 |
static const DrawRoadTileStruct _road_display_datas2_9[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
76 |
MAKELINE(0x57f, 8, 14) |
1398 | 77 |
ENDLINE |
78 |
}; |
|
79 |
||
80 |
static const DrawRoadTileStruct _road_display_datas2_10[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
81 |
MAKELINE(0x57f, 8, 14) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
82 |
MAKELINE(0x57e, 8, 1) |
1398 | 83 |
ENDLINE |
84 |
}; |
|
85 |
||
86 |
static const DrawRoadTileStruct _road_display_datas2_11[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
87 |
MAKELINE(0x57f, 8, 14) |
1398 | 88 |
ENDLINE |
89 |
}; |
|
90 |
||
91 |
static const DrawRoadTileStruct _road_display_datas2_12[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
92 |
MAKELINE(0x57e, 8, 1) |
1398 | 93 |
ENDLINE |
94 |
}; |
|
95 |
||
96 |
static const DrawRoadTileStruct _road_display_datas2_13[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
97 |
MAKELINE(0x57e, 14, 8) |
1398 | 98 |
ENDLINE |
99 |
}; |
|
100 |
||
101 |
static const DrawRoadTileStruct _road_display_datas2_14[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
102 |
MAKELINE(0x57e, 8, 1) |
1398 | 103 |
ENDLINE |
104 |
}; |
|
105 |
||
106 |
static const DrawRoadTileStruct _road_display_datas2_19[] = { |
|
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
107 |
MAKELINE(0x1212, 0, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
108 |
MAKELINE(0x1212, 3, 9) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
109 |
MAKELINE(0x1212, 10, 12) |
1398 | 110 |
ENDLINE |
0 | 111 |
}; |
112 |
||
1398 | 113 |
static const DrawRoadTileStruct _road_display_datas2_21[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
114 |
MAKELINE(0x1212, 0, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
115 |
MAKELINE(0x1212, 0, 10) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
116 |
MAKELINE(0x1212, 12, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
117 |
MAKELINE(0x1212, 12, 10) |
1398 | 118 |
ENDLINE |
0 | 119 |
}; |
120 |
||
1398 | 121 |
static const DrawRoadTileStruct _road_display_datas2_22[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
122 |
MAKELINE(0x1212, 10, 0) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
123 |
MAKELINE(0x1212, 3, 3) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
124 |
MAKELINE(0x1212, 0, 10) |
1398 | 125 |
ENDLINE |
0 | 126 |
}; |
127 |
||
1398 | 128 |
static const DrawRoadTileStruct _road_display_datas2_23[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
129 |
MAKELINE(0x1212, 0, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
130 |
MAKELINE(0x1212, 0, 10) |
1398 | 131 |
ENDLINE |
0 | 132 |
}; |
133 |
||
1398 | 134 |
static const DrawRoadTileStruct _road_display_datas2_25[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
135 |
MAKELINE(0x1212, 12, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
136 |
MAKELINE(0x1212, 9, 9) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
137 |
MAKELINE(0x1212, 2, 12) |
1398 | 138 |
ENDLINE |
0 | 139 |
}; |
140 |
||
1398 | 141 |
static const DrawRoadTileStruct _road_display_datas2_26[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
142 |
MAKELINE(0x1212, 2, 0) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
143 |
MAKELINE(0x1212, 10, 0) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
144 |
MAKELINE(0x1212, 2, 12) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
145 |
MAKELINE(0x1212, 10, 12) |
1398 | 146 |
ENDLINE |
0 | 147 |
}; |
148 |
||
1398 | 149 |
static const DrawRoadTileStruct _road_display_datas2_27[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
150 |
MAKELINE(0x1212, 2, 12) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
151 |
MAKELINE(0x1212, 10, 12) |
1398 | 152 |
ENDLINE |
0 | 153 |
}; |
154 |
||
1398 | 155 |
static const DrawRoadTileStruct _road_display_datas2_28[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
156 |
MAKELINE(0x1212, 2, 0) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
157 |
MAKELINE(0x1212, 9, 3) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
158 |
MAKELINE(0x1212, 12, 10) |
1398 | 159 |
ENDLINE |
0 | 160 |
}; |
161 |
||
1398 | 162 |
static const DrawRoadTileStruct _road_display_datas2_29[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
163 |
MAKELINE(0x1212, 12, 2) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
164 |
MAKELINE(0x1212, 12, 10) |
1398 | 165 |
ENDLINE |
0 | 166 |
}; |
167 |
||
1398 | 168 |
static const DrawRoadTileStruct _road_display_datas2_30[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
169 |
MAKELINE(0x1212, 2, 0) |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4232
diff
changeset
|
170 |
MAKELINE(0x1212, 10, 0) |
1398 | 171 |
ENDLINE |
0 | 172 |
}; |
173 |
||
174 |
#undef MAKELINE |
|
1398 | 175 |
#undef ENDLINE |
0 | 176 |
|
5732 | 177 |
static const DrawRoadTileStruct* const _roadside_none[] = { |
178 |
_roadside_nothing, _roadside_nothing, |
|
179 |
_roadside_nothing, _roadside_nothing, |
|
180 |
_roadside_nothing, _roadside_nothing, |
|
181 |
_roadside_nothing, _roadside_nothing, |
|
182 |
_roadside_nothing, _roadside_nothing, |
|
183 |
_roadside_nothing, _roadside_nothing, |
|
184 |
_roadside_nothing, _roadside_nothing, |
|
185 |
_roadside_nothing, _roadside_nothing |
|
0 | 186 |
}; |
187 |
||
5732 | 188 |
static const DrawRoadTileStruct* const _roadside_lamps[] = { |
189 |
_roadside_nothing, |
|
190 |
_roadside_nothing, |
|
191 |
_roadside_nothing, |
|
0 | 192 |
_road_display_datas2_3, |
5732 | 193 |
_roadside_nothing, |
0 | 194 |
_road_display_datas2_5, |
195 |
_road_display_datas2_6, |
|
196 |
_road_display_datas2_7, |
|
5732 | 197 |
_roadside_nothing, |
0 | 198 |
_road_display_datas2_9, |
199 |
_road_display_datas2_10, |
|
200 |
_road_display_datas2_11, |
|
201 |
_road_display_datas2_12, |
|
202 |
_road_display_datas2_13, |
|
203 |
_road_display_datas2_14, |
|
5732 | 204 |
_roadside_nothing, |
0 | 205 |
}; |
206 |
||
5732 | 207 |
static const DrawRoadTileStruct* const _roadside_trees[] = { |
208 |
_roadside_nothing, |
|
209 |
_roadside_nothing, |
|
210 |
_roadside_nothing, |
|
0 | 211 |
_road_display_datas2_19, |
5732 | 212 |
_roadside_nothing, |
0 | 213 |
_road_display_datas2_21, |
214 |
_road_display_datas2_22, |
|
215 |
_road_display_datas2_23, |
|
216 |
||
5732 | 217 |
_roadside_nothing, |
0 | 218 |
_road_display_datas2_25, |
219 |
_road_display_datas2_26, |
|
220 |
_road_display_datas2_27, |
|
221 |
_road_display_datas2_28, |
|
222 |
_road_display_datas2_29, |
|
223 |
_road_display_datas2_30, |
|
5732 | 224 |
_roadside_nothing, |
0 | 225 |
}; |
226 |
||
1398 | 227 |
static const DrawRoadTileStruct* const * const _road_display_table[] = { |
5732 | 228 |
_roadside_none, |
229 |
_roadside_none, |
|
230 |
_roadside_none, |
|
231 |
_roadside_lamps, |
|
232 |
_roadside_none, |
|
233 |
_roadside_trees, |
|
0 | 234 |
}; |