author | Darkvater |
Sun, 26 Mar 2006 22:41:56 +0000 | |
changeset 3346 | a0d4def7d934 |
parent 2187 | a0e206ce9fbf |
child 4212 | 85159aaf48fb |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
1398 | 3 |
#define TILE_SEQ_BEGIN(x) { x, 0, 0, 0, 0 }, |
4 |
#define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e }, |
|
5 |
#define TILE_SEQ_END() { 0, 0, 0, 0, 0 } |
|
0 | 6 |
|
1398 | 7 |
static const DrawRoadSeqStruct _road_display_datas_0[] = { |
0 | 8 |
TILE_SEQ_BEGIN(0xA4A) |
2187
a0e206ce9fbf
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
celestar
parents:
2186
diff
changeset
|
9 |
TILE_SEQ_LINE(0x584 | PALETTE_MODIFIER_COLOR, 0, 15, 16, 1) |
0 | 10 |
TILE_SEQ_END() |
11 |
}; |
|
12 |
||
1398 | 13 |
static const DrawRoadSeqStruct _road_display_datas_1[] = { |
0 | 14 |
TILE_SEQ_BEGIN(0xA4A) |
15 |
TILE_SEQ_LINE(0x580, 0, 0, 1, 16) |
|
2187
a0e206ce9fbf
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
celestar
parents:
2186
diff
changeset
|
16 |
TILE_SEQ_LINE(0x581 | PALETTE_MODIFIER_COLOR, 15, 0, 1, 16) |
0 | 17 |
TILE_SEQ_END() |
18 |
}; |
|
19 |
||
1398 | 20 |
static const DrawRoadSeqStruct _road_display_datas_2[] = { |
0 | 21 |
TILE_SEQ_BEGIN(0xA4A) |
22 |
TILE_SEQ_LINE(0x582, 0, 0, 16, 1) |
|
2187
a0e206ce9fbf
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
celestar
parents:
2186
diff
changeset
|
23 |
TILE_SEQ_LINE(0x583 | PALETTE_MODIFIER_COLOR, 0, 15, 16, 1) |
0 | 24 |
TILE_SEQ_END() |
25 |
}; |
|
26 |
||
1398 | 27 |
static const DrawRoadSeqStruct _road_display_datas_3[] = { |
0 | 28 |
TILE_SEQ_BEGIN(0xA4A) |
2187
a0e206ce9fbf
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
celestar
parents:
2186
diff
changeset
|
29 |
TILE_SEQ_LINE(0x585 | PALETTE_MODIFIER_COLOR, 15, 0, 1, 16) |
0 | 30 |
TILE_SEQ_END() |
31 |
}; |
|
32 |
||
1398 | 33 |
static const DrawRoadSeqStruct* const _road_display_datas[] = { |
0 | 34 |
_road_display_datas_0, |
35 |
_road_display_datas_1, |
|
36 |
_road_display_datas_2, |
|
37 |
_road_display_datas_3, |
|
38 |
}; |
|
39 |
||
1398 | 40 |
#undef TILE_SEQ_BEGIN |
41 |
#undef TILE_SEQ_LINE |
|
42 |
#undef TILE_SEQ_END |
|
43 |
||
0 | 44 |
|
45 |
static const SpriteID _road_tile_sprites_1[16] = { |
|
46 |
0, 0x546, 0x545, 0x53B, 0x544, 0x534, 0x53E, 0x539, |
|
47 |
0x543, 0x53C, 0x535, 0x538, 0x53D, 0x537, 0x53A, 0x536 |
|
48 |
}; |
|
49 |
||
50 |
||
51 |
||
1398 | 52 |
#define MAKELINE(a, b, c) { a, b, c }, |
53 |
#define ENDLINE { 0, 0, 0 } |
|
54 |
static const DrawRoadTileStruct _road_display_datas2_0[] = { |
|
55 |
ENDLINE |
|
0 | 56 |
}; |
57 |
||
1398 | 58 |
static const DrawRoadTileStruct _road_display_datas2_1[] = { |
59 |
ENDLINE |
|
0 | 60 |
}; |
61 |
||
1398 | 62 |
static const DrawRoadTileStruct _road_display_datas2_2[] = { |
63 |
ENDLINE |
|
0 | 64 |
}; |
65 |
||
1398 | 66 |
static const DrawRoadTileStruct _road_display_datas2_3[] = { |
67 |
MAKELINE(0x57f,1,8) |
|
68 |
ENDLINE |
|
0 | 69 |
}; |
70 |
||
1398 | 71 |
static const DrawRoadTileStruct _road_display_datas2_4[] = { |
72 |
ENDLINE |
|
0 | 73 |
}; |
74 |
||
1398 | 75 |
static const DrawRoadTileStruct _road_display_datas2_5[] = { |
76 |
MAKELINE(0x57f,1,8) |
|
77 |
MAKELINE(0x57e,14,8) |
|
78 |
ENDLINE |
|
0 | 79 |
}; |
80 |
||
1398 | 81 |
static const DrawRoadTileStruct _road_display_datas2_6[] = { |
82 |
MAKELINE(0x57e,8,1) |
|
83 |
ENDLINE |
|
84 |
}; |
|
85 |
||
86 |
static const DrawRoadTileStruct _road_display_datas2_7[] = { |
|
87 |
MAKELINE(0x57f,1,8) |
|
88 |
ENDLINE |
|
89 |
}; |
|
90 |
||
91 |
static const DrawRoadTileStruct _road_display_datas2_8[] = { |
|
92 |
ENDLINE |
|
93 |
}; |
|
94 |
||
95 |
static const DrawRoadTileStruct _road_display_datas2_9[] = { |
|
96 |
MAKELINE(0x57f,8,14) |
|
97 |
ENDLINE |
|
98 |
}; |
|
99 |
||
100 |
static const DrawRoadTileStruct _road_display_datas2_10[] = { |
|
101 |
MAKELINE(0x57f,8,14) |
|
102 |
MAKELINE(0x57e,8,1) |
|
103 |
ENDLINE |
|
104 |
}; |
|
105 |
||
106 |
static const DrawRoadTileStruct _road_display_datas2_11[] = { |
|
107 |
MAKELINE(0x57f,8,14) |
|
108 |
ENDLINE |
|
109 |
}; |
|
110 |
||
111 |
static const DrawRoadTileStruct _road_display_datas2_12[] = { |
|
112 |
MAKELINE(0x57e,8,1) |
|
113 |
ENDLINE |
|
114 |
}; |
|
115 |
||
116 |
static const DrawRoadTileStruct _road_display_datas2_13[] = { |
|
117 |
MAKELINE(0x57e,14,8) |
|
118 |
ENDLINE |
|
119 |
}; |
|
120 |
||
121 |
static const DrawRoadTileStruct _road_display_datas2_14[] = { |
|
122 |
MAKELINE(0x57e,8,1) |
|
123 |
ENDLINE |
|
124 |
}; |
|
125 |
||
126 |
static const DrawRoadTileStruct _road_display_datas2_15[] = { |
|
127 |
ENDLINE |
|
128 |
}; |
|
129 |
||
130 |
static const DrawRoadTileStruct _road_display_datas2_16[] = { |
|
131 |
ENDLINE |
|
132 |
}; |
|
133 |
||
134 |
static const DrawRoadTileStruct _road_display_datas2_17[] = { |
|
135 |
ENDLINE |
|
136 |
}; |
|
137 |
||
138 |
static const DrawRoadTileStruct _road_display_datas2_18[] = { |
|
139 |
ENDLINE |
|
140 |
}; |
|
141 |
||
142 |
static const DrawRoadTileStruct _road_display_datas2_19[] = { |
|
0 | 143 |
MAKELINE(0x1212,0,2) |
144 |
MAKELINE(0x1212,3,9) |
|
145 |
MAKELINE(0x1212,10,12) |
|
1398 | 146 |
ENDLINE |
0 | 147 |
}; |
148 |
||
1398 | 149 |
static const DrawRoadTileStruct _road_display_datas2_20[] = { |
150 |
ENDLINE |
|
0 | 151 |
}; |
152 |
||
1398 | 153 |
static const DrawRoadTileStruct _road_display_datas2_21[] = { |
0 | 154 |
MAKELINE(0x1212,0,2) |
155 |
MAKELINE(0x1212,0,10) |
|
156 |
MAKELINE(0x1212,12,2) |
|
157 |
MAKELINE(0x1212,12,10) |
|
1398 | 158 |
ENDLINE |
0 | 159 |
}; |
160 |
||
1398 | 161 |
static const DrawRoadTileStruct _road_display_datas2_22[] = { |
0 | 162 |
MAKELINE(0x1212,10,0) |
163 |
MAKELINE(0x1212,3,3) |
|
164 |
MAKELINE(0x1212,0,10) |
|
1398 | 165 |
ENDLINE |
0 | 166 |
}; |
167 |
||
1398 | 168 |
static const DrawRoadTileStruct _road_display_datas2_23[] = { |
0 | 169 |
MAKELINE(0x1212,0,2) |
170 |
MAKELINE(0x1212,0,10) |
|
1398 | 171 |
ENDLINE |
0 | 172 |
}; |
173 |
||
1398 | 174 |
static const DrawRoadTileStruct _road_display_datas2_24[] = { |
175 |
ENDLINE |
|
0 | 176 |
}; |
177 |
||
1398 | 178 |
static const DrawRoadTileStruct _road_display_datas2_25[] = { |
0 | 179 |
MAKELINE(0x1212,12,2) |
180 |
MAKELINE(0x1212,9,9) |
|
181 |
MAKELINE(0x1212,2,12) |
|
1398 | 182 |
ENDLINE |
0 | 183 |
}; |
184 |
||
1398 | 185 |
static const DrawRoadTileStruct _road_display_datas2_26[] = { |
0 | 186 |
MAKELINE(0x1212,2,0) |
187 |
MAKELINE(0x1212,10,0) |
|
188 |
MAKELINE(0x1212,2,12) |
|
189 |
MAKELINE(0x1212,10,12) |
|
1398 | 190 |
ENDLINE |
0 | 191 |
}; |
192 |
||
1398 | 193 |
static const DrawRoadTileStruct _road_display_datas2_27[] = { |
0 | 194 |
MAKELINE(0x1212,2,12) |
195 |
MAKELINE(0x1212,10,12) |
|
1398 | 196 |
ENDLINE |
0 | 197 |
}; |
198 |
||
1398 | 199 |
static const DrawRoadTileStruct _road_display_datas2_28[] = { |
0 | 200 |
MAKELINE(0x1212,2,0) |
201 |
MAKELINE(0x1212,9,3) |
|
202 |
MAKELINE(0x1212,12,10) |
|
1398 | 203 |
ENDLINE |
0 | 204 |
}; |
205 |
||
1398 | 206 |
static const DrawRoadTileStruct _road_display_datas2_29[] = { |
207 |
MAKELINE(0x1212,12,2) |
|
208 |
MAKELINE(0x1212,12,10) |
|
209 |
ENDLINE |
|
0 | 210 |
}; |
211 |
||
1398 | 212 |
static const DrawRoadTileStruct _road_display_datas2_30[] = { |
213 |
MAKELINE(0x1212,2,0) |
|
214 |
MAKELINE(0x1212,10,0) |
|
215 |
ENDLINE |
|
0 | 216 |
}; |
217 |
||
1398 | 218 |
static const DrawRoadTileStruct _road_display_datas2_31[] = { |
219 |
ENDLINE |
|
220 |
}; |
|
221 |
||
222 |
static const DrawRoadTileStruct _road_display_datas2_32[] = { |
|
223 |
ENDLINE |
|
0 | 224 |
}; |
225 |
||
226 |
#undef MAKELINE |
|
1398 | 227 |
#undef ENDLINE |
0 | 228 |
|
1398 | 229 |
static const DrawRoadTileStruct* const _road_display_table_1[] = { |
0 | 230 |
_road_display_datas2_32,_road_display_datas2_32, |
231 |
_road_display_datas2_32,_road_display_datas2_32, |
|
232 |
_road_display_datas2_32,_road_display_datas2_32, |
|
233 |
_road_display_datas2_32,_road_display_datas2_32, |
|
234 |
_road_display_datas2_32,_road_display_datas2_32, |
|
235 |
_road_display_datas2_32,_road_display_datas2_32, |
|
236 |
_road_display_datas2_32,_road_display_datas2_32, |
|
237 |
_road_display_datas2_32,_road_display_datas2_32, |
|
238 |
}; |
|
239 |
||
1398 | 240 |
static const DrawRoadTileStruct* const _road_display_table_2[] = { |
0 | 241 |
_road_display_datas2_0, |
242 |
_road_display_datas2_1, |
|
243 |
_road_display_datas2_2, |
|
244 |
_road_display_datas2_3, |
|
245 |
_road_display_datas2_4, |
|
246 |
_road_display_datas2_5, |
|
247 |
_road_display_datas2_6, |
|
248 |
_road_display_datas2_7, |
|
249 |
_road_display_datas2_8, |
|
250 |
_road_display_datas2_9, |
|
251 |
_road_display_datas2_10, |
|
252 |
_road_display_datas2_11, |
|
253 |
_road_display_datas2_12, |
|
254 |
_road_display_datas2_13, |
|
255 |
_road_display_datas2_14, |
|
256 |
_road_display_datas2_15, |
|
257 |
}; |
|
258 |
||
1398 | 259 |
static const DrawRoadTileStruct* const _road_display_table_3[] = { |
0 | 260 |
_road_display_datas2_16, |
261 |
_road_display_datas2_17, |
|
262 |
_road_display_datas2_18, |
|
263 |
_road_display_datas2_19, |
|
264 |
_road_display_datas2_20, |
|
265 |
_road_display_datas2_21, |
|
266 |
_road_display_datas2_22, |
|
267 |
_road_display_datas2_23, |
|
268 |
||
269 |
_road_display_datas2_24, |
|
270 |
_road_display_datas2_25, |
|
271 |
_road_display_datas2_26, |
|
272 |
_road_display_datas2_27, |
|
273 |
_road_display_datas2_28, |
|
274 |
_road_display_datas2_29, |
|
275 |
_road_display_datas2_30, |
|
276 |
_road_display_datas2_31, |
|
277 |
}; |
|
278 |
||
1398 | 279 |
static const DrawRoadTileStruct* const * const _road_display_table[] = { |
0 | 280 |
_road_display_table_1, |
281 |
_road_display_table_1, |
|
282 |
_road_display_table_1, |
|
283 |
_road_display_table_2, |
|
284 |
_road_display_table_1, |
|
285 |
_road_display_table_3, |
|
286 |
}; |