4eb80b97a0362f37026d83b9e62cbdf1086fecdd
[rocksndiamonds.git] / src / main.h
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * main.h                                                   *
12 ***********************************************************/
13
14 #ifndef MAIN_H
15 #define MAIN_H
16
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <string.h>
20 #include <time.h>
21 #include <sys/time.h>
22 #include <sys/types.h>
23 #include <sys/stat.h>
24 #include <errno.h>
25 #include <unistd.h>
26 #include <fcntl.h>
27
28 #include "libgame/libgame.h"
29
30 #define WIN_XSIZE       672
31 #define WIN_YSIZE       560
32
33 #define SCR_FIELDX      17
34 #define SCR_FIELDY      17
35 #define MAX_BUF_XSIZE   (SCR_FIELDX + 2)
36 #define MAX_BUF_YSIZE   (SCR_FIELDY + 2)
37 #define MIN_LEV_FIELDX  3
38 #define MIN_LEV_FIELDY  3
39 #define STD_LEV_FIELDX  64
40 #define STD_LEV_FIELDY  32
41 #define MAX_LEV_FIELDX  128
42 #define MAX_LEV_FIELDY  128
43
44 #define SCREENX(a)      ((a) - scroll_x)
45 #define SCREENY(a)      ((a) - scroll_y)
46 #define LEVELX(a)       ((a) + scroll_x)
47 #define LEVELY(a)       ((a) + scroll_y)
48 #define IN_VIS_FIELD(x,y) ((x)>=0 && (x)<SCR_FIELDX && (y)>=0 &&(y)<SCR_FIELDY)
49 #define IN_SCR_FIELD(x,y) ((x)>=BX1 && (x)<=BX2 && (y)>=BY1 &&(y)<=BY2)
50 #define IN_LEV_FIELD(x,y) ((x)>=0 && (x)<lev_fieldx && (y)>=0 &&(y)<lev_fieldy)
51
52 /* values for 'Elementeigenschaften1' */
53 #define EP_BIT_AMOEBALIVE       (1 << 0)
54 #define EP_BIT_AMOEBOID         (1 << 1)
55 #define EP_BIT_SCHLUESSEL       (1 << 2)
56 #define EP_BIT_PFORTE           (1 << 3)
57 #define EP_BIT_SOLID            (1 << 4)
58 #define EP_BIT_MASSIVE          (1 << 5)
59 #define EP_BIT_SLIPPERY         (1 << 6)
60 #define EP_BIT_ENEMY            (1 << 7)
61 #define EP_BIT_MAUER            (1 << 8)
62 #define EP_BIT_CAN_FALL         (1 << 9)
63 #define EP_BIT_CAN_SMASH        (1 << 10)
64 #define EP_BIT_CAN_CHANGE       (1 << 11)
65 #define EP_BIT_CAN_MOVE         (1 << 12)
66 #define EP_BIT_COULD_MOVE       (1 << 13)
67 #define EP_BIT_DONT_TOUCH       (1 << 14)
68 #define EP_BIT_DONT_GO_TO       (1 << 15)
69 #define EP_BIT_MAMPF2           (1 << 16)
70 #define EP_BIT_CHAR             (1 << 17)
71 #define EP_BIT_BD_ELEMENT       (1 << 18)
72 #define EP_BIT_SB_ELEMENT       (1 << 19)
73 #define EP_BIT_GEM              (1 << 20)
74 #define EP_BIT_INACTIVE         (1 << 21)
75 #define EP_BIT_EXPLOSIVE        (1 << 22)
76 #define EP_BIT_MAMPF3           (1 << 23)
77 #define EP_BIT_PUSHABLE         (1 << 24)
78 #define EP_BIT_PLAYER           (1 << 25)
79 #define EP_BIT_HAS_CONTENT      (1 << 26)
80 #define EP_BIT_EATABLE          (1 << 27)
81 #define EP_BIT_SP_ELEMENT       (1 << 28)
82 #define EP_BIT_QUICK_GATE       (1 << 29)
83 #define EP_BIT_OVER_PLAYER      (1 << 30)
84 #define EP_BIT_ACTIVE_BOMB      (1 << 31)
85
86 /* values for 'Elementeigenschaften2' */
87 #define EP_BIT_BELT             (1 << 0)
88 #define EP_BIT_BELT_SWITCH      (1 << 1)
89 #define EP_BIT_TUBE             (1 << 2)
90 #define EP_BIT_EM_SLIPPERY_WALL (1 << 3)
91
92 #define IS_AMOEBALIVE(e)        (Elementeigenschaften1[e] & EP_BIT_AMOEBALIVE)
93 #define IS_AMOEBOID(e)          (Elementeigenschaften1[e] & EP_BIT_AMOEBOID)
94 #define IS_SCHLUESSEL(e)        (Elementeigenschaften1[e] & EP_BIT_SCHLUESSEL)
95 #define IS_PFORTE(e)            (Elementeigenschaften1[e] & EP_BIT_PFORTE)
96 #define IS_SOLID(e)             (Elementeigenschaften1[e] & EP_BIT_SOLID)
97 #define IS_MASSIVE(e)           (Elementeigenschaften1[e] & EP_BIT_MASSIVE)
98 #define IS_SLIPPERY(e)          (Elementeigenschaften1[e] & EP_BIT_SLIPPERY)
99 #define IS_ENEMY(e)             (Elementeigenschaften1[e] & EP_BIT_ENEMY)
100 #define IS_MAUER(e)             (Elementeigenschaften1[e] & EP_BIT_MAUER)
101 #define CAN_FALL(e)             (Elementeigenschaften1[e] & EP_BIT_CAN_FALL)
102 #define CAN_SMASH(e)            (Elementeigenschaften1[e] & EP_BIT_CAN_SMASH)
103 #define CAN_CHANGE(e)           (Elementeigenschaften1[e] & EP_BIT_CAN_CHANGE)
104 #define CAN_MOVE(e)             (Elementeigenschaften1[e] & EP_BIT_CAN_MOVE)
105 #define COULD_MOVE(e)           (Elementeigenschaften1[e] & EP_BIT_COULD_MOVE)
106 #define DONT_TOUCH(e)           (Elementeigenschaften1[e] & EP_BIT_DONT_TOUCH)
107 #define DONT_GO_TO(e)           (Elementeigenschaften1[e] & EP_BIT_DONT_GO_TO)
108 #define IS_MAMPF2(e)            (Elementeigenschaften1[e] & EP_BIT_MAMPF2)
109 #define IS_CHAR(e)              (Elementeigenschaften1[e] & EP_BIT_CHAR)
110 #define IS_BD_ELEMENT(e)        (Elementeigenschaften1[e] & EP_BIT_BD_ELEMENT)
111 #define IS_SB_ELEMENT(e)        (Elementeigenschaften1[e] & EP_BIT_SB_ELEMENT)
112 #define IS_GEM(e)               (Elementeigenschaften1[e] & EP_BIT_GEM)
113 #define IS_INACTIVE(e)          (Elementeigenschaften1[e] & EP_BIT_INACTIVE)
114 #define IS_EXPLOSIVE(e)         (Elementeigenschaften1[e] & EP_BIT_EXPLOSIVE)
115 #define IS_MAMPF3(e)            (Elementeigenschaften1[e] & EP_BIT_MAMPF3)
116 #define IS_PUSHABLE(e)          (Elementeigenschaften1[e] & EP_BIT_PUSHABLE)
117 #define ELEM_IS_PLAYER(e)       (Elementeigenschaften1[e] & EP_BIT_PLAYER)
118 #define HAS_CONTENT(e)          (Elementeigenschaften1[e] & EP_BIT_HAS_CONTENT)
119 #define IS_EATABLE(e)           (Elementeigenschaften1[e] & EP_BIT_EATABLE)
120 #define IS_SP_ELEMENT(e)        (Elementeigenschaften1[e] & EP_BIT_SP_ELEMENT)
121 #define IS_QUICK_GATE(e)        (Elementeigenschaften1[e] & EP_BIT_QUICK_GATE)
122 #define IS_OVER_PLAYER(e)       (Elementeigenschaften1[e] & EP_BIT_OVER_PLAYER)
123 #define IS_ACTIVE_BOMB(e)       (Elementeigenschaften1[e] & EP_BIT_ACTIVE_BOMB)
124 #define IS_BELT(e)              (Elementeigenschaften2[e] & EP_BIT_BELT)
125 #define IS_BELT_SWITCH(e)       (Elementeigenschaften2[e] & EP_BIT_BELT_SWITCH)
126 #define IS_TUBE(e)              (Elementeigenschaften2[e] & EP_BIT_TUBE)
127 #define IS_EM_SLIPPERY_WALL(e)  (Elementeigenschaften2[e] & EP_BIT_EM_SLIPPERY_WALL)
128
129 #define IS_PLAYER(x,y)          (ELEM_IS_PLAYER(StorePlayer[x][y]))
130
131 #define IS_FREE(x,y)            (Feld[x][y] == EL_LEERRAUM && !IS_PLAYER(x,y))
132 #define IS_FREE_OR_PLAYER(x,y)  (Feld[x][y] == EL_LEERRAUM)
133
134 #define IS_MOVING(x,y)          (MovPos[x][y] != 0)
135 #define IS_FALLING(x,y)         (MovPos[x][y] != 0 && MovDir[x][y] == MV_DOWN)
136 #define IS_BLOCKED(x,y)         (Feld[x][y] == EL_BLOCKED)
137
138 #define EL_CHANGED(e)           ((e) == EL_FELSBROCKEN    ? EL_EDELSTEIN :  \
139                                  (e) == EL_BD_ROCK        ? EL_EDELSTEIN_BD : \
140                                  (e) == EL_EDELSTEIN      ? EL_DIAMANT :    \
141                                  (e) == EL_EDELSTEIN_GELB ? EL_DIAMANT :    \
142                                  (e) == EL_EDELSTEIN_ROT  ? EL_DIAMANT :    \
143                                  (e) == EL_EDELSTEIN_LILA ? EL_DIAMANT :    \
144                                  EL_FELSBROCKEN)
145 #define EL_CHANGED2(e)          ((e) == EL_FELSBROCKEN ? EL_EDELSTEIN_BD :  \
146                                  (e) == EL_BD_ROCK     ? EL_EDELSTEIN_BD : \
147                                  EL_BD_ROCK)
148 #define IS_DRAWABLE(e)          ((e) < EL_BLOCKED)
149 #define IS_NOT_DRAWABLE(e)      ((e) >= EL_BLOCKED)
150 #define TAPE_IS_EMPTY(x)        ((x).length == 0)
151 #define TAPE_IS_STOPPED(x)      (!(x).recording && !(x).playing)
152
153 #define PLAYERINFO(x,y)         (&stored_player[StorePlayer[x][y]-EL_SPIELER1])
154 #define SHIELD_ON(p)            ((p)->shield_passive_time_left > 0)
155 #define PROTECTED_FIELD(x,y)    (IS_TUBE(Feld[x][y]))
156 #define PLAYER_PROTECTED(x,y)   (SHIELD_ON(PLAYERINFO(x, y)) ||         \
157                                  PROTECTED_FIELD(x, y))
158
159 /* Bitmaps with graphic file */
160 #define PIX_BACK                0
161 #define PIX_ELEMENTS            1
162 #define PIX_DOOR                2
163 #define PIX_HEROES              3
164 #define PIX_TOONS               4
165 #define PIX_SP                  5
166 #define PIX_DC                  6
167 #define PIX_MORE                7
168 #define PIX_FONT_BIG            8
169 #define PIX_FONT_SMALL          9
170 #define PIX_FONT_MEDIUM         10
171 #define PIX_FONT_EM             11
172 /* Bitmaps without graphic file */
173 #define PIX_DB_DOOR             12
174 #define PIX_DB_FIELD            13
175
176 #define NUM_PICTURES            12
177 #define NUM_BITMAPS             14
178
179 /* boundaries of arrays etc. */
180 #define MAX_LEVEL_NAME_LEN      32
181 #define MAX_LEVEL_AUTHOR_LEN    32
182 #define MAX_TAPELEN             (1000 * 50)     /* max. time * framerate */
183 #define MAX_SCORE_ENTRIES       100
184 #define MAX_ELEMENTS            700             /* 500 static + 200 runtime */
185 #define MAX_GRAPHICS            1536            /* see below: NUM_TILES */
186 #define MAX_NUM_AMOEBA          100
187
188 /* values for elements with content */
189 #define MIN_ELEMENT_CONTENTS    1
190 #define STD_ELEMENT_CONTENTS    4
191 #define MAX_ELEMENT_CONTENTS    8
192
193 #define LEVEL_SCORE_ELEMENTS    16      /* level elements with score */
194
195 /* fundamental game speed values */
196 #define GAME_FRAME_DELAY        20      /* frame delay in milliseconds */
197 #define FFWD_FRAME_DELAY        10      /* 200% speed for fast forward */
198 #define FRAMES_PER_SECOND       (1000 / GAME_FRAME_DELAY)
199 #define MICROLEVEL_SCROLL_DELAY 50      /* delay for scrolling micro level */
200 #define MICROLEVEL_LABEL_DELAY  250     /* delay for micro level label */
201
202 /* often used screen positions */
203 #define SX                      8
204 #define SY                      8
205 #define REAL_SX                 (SX - 2)
206 #define REAL_SY                 (SY - 2)
207 #define DX                      566
208 #define DY                      60
209 #define VX                      DX
210 #define VY                      400
211 #define EX                      DX
212 #define EY                      (VY - 44)
213 #define TILEX                   32
214 #define TILEY                   32
215 #define MINI_TILEX              (TILEX / 2)
216 #define MINI_TILEY              (TILEY / 2)
217 #define MICRO_TILEX             (TILEX / 8)
218 #define MICRO_TILEY             (TILEY / 8)
219 #define MIDPOSX                 (SCR_FIELDX / 2)
220 #define MIDPOSY                 (SCR_FIELDY / 2)
221 #define SXSIZE                  (SCR_FIELDX * TILEX)
222 #define SYSIZE                  (SCR_FIELDY * TILEY)
223 #define FXSIZE                  ((SCR_FIELDX + 2) * TILEX)
224 #define FYSIZE                  ((SCR_FIELDY + 2) * TILEY)
225 #define DXSIZE                  100
226 #define DYSIZE                  280
227 #define VXSIZE                  DXSIZE
228 #define VYSIZE                  100
229 #define EXSIZE                  DXSIZE
230 #define EYSIZE                  (VXSIZE + 44)
231 #define FULL_SXSIZE             (2 + SXSIZE + 2)
232 #define FULL_SYSIZE             (2 + SYSIZE + 2)
233 #define MICROLEV_XSIZE          ((STD_LEV_FIELDX + 2) * MICRO_TILEX)
234 #define MICROLEV_YSIZE          ((STD_LEV_FIELDY + 2) * MICRO_TILEY)
235 #define MICROLEV_XPOS           (SX + (SXSIZE - MICROLEV_XSIZE) / 2)
236 #define MICROLEV_YPOS           (SX + 12 * TILEY - MICRO_TILEY)
237 #define MICROLABEL_YPOS         (MICROLEV_YPOS + MICROLEV_YSIZE + 7)
238
239 #define MINI_GFX_STARTX         0
240 #define MINI_GFX_STARTY         448
241 #define MICRO_GFX_STARTX        384
242 #define MICRO_GFX_STARTY        448
243 #define GFX_PER_LINE            16
244 #define MINI_GFX_PER_LINE       16
245 #define MICRO_GFX_PER_LINE      16
246
247 #define MINI_FONT_STARTX        0
248 #define MINI_FONT_STARTY        128
249 #define MICRO_FONT_STARTX       408
250 #define MICRO_FONT_STARTY       128
251
252 #define HEROES_PER_LINE         16
253
254 #define MINI_SP_STARTX          0
255 #define MINI_SP_STARTY          512
256 #define MICRO_SP_STARTX         384
257 #define MICRO_SP_STARTY         512
258 #define SP_PER_LINE             16
259 #define MINI_SP_PER_LINE        16
260 #define MICRO_SP_PER_LINE       16
261
262 #define MINI_DC_STARTX          0
263 #define MINI_DC_STARTY          512
264 #define MICRO_DC_STARTX         384
265 #define MICRO_DC_STARTY         512
266 #define DC_PER_LINE             16
267 #define MINI_DC_PER_LINE        16
268 #define MICRO_DC_PER_LINE       16
269
270 #define MINI_MORE_STARTX        0
271 #define MINI_MORE_STARTY        256
272 #define MICRO_MORE_STARTX       384
273 #define MICRO_MORE_STARTY       256
274 #define MORE_PER_LINE           16
275 #define MINI_MORE_PER_LINE      16
276 #define MICRO_MORE_PER_LINE     16
277
278 /* game elements:
279 **        0 - 499: real elements, stored in level file
280 **      500 - 699: flag elements, only used at runtime
281 */
282 /* "real" level elements */
283 #define EL_LEERRAUM             0
284 #define EL_ERDREICH             1
285 #define EL_MAUERWERK            2
286 #define EL_FELSBODEN            3
287 #define EL_FELSBROCKEN          4
288 #define EL_SCHLUESSEL           5
289 #define EL_EDELSTEIN            6
290 #define EL_AUSGANG_ZU           7
291 #define EL_SPIELFIGUR           8
292 #define EL_KAEFER               9
293 #define EL_FLIEGER              10
294 #define EL_MAMPFER              11
295 #define EL_ROBOT                12
296 #define EL_BETON                13
297 #define EL_DIAMANT              14
298 #define EL_AMOEBE_TOT           15
299 #define EL_MORAST_LEER          16
300 #define EL_MORAST_VOLL          17
301 #define EL_TROPFEN              18
302 #define EL_BOMBE                19
303 #define EL_MAGIC_WALL_OFF       20
304 #define EL_SPEED_PILL           21
305 #define EL_SALZSAEURE           22
306 #define EL_AMOEBE_NASS          23
307 #define EL_AMOEBE_NORM          24
308 #define EL_KOKOSNUSS            25
309 #define EL_LIFE                 26
310 #define EL_LIFE_ASYNC           27
311 #define EL_DYNAMITE_ACTIVE      28
312 #define EL_BADEWANNE            29
313 #define EL_ABLENK_AUS           30
314 #define EL_ABLENK_EIN           31
315 #define EL_SCHLUESSEL1          32
316 #define EL_SCHLUESSEL2          33
317 #define EL_SCHLUESSEL3          34
318 #define EL_SCHLUESSEL4          35
319 #define EL_PFORTE1              36
320 #define EL_PFORTE2              37
321 #define EL_PFORTE3              38
322 #define EL_PFORTE4              39
323 #define EL_PFORTE1X             40
324 #define EL_PFORTE2X             41
325 #define EL_PFORTE3X             42
326 #define EL_PFORTE4X             43
327 #define EL_DYNAMITE_INACTIVE    44
328 #define EL_PACMAN               45
329 #define EL_UNSICHTBAR           46
330 #define EL_BIRNE_AUS            47
331 #define EL_BIRNE_EIN            48
332 #define EL_ERZ_EDEL             49
333 #define EL_ERZ_DIAM             50
334 #define EL_AMOEBE_VOLL          51
335 #define EL_AMOEBE_BD            52
336 #define EL_ZEIT_VOLL            53
337 #define EL_ZEIT_LEER            54
338 #define EL_MAUER_LEBT           55
339 #define EL_EDELSTEIN_BD         56
340 #define EL_EDELSTEIN_GELB       57
341 #define EL_ERZ_EDEL_BD          58
342 #define EL_ERZ_EDEL_GELB        59
343 #define EL_MAMPFER2             60
344 #define EL_MAGIC_WALL_BD_OFF    61
345 #define EL_INVISIBLE_STEEL      62
346
347 #define EL_UNUSED_63            63
348
349 #define EL_DYNABOMB_NR          64
350 #define EL_DYNABOMB_SZ          65
351 #define EL_DYNABOMB_XL          66
352 #define EL_SOKOBAN_OBJEKT       67
353 #define EL_SOKOBAN_FELD_LEER    68
354 #define EL_SOKOBAN_FELD_VOLL    69
355 #define EL_BUTTERFLY_RIGHT      70
356 #define EL_BUTTERFLY_UP         71
357 #define EL_BUTTERFLY_LEFT       72
358 #define EL_BUTTERFLY_DOWN       73
359 #define EL_FIREFLY_RIGHT        74
360 #define EL_FIREFLY_UP           75
361 #define EL_FIREFLY_LEFT         76
362 #define EL_FIREFLY_DOWN         77
363 #define EL_BUTTERFLY_1          EL_BUTTERFLY_DOWN
364 #define EL_BUTTERFLY_2          EL_BUTTERFLY_LEFT
365 #define EL_BUTTERFLY_3          EL_BUTTERFLY_UP
366 #define EL_BUTTERFLY_4          EL_BUTTERFLY_RIGHT
367 #define EL_FIREFLY_1            EL_FIREFLY_LEFT
368 #define EL_FIREFLY_2            EL_FIREFLY_DOWN
369 #define EL_FIREFLY_3            EL_FIREFLY_RIGHT
370 #define EL_FIREFLY_4            EL_FIREFLY_UP
371 #define EL_BUTTERFLY            78
372 #define EL_FIREFLY              79
373 #define EL_SPIELER1             80
374 #define EL_SPIELER2             81
375 #define EL_SPIELER3             82
376 #define EL_SPIELER4             83
377 #define EL_KAEFER_RIGHT         84
378 #define EL_KAEFER_UP            85
379 #define EL_KAEFER_LEFT          86
380 #define EL_KAEFER_DOWN          87
381 #define EL_FLIEGER_RIGHT        88
382 #define EL_FLIEGER_UP           89
383 #define EL_FLIEGER_LEFT         90
384 #define EL_FLIEGER_DOWN         91
385 #define EL_PACMAN_RIGHT         92
386 #define EL_PACMAN_UP            93
387 #define EL_PACMAN_LEFT          94
388 #define EL_PACMAN_DOWN          95
389 #define EL_EDELSTEIN_ROT        96
390 #define EL_EDELSTEIN_LILA       97
391 #define EL_ERZ_EDEL_ROT         98
392 #define EL_ERZ_EDEL_LILA        99
393 #define EL_BADEWANNE1           100
394 #define EL_BADEWANNE2           101
395 #define EL_BADEWANNE3           102
396 #define EL_BADEWANNE4           103
397 #define EL_BADEWANNE5           104
398 #define EL_BD_WALL              105
399 #define EL_BD_ROCK              106
400 #define EL_AUSGANG_AUF          107
401 #define EL_BLACK_ORB            108
402 #define EL_AMOEBA2DIAM          109
403 #define EL_MOLE                 110
404 #define EL_PINGUIN              111
405 #define EL_SONDE                112
406 #define EL_PFEIL_LEFT           113
407 #define EL_PFEIL_RIGHT          114
408 #define EL_PFEIL_UP             115
409 #define EL_PFEIL_DOWN           116
410 #define EL_SCHWEIN              117
411 #define EL_DRACHE               118
412
413 #define EL_EM_KEY_1_FILE        119
414
415 #define EL_CHAR_START           120
416 #define EL_CHAR_ASCII0          (EL_CHAR_START-32)
417 #define EL_CHAR_AUSRUF          (EL_CHAR_ASCII0+33)
418 #define EL_CHAR_ZOLL            (EL_CHAR_ASCII0+34)
419 #define EL_CHAR_RAUTE           (EL_CHAR_ASCII0+35)
420 #define EL_CHAR_DOLLAR          (EL_CHAR_ASCII0+36)
421 #define EL_CHAR_PROZ            (EL_CHAR_ASCII0+37)
422 #define EL_CHAR_AMPERSAND       (EL_CHAR_ASCII0+38)
423 #define EL_CHAR_APOSTR          (EL_CHAR_ASCII0+39)
424 #define EL_CHAR_KLAMM1          (EL_CHAR_ASCII0+40)
425 #define EL_CHAR_KLAMM2          (EL_CHAR_ASCII0+41)
426 #define EL_CHAR_MULT            (EL_CHAR_ASCII0+42)
427 #define EL_CHAR_PLUS            (EL_CHAR_ASCII0+43)
428 #define EL_CHAR_KOMMA           (EL_CHAR_ASCII0+44)
429 #define EL_CHAR_MINUS           (EL_CHAR_ASCII0+45)
430 #define EL_CHAR_PUNKT           (EL_CHAR_ASCII0+46)
431 #define EL_CHAR_SLASH           (EL_CHAR_ASCII0+47)
432 #define EL_CHAR_0               (EL_CHAR_ASCII0+48)
433 #define EL_CHAR_9               (EL_CHAR_ASCII0+57)
434 #define EL_CHAR_DOPPEL          (EL_CHAR_ASCII0+58)
435 #define EL_CHAR_SEMIKL          (EL_CHAR_ASCII0+59)
436 #define EL_CHAR_LT              (EL_CHAR_ASCII0+60)
437 #define EL_CHAR_GLEICH          (EL_CHAR_ASCII0+61)
438 #define EL_CHAR_GT              (EL_CHAR_ASCII0+62)
439 #define EL_CHAR_FRAGE           (EL_CHAR_ASCII0+63)
440 #define EL_CHAR_AT              (EL_CHAR_ASCII0+64)
441 #define EL_CHAR_A               (EL_CHAR_ASCII0+65)
442 #define EL_CHAR_Z               (EL_CHAR_ASCII0+90)
443 #define EL_CHAR_AE              (EL_CHAR_ASCII0+91)
444 #define EL_CHAR_OE              (EL_CHAR_ASCII0+92)
445 #define EL_CHAR_UE              (EL_CHAR_ASCII0+93)
446 #define EL_CHAR_COPY            (EL_CHAR_ASCII0+94)
447 #define EL_CHAR_END             (EL_CHAR_START+79)
448
449 #define EL_CHAR(x)              ((x) == 'Ä' ? EL_CHAR_AE : \
450                                  (x) == 'Ö' ? EL_CHAR_OE : \
451                                  (x) == 'Ãœ' ? EL_CHAR_UE : \
452                                  EL_CHAR_A + (x) - 'A')
453
454 #define EL_MAUER_X              200
455 #define EL_MAUER_Y              201
456 #define EL_MAUER_XY             202
457
458 #define EL_EM_GATE_1            203
459 #define EL_EM_GATE_2            204
460 #define EL_EM_GATE_3            205
461 #define EL_EM_GATE_4            206
462
463 #define EL_EM_KEY_2_FILE        207
464 #define EL_EM_KEY_3_FILE        208
465 #define EL_EM_KEY_4_FILE        209
466
467 #define EL_SP_START             210
468 #define EL_SP_EMPTY             (EL_SP_START + 0)
469 #define EL_SP_ZONK              (EL_SP_START + 1)
470 #define EL_SP_BASE              (EL_SP_START + 2)
471 #define EL_SP_MURPHY            (EL_SP_START + 3)
472 #define EL_SP_INFOTRON          (EL_SP_START + 4)
473 #define EL_SP_CHIP_SINGLE       (EL_SP_START + 5)
474 #define EL_SP_HARD_GRAY         (EL_SP_START + 6)
475 #define EL_SP_EXIT              (EL_SP_START + 7)
476 #define EL_SP_DISK_ORANGE       (EL_SP_START + 8)
477 #define EL_SP_PORT1_RIGHT       (EL_SP_START + 9)
478 #define EL_SP_PORT1_DOWN        (EL_SP_START + 10)
479 #define EL_SP_PORT1_LEFT        (EL_SP_START + 11)
480 #define EL_SP_PORT1_UP          (EL_SP_START + 12)
481 #define EL_SP_PORT2_RIGHT       (EL_SP_START + 13)
482 #define EL_SP_PORT2_DOWN        (EL_SP_START + 14)
483 #define EL_SP_PORT2_LEFT        (EL_SP_START + 15)
484 #define EL_SP_PORT2_UP          (EL_SP_START + 16)
485 #define EL_SP_SNIKSNAK          (EL_SP_START + 17)
486 #define EL_SP_DISK_YELLOW       (EL_SP_START + 18)
487 #define EL_SP_TERMINAL          (EL_SP_START + 19)
488 #define EL_SP_DISK_RED          (EL_SP_START + 20)
489 #define EL_SP_PORT_Y            (EL_SP_START + 21)
490 #define EL_SP_PORT_X            (EL_SP_START + 22)
491 #define EL_SP_PORT_XY           (EL_SP_START + 23)
492 #define EL_SP_ELECTRON          (EL_SP_START + 24)
493 #define EL_SP_BUG               (EL_SP_START + 25)
494 #define EL_SP_CHIP_LEFT         (EL_SP_START + 26)
495 #define EL_SP_CHIP_RIGHT        (EL_SP_START + 27)
496 #define EL_SP_HARD_BASE1        (EL_SP_START + 28)
497 #define EL_SP_HARD_GREEN        (EL_SP_START + 29)
498 #define EL_SP_HARD_BLUE         (EL_SP_START + 30)
499 #define EL_SP_HARD_RED          (EL_SP_START + 31)
500 #define EL_SP_HARD_YELLOW       (EL_SP_START + 32)
501 #define EL_SP_HARD_BASE2        (EL_SP_START + 33)
502 #define EL_SP_HARD_BASE3        (EL_SP_START + 34)
503 #define EL_SP_HARD_BASE4        (EL_SP_START + 35)
504 #define EL_SP_HARD_BASE5        (EL_SP_START + 36)
505 #define EL_SP_HARD_BASE6        (EL_SP_START + 37)
506 #define EL_SP_CHIP_UPPER        (EL_SP_START + 38)
507 #define EL_SP_CHIP_LOWER        (EL_SP_START + 39)
508 #define EL_SP_END               (EL_SP_START + 39)
509
510 #define EL_EM_GATE_1X           250
511 #define EL_EM_GATE_2X           251
512 #define EL_EM_GATE_3X           252
513 #define EL_EM_GATE_4X           253
514
515 #define EL_UNUSED_254           254
516 #define EL_UNUSED_255           255
517
518 #define EL_PEARL                256
519 #define EL_CRYSTAL              257
520 #define EL_WALL_PEARL           258
521 #define EL_WALL_CRYSTAL         259
522 #define EL_DOOR_WHITE           260
523 #define EL_DOOR_WHITE_GRAY      261
524 #define EL_KEY_WHITE            262
525 #define EL_SHIELD_PASSIVE       263
526 #define EL_EXTRA_TIME           264
527 #define EL_SWITCHGATE_OPEN      265
528 #define EL_SWITCHGATE_CLOSED    266
529 #define EL_SWITCHGATE_SWITCH_1  267
530 #define EL_SWITCHGATE_SWITCH_2  268
531
532 #define EL_UNUSED_269           269
533 #define EL_UNUSED_270           270
534
535 #define EL_BELT1_LEFT           271
536 #define EL_BELT1_MIDDLE         272
537 #define EL_BELT1_RIGHT          273
538 #define EL_BELT1_SWITCH_LEFT    274
539 #define EL_BELT1_SWITCH_MIDDLE  275
540 #define EL_BELT1_SWITCH_RIGHT   276
541 #define EL_BELT2_LEFT           277
542 #define EL_BELT2_MIDDLE         278
543 #define EL_BELT2_RIGHT          279
544 #define EL_BELT2_SWITCH_LEFT    280
545 #define EL_BELT2_SWITCH_MIDDLE  281
546 #define EL_BELT2_SWITCH_RIGHT   282
547 #define EL_BELT3_LEFT           283
548 #define EL_BELT3_MIDDLE         284
549 #define EL_BELT3_RIGHT          285
550 #define EL_BELT3_SWITCH_LEFT    286
551 #define EL_BELT3_SWITCH_MIDDLE  287
552 #define EL_BELT3_SWITCH_RIGHT   288
553 #define EL_BELT4_LEFT           289
554 #define EL_BELT4_MIDDLE         290
555 #define EL_BELT4_RIGHT          291
556 #define EL_BELT4_SWITCH_LEFT    292
557 #define EL_BELT4_SWITCH_MIDDLE  293
558 #define EL_BELT4_SWITCH_RIGHT   294
559 #define EL_LANDMINE             295
560 #define EL_ENVELOPE             296
561 #define EL_LIGHT_SWITCH_OFF     297
562 #define EL_LIGHT_SWITCH_ON      298
563 #define EL_SIGN_EXCLAMATION     299
564 #define EL_SIGN_RADIOACTIVITY   300
565 #define EL_SIGN_STOP            301
566 #define EL_SIGN_WHEELCHAIR      302
567 #define EL_SIGN_PARKING         303
568 #define EL_SIGN_ONEWAY          304
569 #define EL_SIGN_HEART           305
570 #define EL_SIGN_TRIANGLE        306
571 #define EL_SIGN_ROUND           307
572 #define EL_SIGN_EXIT            308
573 #define EL_SIGN_YINYANG         309
574 #define EL_SIGN_OTHER           310
575 #define EL_MOLE_LEFT            311
576 #define EL_MOLE_RIGHT           312
577 #define EL_MOLE_UP              313
578 #define EL_MOLE_DOWN            314
579 #define EL_STEEL_SLANTED        315
580 #define EL_SAND_INVISIBLE       316
581 #define EL_DX_UNKNOWN_15        317
582 #define EL_DX_UNKNOWN_42        318
583
584 #define EL_UNUSED_319           319
585 #define EL_UNUSED_320           320
586
587 #define EL_SHIELD_ACTIVE        321
588 #define EL_TIMEGATE_OPEN        322
589 #define EL_TIMEGATE_CLOSED      323
590 #define EL_TIMEGATE_SWITCH_ON   324
591 #define EL_TIMEGATE_SWITCH_OFF  325
592
593 #define EL_BALLOON              326
594 #define EL_BALLOON_SEND_LEFT    327
595 #define EL_BALLOON_SEND_RIGHT   328
596 #define EL_BALLOON_SEND_UP      329
597 #define EL_BALLOON_SEND_DOWN    330
598 #define EL_BALLOON_SEND_ANY     331
599
600 #define EL_EMC_STEEL_WALL_1     332
601 #define EL_EMC_STEEL_WALL_2     333
602 #define EL_EMC_STEEL_WALL_3     334
603 #define EL_EMC_STEEL_WALL_4     335
604 #define EL_EMC_WALL_1           336
605 #define EL_EMC_WALL_2           337
606 #define EL_EMC_WALL_3           338
607 #define EL_EMC_WALL_4           339
608 #define EL_EMC_WALL_5           340
609 #define EL_EMC_WALL_6           341
610 #define EL_EMC_WALL_7           342
611 #define EL_EMC_WALL_8           343
612
613 #define EL_TUBE_CROSS           344
614 #define EL_TUBE_VERTICAL        345
615 #define EL_TUBE_HORIZONTAL      346
616 #define EL_TUBE_VERT_LEFT       347
617 #define EL_TUBE_VERT_RIGHT      348
618 #define EL_TUBE_HORIZ_UP        349
619 #define EL_TUBE_HORIZ_DOWN      350
620 #define EL_TUBE_LEFT_UP         351
621 #define EL_TUBE_LEFT_DOWN       352
622 #define EL_TUBE_RIGHT_UP        353
623 #define EL_TUBE_RIGHT_DOWN      354
624 #define EL_SPRING               355
625 #define EL_TRAP_INACTIVE        356
626 #define EL_DX_SUPABOMB          357
627
628 #define NUM_FILE_ELEMENTS       358
629
630
631 /* "real" (and therefore drawable) runtime elements */
632 #define EL_FIRST_RUNTIME                NUM_FILE_ELEMENTS
633
634 #define EL_MAGIC_WALL_EMPTY             (EL_FIRST_RUNTIME + 0)
635 #define EL_MAGIC_WALL_BD_EMPTY          (EL_FIRST_RUNTIME + 1)
636 #define EL_MAGIC_WALL_FULL              (EL_FIRST_RUNTIME + 2)
637 #define EL_MAGIC_WALL_BD_FULL           (EL_FIRST_RUNTIME + 3)
638 #define EL_MAGIC_WALL_DEAD              (EL_FIRST_RUNTIME + 4)
639 #define EL_MAGIC_WALL_BD_DEAD           (EL_FIRST_RUNTIME + 5)
640 #define EL_AUSGANG_ACT                  (EL_FIRST_RUNTIME + 6)
641 #define EL_SP_TERMINAL_ACTIVE           (EL_FIRST_RUNTIME + 7)
642 #define EL_SP_BUG_ACTIVE                (EL_FIRST_RUNTIME + 8)
643 #define EL_EM_KEY_1                     (EL_FIRST_RUNTIME + 9)
644 #define EL_EM_KEY_2                     (EL_FIRST_RUNTIME + 10)
645 #define EL_EM_KEY_3                     (EL_FIRST_RUNTIME + 11)
646 #define EL_EM_KEY_4                     (EL_FIRST_RUNTIME + 12)
647 #define EL_DYNABOMB_ACTIVE_1            (EL_FIRST_RUNTIME + 13)
648 #define EL_DYNABOMB_ACTIVE_2            (EL_FIRST_RUNTIME + 14)
649 #define EL_DYNABOMB_ACTIVE_3            (EL_FIRST_RUNTIME + 15)
650 #define EL_DYNABOMB_ACTIVE_4            (EL_FIRST_RUNTIME + 16)
651 #define EL_SWITCHGATE_OPENING           (EL_FIRST_RUNTIME + 17)
652 #define EL_SWITCHGATE_CLOSING           (EL_FIRST_RUNTIME + 18)
653 #define EL_TIMEGATE_OPENING             (EL_FIRST_RUNTIME + 19)
654 #define EL_TIMEGATE_CLOSING             (EL_FIRST_RUNTIME + 20)
655 #define EL_PEARL_BREAKING               (EL_FIRST_RUNTIME + 21)
656 #define EL_TRAP_ACTIVE                  (EL_FIRST_RUNTIME + 22)
657 #define EL_SPRING_MOVING                (EL_FIRST_RUNTIME + 23)
658 #define EL_SP_MURPHY_CLONE              (EL_FIRST_RUNTIME + 24)
659 #define EL_QUICKSAND_EMPTYING           (EL_FIRST_RUNTIME + 25)
660 #define EL_MAGIC_WALL_EMPTYING          (EL_FIRST_RUNTIME + 26)
661 #define EL_MAGIC_WALL_BD_EMPTYING       (EL_FIRST_RUNTIME + 27)
662 #define EL_AMOEBA_DRIPPING              (EL_FIRST_RUNTIME + 28)
663
664 #define NUM_RUNTIME_ELEMENTS            (EL_FIRST_RUNTIME + 29)
665
666 /* "unreal" (and therefore not drawable) runtime elements */
667 #define EL_FIRST_RUNTIME_UNREAL         NUM_RUNTIME_ELEMENTS
668
669 #define EL_BLOCKED                      (EL_FIRST_RUNTIME_UNREAL + 0)
670 #define EL_EXPLODING                    (EL_FIRST_RUNTIME_UNREAL + 1)
671 #define EL_CRACKINGNUT                  (EL_FIRST_RUNTIME_UNREAL + 2)
672 #define EL_BLURB_LEFT                   (EL_FIRST_RUNTIME_UNREAL + 3)
673 #define EL_BLURB_RIGHT                  (EL_FIRST_RUNTIME_UNREAL + 4)
674 #define EL_AMOEBING                     (EL_FIRST_RUNTIME_UNREAL + 5)
675 #define EL_DEAMOEBING                   (EL_FIRST_RUNTIME_UNREAL + 6)
676 #define EL_MAUERND                      (EL_FIRST_RUNTIME_UNREAL + 7)
677 #define EL_BURNING                      (EL_FIRST_RUNTIME_UNREAL + 8)
678 #define EL_PLAYER_IS_LEAVING            (EL_FIRST_RUNTIME_UNREAL + 9)
679 #define EL_QUICKSAND_FILLING            (EL_FIRST_RUNTIME_UNREAL + 10)
680 #define EL_MAGIC_WALL_FILLING           (EL_FIRST_RUNTIME_UNREAL + 11)
681 #define EL_MAGIC_WALL_BD_FILLING        (EL_FIRST_RUNTIME_UNREAL + 12)
682
683 #define MAX_NUM_ELEMENTS                (EL_FIRST_RUNTIME_UNREAL + 13)
684
685
686 /* game graphics:
687 **        0 -  255: graphics from "RocksElements"
688 **      256 -  511: graphics from "RocksFont"
689 **      512 -  767: graphics from "RocksHeroes"
690 **      768 - 1023: graphics from "RocksSP"
691 **     1024 - 1279: graphics from "RocksDC"
692 **     1280 - 1535: graphics from "RocksMore"
693 */
694
695 #define GFX_START_ROCKSELEMENTS 0
696 #define GFX_END_ROCKSELEMENTS   255
697 #define GFX_START_ROCKSFONT     256
698 #define GFX_END_ROCKSFONT       511
699 #define GFX_START_ROCKSHEROES   512
700 #define GFX_END_ROCKSHEROES     767
701 #define GFX_START_ROCKSSP       768
702 #define GFX_END_ROCKSSP         1023
703 #define GFX_START_ROCKSDC       1024
704 #define GFX_END_ROCKSDC         1279
705 #define GFX_START_ROCKSMORE     1280
706 #define GFX_END_ROCKSMORE       1535
707
708 #define NUM_TILES               1536            /* see above: MAX_GRAPHICS */
709
710 /* graphics from "RocksScreen" */
711 /* Zeile 0 (0) */
712 #define GFX_LEERRAUM            (-1)
713 #define GFX_ERDREICH            0
714 #define GFX_ERDENRAND           1
715 #define GFX_MORAST_LEER         2
716 #define GFX_MORAST_VOLL         3
717 #define GFX_BETON               4
718 #define GFX_MAUERWERK           5
719 #define GFX_FELSBODEN           6
720 #define GFX_EDELSTEIN           8
721 #define GFX_DIAMANT             10
722 #define GFX_FELSBROCKEN         12
723 /* Zeile 1 (16) */
724 #define GFX_BADEWANNE1          16
725 #define GFX_SALZSAEURE          17
726 #define GFX_BADEWANNE2          18
727
728 /*
729 #define GFX_UNSICHTBAR          19
730 */
731
732 #define GFX_SCHLUESSEL1         20
733 #define GFX_SCHLUESSEL2         21
734 #define GFX_SCHLUESSEL3         22
735 #define GFX_SCHLUESSEL4         23
736 #define GFX_LIFE                24
737 #define GFX_LIFE_ASYNC          25
738 #define GFX_BADEWANNE           26
739 #define GFX_BOMBE               27
740 #define GFX_KOKOSNUSS           28
741 #define GFX_CRACKINGNUT         29
742 /* Zeile 2 (32) */
743 #define GFX_BADEWANNE3          32
744 #define GFX_BADEWANNE4          33
745 #define GFX_BADEWANNE5          34
746 #define GFX_SMILEY              35
747 #define GFX_PFORTE1             36
748 #define GFX_PFORTE2             37
749 #define GFX_PFORTE3             38
750 #define GFX_PFORTE4             39
751 #define GFX_PFORTE1X            40
752 #define GFX_PFORTE2X            41
753 #define GFX_PFORTE3X            42
754 #define GFX_PFORTE4X            43
755 /* Zeile 3 (48) */
756 #define GFX_DYNAMIT_AUS         48
757 #define GFX_DYNAMIT             49
758 #define GFX_FLIEGER             56
759 #define GFX_FLIEGER_RIGHT       56
760 #define GFX_FLIEGER_UP          58
761 #define GFX_FLIEGER_LEFT        60
762 #define GFX_FLIEGER_DOWN        62
763 /* Zeile 4 (64) */
764 #define GFX_EXPLOSION           64
765 #define GFX_KAEFER              72
766 #define GFX_KAEFER_RIGHT        72
767 #define GFX_KAEFER_UP           74
768 #define GFX_KAEFER_LEFT         76
769 #define GFX_KAEFER_DOWN         78
770 /* Zeile 5 (80) */
771 #define GFX_MAMPFER             80
772 #define GFX_ROBOT               84
773 #define GFX_PACMAN              88
774 #define GFX_PACMAN_RIGHT        88
775 #define GFX_PACMAN_UP           90
776 #define GFX_PACMAN_LEFT         92
777 #define GFX_PACMAN_DOWN         94
778 /* Zeile 6 (96) */
779 #define GFX_ABLENK              96
780 #define GFX_ABLENK_EIN          GFX_ABLENK
781 #define GFX_ABLENK_AUS          GFX_ABLENK
782 #define GFX_AMOEBE_NASS         100
783 #define GFX_TROPFEN             101
784 #define GFX_AMOEBING            GFX_TROPFEN
785 #define GFX_AMOEBE_LEBT         104
786 #define GFX_AMOEBE_NORM         GFX_AMOEBE_LEBT
787 #define GFX_AMOEBE_TOT          108
788 #define GFX_AMOEBA2DIAM         GFX_AMOEBE_TOT
789 /* Zeile 7 (112) */
790 #define GFX_BIRNE_AUS           112
791 #define GFX_BIRNE_EIN           113
792 #define GFX_ZEIT_VOLL           114
793 #define GFX_ZEIT_LEER           115
794 #define GFX_SPIELER1            116
795 #define GFX_SPIELER2            117
796 #define GFX_SPIELER3            118
797 #define GFX_SPIELER4            119
798 #define GFX_AMOEBE_VOLL         120
799 #define GFX_AMOEBE_BD           GFX_AMOEBE_VOLL
800 #define GFX_SOKOBAN_OBJEKT      121
801 #define GFX_SOKOBAN_FELD_LEER   122
802 #define GFX_SOKOBAN_FELD_VOLL   123
803 #define GFX_GEBLUBBER           124
804 /* Zeile 8 (128) */
805 #define GFX_MAGIC_WALL_OFF      128
806 #define GFX_MAGIC_WALL_EMPTY    GFX_MAGIC_WALL_OFF
807 #define GFX_MAGIC_WALL_FULL     GFX_MAGIC_WALL_OFF
808 #define GFX_MAGIC_WALL_DEAD     GFX_MAGIC_WALL_OFF
809 #define GFX_ERZ_EDEL            132
810 #define GFX_ERZ_DIAM            133
811 #define GFX_ERZ_EDEL_ROT        134
812 #define GFX_ERZ_EDEL_LILA       135
813 #define GFX_ERZ_EDEL_GELB       136
814 #define GFX_ERZ_EDEL_BD         137
815 #define GFX_EDELSTEIN_GELB      138
816 #define GFX_KUGEL_ROT           140
817 #define GFX_KUGEL_BLAU          141
818 #define GFX_KUGEL_GELB          142
819 #define GFX_KUGEL_GRAU          143
820 /* Zeile 9 (144) */
821 #define GFX_PINGUIN             144
822 #define GFX_MOLE                145
823 #define GFX_SCHWEIN             146
824 #define GFX_DRACHE              147
825 #define GFX_MAUER_XY            148
826 #define GFX_MAUER_X             149
827 #define GFX_MAUER_Y             150
828 #define GFX_EDELSTEIN_ROT       152
829 #define GFX_EDELSTEIN_LILA      154
830 #define GFX_DYNABOMB_XL         156
831 #define GFX_BLACK_ORB           157
832 #define GFX_SPEED_PILL          158
833 #define GFX_SONDE               159
834 /* Zeile 10 (160) */
835 #define GFX_EDELSTEIN_BD        163
836 #define GFX_MAUER_RIGHT         165
837 #define GFX_MAUER_R1            GFX_MAUER_RIGHT
838 #define GFX_MAUER_R             167
839 #define GFX_MAUER_LEFT          168
840 #define GFX_MAUER_L1            GFX_MAUER_LEFT
841 #define GFX_MAUER_L             170
842 #define GFX_MAUER_LEBT          171
843 #define GFX_MAGIC_WALL_BD_OFF   172
844 #define GFX_MAGIC_WALL_BD_EMPTY GFX_MAGIC_WALL_BD_OFF
845 #define GFX_MAGIC_WALL_BD_FULL  GFX_MAGIC_WALL_BD_OFF
846 #define GFX_MAGIC_WALL_BD_DEAD  GFX_MAGIC_WALL_BD_OFF
847 /* Zeile 11 (176) */
848 #define GFX_AUSGANG_ZU          176
849 #define GFX_AUSGANG_ACT         177
850 #define GFX_AUSGANG_AUF         180
851 #define GFX_MAMPFER2            184
852 #define GFX_DYNABOMB            188
853 #define GFX_DYNABOMB_NR         188
854 #define GFX_DYNABOMB_SZ         191
855 /* Zeile 12 (192) */
856 #define GFX_PFEIL_LEFT          192
857 #define GFX_PFEIL_RIGHT         193
858 #define GFX_PFEIL_UP            194
859 #define GFX_PFEIL_DOWN          195
860 #define GFX_BUTTERFLY           196
861 #define GFX_FIREFLY             198
862 #define GFX_BUTTERFLY_RIGHT     200
863 #define GFX_BUTTERFLY_UP        201
864 #define GFX_BUTTERFLY_LEFT      202
865 #define GFX_BUTTERFLY_DOWN      203
866 #define GFX_FIREFLY_RIGHT       204
867 #define GFX_FIREFLY_UP          205
868 #define GFX_FIREFLY_LEFT        206
869 #define GFX_FIREFLY_DOWN        207
870
871 /* only available as size MINI_TILE */
872 #define GFX_VSTEEL_UPPER_LEFT   208
873 #define GFX_VSTEEL_UPPER_RIGHT  209
874 #define GFX_VSTEEL_LOWER_LEFT   210
875 #define GFX_VSTEEL_LOWER_RIGHT  211
876 #define GFX_VSTEEL_HORIZONTAL   212
877 #define GFX_VSTEEL_VERTICAL     213
878 #define GFX_ISTEEL_UPPER_LEFT   214
879 #define GFX_ISTEEL_UPPER_RIGHT  215
880 #define GFX_ISTEEL_LOWER_LEFT   216
881 #define GFX_ISTEEL_LOWER_RIGHT  217
882 #define GFX_ISTEEL_HORIZONTAL   218
883 #define GFX_ISTEEL_VERTICAL     219
884
885 /* elements with graphics borrowed from other elements */
886 #define GFX_SCHLUESSEL          GFX_SCHLUESSEL1
887 #define GFX_SPIELFIGUR          GFX_SPIELER1
888
889 /* graphics from "RocksHeroes" */
890 #define GFX_SPIELER1_DOWN       (GFX_START_ROCKSHEROES + 0*HEROES_PER_LINE + 0)
891 #define GFX_SPIELER1_UP         (GFX_START_ROCKSHEROES + 0*HEROES_PER_LINE + 4)
892 #define GFX_SPIELER1_LEFT       (GFX_START_ROCKSHEROES + 1*HEROES_PER_LINE + 0)
893 #define GFX_SPIELER1_RIGHT      (GFX_START_ROCKSHEROES + 1*HEROES_PER_LINE + 4)
894 #define GFX_SPIELER1_PUSH_RIGHT (GFX_START_ROCKSHEROES + 2*HEROES_PER_LINE + 0)
895 #define GFX_SPIELER1_PUSH_LEFT  (GFX_START_ROCKSHEROES + 2*HEROES_PER_LINE + 4)
896 #define GFX_SPIELER2_DOWN       (GFX_START_ROCKSHEROES + 3*HEROES_PER_LINE + 0)
897 #define GFX_SPIELER2_UP         (GFX_START_ROCKSHEROES + 3*HEROES_PER_LINE + 4)
898 #define GFX_SPIELER2_LEFT       (GFX_START_ROCKSHEROES + 4*HEROES_PER_LINE + 0)
899 #define GFX_SPIELER2_RIGHT      (GFX_START_ROCKSHEROES + 4*HEROES_PER_LINE + 4)
900 #define GFX_SPIELER2_PUSH_RIGHT (GFX_START_ROCKSHEROES + 5*HEROES_PER_LINE + 0)
901 #define GFX_SPIELER2_PUSH_LEFT  (GFX_START_ROCKSHEROES + 5*HEROES_PER_LINE + 4)
902 #define GFX_SPIELER3_DOWN       (GFX_START_ROCKSHEROES + 6*HEROES_PER_LINE + 0)
903 #define GFX_SPIELER3_UP         (GFX_START_ROCKSHEROES + 6*HEROES_PER_LINE + 4)
904 #define GFX_SPIELER3_LEFT       (GFX_START_ROCKSHEROES + 7*HEROES_PER_LINE + 0)
905 #define GFX_SPIELER3_RIGHT      (GFX_START_ROCKSHEROES + 7*HEROES_PER_LINE + 4)
906 #define GFX_SPIELER3_PUSH_RIGHT (GFX_START_ROCKSHEROES + 8*HEROES_PER_LINE + 0)
907 #define GFX_SPIELER3_PUSH_LEFT  (GFX_START_ROCKSHEROES + 8*HEROES_PER_LINE + 4)
908 #define GFX_SPIELER4_DOWN       (GFX_START_ROCKSHEROES + 9*HEROES_PER_LINE + 0)
909 #define GFX_SPIELER4_UP         (GFX_START_ROCKSHEROES + 9*HEROES_PER_LINE + 4)
910 #define GFX_SPIELER4_LEFT       (GFX_START_ROCKSHEROES +10*HEROES_PER_LINE + 0)
911 #define GFX_SPIELER4_RIGHT      (GFX_START_ROCKSHEROES +10*HEROES_PER_LINE + 4)
912 #define GFX_SPIELER4_PUSH_RIGHT (GFX_START_ROCKSHEROES +11*HEROES_PER_LINE + 0)
913 #define GFX_SPIELER4_PUSH_LEFT  (GFX_START_ROCKSHEROES +11*HEROES_PER_LINE + 4)
914 #define GFX_MAUER_DOWN          (GFX_START_ROCKSHEROES +12*HEROES_PER_LINE + 0)
915 #define GFX_MAUER_UP            (GFX_START_ROCKSHEROES +12*HEROES_PER_LINE + 3)
916 #define GFX2_SHIELD_PASSIVE     (GFX_START_ROCKSHEROES +13*HEROES_PER_LINE + 1)
917 #define GFX2_SHIELD_ACTIVE      (GFX_START_ROCKSHEROES +13*HEROES_PER_LINE + 5)
918
919 #define GFX_SONDE_START         (GFX_START_ROCKSHEROES + 9*HEROES_PER_LINE + 8)
920 #define GFX_SCHWEIN_DOWN        (GFX_START_ROCKSHEROES + 0*HEROES_PER_LINE + 8)
921 #define GFX_SCHWEIN_UP          (GFX_START_ROCKSHEROES + 0*HEROES_PER_LINE +12)
922 #define GFX_SCHWEIN_LEFT        (GFX_START_ROCKSHEROES + 1*HEROES_PER_LINE + 8)
923 #define GFX_SCHWEIN_RIGHT       (GFX_START_ROCKSHEROES + 1*HEROES_PER_LINE +12)
924 #define GFX_DRACHE_DOWN         (GFX_START_ROCKSHEROES + 2*HEROES_PER_LINE + 8)
925 #define GFX_DRACHE_UP           (GFX_START_ROCKSHEROES + 2*HEROES_PER_LINE +12)
926 #define GFX_DRACHE_LEFT         (GFX_START_ROCKSHEROES + 3*HEROES_PER_LINE + 8)
927 #define GFX_DRACHE_RIGHT        (GFX_START_ROCKSHEROES + 3*HEROES_PER_LINE +12)
928 /*
929 #define GFX_MOLE_DOWN           (GFX_START_ROCKSHEROES + 4*HEROES_PER_LINE + 8)
930 #define GFX_MOLE_UP             (GFX_START_ROCKSHEROES + 4*HEROES_PER_LINE +12)
931 #define GFX_MOLE_LEFT           (GFX_START_ROCKSHEROES + 5*HEROES_PER_LINE + 8)
932 #define GFX_MOLE_RIGHT          (GFX_START_ROCKSHEROES + 5*HEROES_PER_LINE +12)
933 */
934 #define GFX_PINGUIN_DOWN        (GFX_START_ROCKSHEROES + 6*HEROES_PER_LINE + 8)
935 #define GFX_PINGUIN_UP          (GFX_START_ROCKSHEROES + 6*HEROES_PER_LINE +12)
936 #define GFX_PINGUIN_LEFT        (GFX_START_ROCKSHEROES + 7*HEROES_PER_LINE + 8)
937 #define GFX_PINGUIN_RIGHT       (GFX_START_ROCKSHEROES + 7*HEROES_PER_LINE +12)
938 #define GFX_BLURB_LEFT          (GFX_START_ROCKSHEROES +10*HEROES_PER_LINE + 8)
939 #define GFX_BLURB_RIGHT         (GFX_START_ROCKSHEROES +10*HEROES_PER_LINE +12)
940 #define GFX_FUNKELN_BLAU        (GFX_START_ROCKSHEROES +11*HEROES_PER_LINE + 9)
941 #define GFX_FUNKELN_WEISS       (GFX_START_ROCKSHEROES +11*HEROES_PER_LINE +13)
942 #define GFX_FLAMMEN_LEFT        (GFX_START_ROCKSHEROES +12*HEROES_PER_LINE + 8)
943 #define GFX_FLAMMEN_RIGHT       (GFX_START_ROCKSHEROES +13*HEROES_PER_LINE + 8)
944 #define GFX_FLAMMEN_UP          (GFX_START_ROCKSHEROES +14*HEROES_PER_LINE + 8)
945 #define GFX_FLAMMEN_DOWN        (GFX_START_ROCKSHEROES +15*HEROES_PER_LINE + 8)
946
947 /* graphics from "RocksSP" */
948 #define GFX_SP_EMPTY            (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  0)
949 /*
950 #define GFX_SP_ZONK             (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  1)
951 */
952 #define GFX_SP_BASE             (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  2)
953 #define GFX_SP_MURPHY           (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  3)
954 #define GFX_SP_INFOTRON         (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  4)
955 #define GFX_SP_CHIP_SINGLE      (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  5)
956 #define GFX_SP_HARD_GRAY        (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  6)
957 #define GFX_SP_EXIT             (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  7)
958 #define GFX_SP_DISK_ORANGE      (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  0)
959 #define GFX_SP_PORT1_RIGHT      (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  1)
960 #define GFX_SP_PORT1_DOWN       (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  2)
961 #define GFX_SP_PORT1_LEFT       (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  3)
962 #define GFX_SP_PORT1_UP         (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  4)
963 #define GFX_SP_PORT2_RIGHT      (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  5)
964 #define GFX_SP_PORT2_DOWN       (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  6)
965 #define GFX_SP_PORT2_LEFT       (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  7)
966 #define GFX_SP_PORT2_UP         (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  0)
967 #define GFX_SP_SNIKSNAK         (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  1)
968 #define GFX_SP_DISK_YELLOW      (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  2)
969 #define GFX_SP_TERMINAL         (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  3)
970 #define GFX_SP_DISK_RED         (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  4)
971 #define GFX_SP_PORT_Y           (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  5)
972 #define GFX_SP_PORT_X           (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  6)
973 #define GFX_SP_PORT_XY          (GFX_START_ROCKSSP +  2 * SP_PER_LINE +  7)
974 #define GFX_SP_ELECTRON         (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  0)
975 #define GFX_SP_BUG              (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  1)
976 #define GFX_SP_CHIP_LEFT        (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  2)
977 #define GFX_SP_CHIP_RIGHT       (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  3)
978 #define GFX_SP_HARD_BASE1       (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  4)
979 #define GFX_SP_HARD_GREEN       (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  5)
980 #define GFX_SP_HARD_BLUE        (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  6)
981 #define GFX_SP_HARD_RED         (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  7)
982 #define GFX_SP_HARD_YELLOW      (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  0)
983 #define GFX_SP_HARD_BASE2       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  1)
984 #define GFX_SP_HARD_BASE3       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  2)
985 #define GFX_SP_HARD_BASE4       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  3)
986 #define GFX_SP_HARD_BASE5       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  4)
987 #define GFX_SP_HARD_BASE6       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  5)
988 #define GFX_SP_CHIP_UPPER       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  6)
989 #define GFX_SP_CHIP_LOWER       (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  7)
990
991 #define GFX_INVISIBLE_STEEL_ON  (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  1)
992 #define GFX_SAND_INVISIBLE_ON   (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  2)
993 #define GFX_INVISIBLE_STEEL     (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  3)
994 #define GFX_UNSICHTBAR_ON       (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  5)
995 #define GFX_SAND_INVISIBLE      (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  6)
996 #define GFX_UNSICHTBAR          (GFX_START_ROCKSSP +  5 * SP_PER_LINE +  7)
997
998 #define GFX_SP_ZONK             (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  0)
999
1000 #define GFX_EM_KEY_1            (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  4)
1001 #define GFX_EM_KEY_2            (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  5)
1002 #define GFX_EM_KEY_3            (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  6)
1003 #define GFX_EM_KEY_4            (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  7)
1004 #define GFX_EM_GATE_1           (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  0)
1005 #define GFX_EM_GATE_2           (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  1)
1006 #define GFX_EM_GATE_3           (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  2)
1007 #define GFX_EM_GATE_4           (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  3)
1008 #define GFX_EM_GATE_1X          (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  4)
1009 #define GFX_EM_GATE_2X          (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  5)
1010 #define GFX_EM_GATE_3X          (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  6)
1011 #define GFX_EM_GATE_4X          (GFX_START_ROCKSSP +  7 * SP_PER_LINE +  7)
1012
1013 #define GFX_MURPHY_GO_LEFT      (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  8)
1014 #define GFX_MURPHY_ANY_LEFT     (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  9)
1015 #define GFX_MURPHY_GO_RIGHT     (GFX_START_ROCKSSP +  0 * SP_PER_LINE + 11)
1016 #define GFX_MURPHY_ANY_RIGHT    (GFX_START_ROCKSSP +  0 * SP_PER_LINE + 12)
1017 #define GFX_MURPHY_SNAP_UP      (GFX_START_ROCKSSP +  0 * SP_PER_LINE + 14)
1018 #define GFX_MURPHY_SNAP_DOWN    (GFX_START_ROCKSSP +  0 * SP_PER_LINE + 15)
1019 #define GFX_MURPHY_SNAP_RIGHT   (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  8)
1020 #define GFX_MURPHY_SNAP_LEFT    (GFX_START_ROCKSSP +  1 * SP_PER_LINE +  9)
1021 #define GFX_MURPHY_PUSH_RIGHT   (GFX_START_ROCKSSP +  1 * SP_PER_LINE + 10)
1022 #define GFX_MURPHY_PUSH_LEFT    (GFX_START_ROCKSSP +  1 * SP_PER_LINE + 11)
1023
1024 #define GFX_SP_BUG_WARNING      (GFX_START_ROCKSSP +  2 * SP_PER_LINE + 15)
1025 #define GFX_SP_EXPLODE_EMPTY    (GFX_START_ROCKSSP +  3 * SP_PER_LINE +  8)
1026 #define GFX_SP_EXPLODE_INFOTRON (GFX_START_ROCKSSP +  4 * SP_PER_LINE +  8)
1027 #define GFX_SP_BUG_ACTIVE       (GFX_START_ROCKSSP +  6 * SP_PER_LINE +  8)
1028 #define GFX_SP_SNIKSNAK_LEFT    (GFX_START_ROCKSSP +  8 * SP_PER_LINE +  8)
1029 #define GFX_SP_SNIKSNAK_RIGHT   (GFX_START_ROCKSSP +  8 * SP_PER_LINE + 12)
1030 #define GFX_SP_SNIKSNAK_UP      (GFX_START_ROCKSSP +  9 * SP_PER_LINE +  8)
1031 #define GFX_SP_SNIKSNAK_DOWN    (GFX_START_ROCKSSP +  9 * SP_PER_LINE + 12)
1032
1033 #define GFX2_SP_ELECTRON        (GFX_START_ROCKSSP + 10 * SP_PER_LINE +  8)
1034 #define GFX2_SP_TERMINAL        (GFX_START_ROCKSSP + 11 * SP_PER_LINE +  8)
1035 #define GFX2_SP_TERMINAL_ACTIVE (GFX_START_ROCKSSP + 12 * SP_PER_LINE +  8)
1036
1037 #define GFX_SP_MURPHY_CLONE     (GFX_START_ROCKSSP +  0 * SP_PER_LINE +  3)
1038
1039 /* graphics from "RocksDC" */
1040 #define GFX_BELT1_MIDDLE        (GFX_START_ROCKSDC +  0 * DC_PER_LINE +  0)
1041 #define GFX_BELT1_LEFT          (GFX_START_ROCKSDC +  1 * DC_PER_LINE +  0)
1042 #define GFX_BELT1_RIGHT         (GFX_START_ROCKSDC +  2 * DC_PER_LINE +  0)
1043 #define GFX_BELT2_MIDDLE        (GFX_START_ROCKSDC +  3 * DC_PER_LINE +  0)
1044 #define GFX_BELT2_LEFT          (GFX_START_ROCKSDC +  4 * DC_PER_LINE +  0)
1045 #define GFX_BELT2_RIGHT         (GFX_START_ROCKSDC +  5 * DC_PER_LINE +  0)
1046 #define GFX_BELT3_MIDDLE        (GFX_START_ROCKSDC +  6 * DC_PER_LINE +  0)
1047 #define GFX_BELT3_LEFT          (GFX_START_ROCKSDC +  7 * DC_PER_LINE +  0)
1048 #define GFX_BELT3_RIGHT         (GFX_START_ROCKSDC +  8 * DC_PER_LINE +  0)
1049 #define GFX_BELT4_MIDDLE        (GFX_START_ROCKSDC +  9 * DC_PER_LINE +  0)
1050 #define GFX_BELT4_LEFT          (GFX_START_ROCKSDC + 10 * DC_PER_LINE +  0)
1051 #define GFX_BELT4_RIGHT         (GFX_START_ROCKSDC + 11 * DC_PER_LINE +  0)
1052 #define GFX_BELT1_SWITCH_LEFT   (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  0)
1053 #define GFX_BELT2_SWITCH_LEFT   (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  1)
1054 #define GFX_BELT3_SWITCH_LEFT   (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  2)
1055 #define GFX_BELT4_SWITCH_LEFT   (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  3)
1056 #define GFX_BELT1_SWITCH_MIDDLE (GFX_START_ROCKSDC + 13 * DC_PER_LINE +  0)
1057 #define GFX_BELT2_SWITCH_MIDDLE (GFX_START_ROCKSDC + 13 * DC_PER_LINE +  1)
1058 #define GFX_BELT3_SWITCH_MIDDLE (GFX_START_ROCKSDC + 13 * DC_PER_LINE +  2)
1059 #define GFX_BELT4_SWITCH_MIDDLE (GFX_START_ROCKSDC + 13 * DC_PER_LINE +  3)
1060 #define GFX_BELT1_SWITCH_RIGHT  (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  0)
1061 #define GFX_BELT2_SWITCH_RIGHT  (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  1)
1062 #define GFX_BELT3_SWITCH_RIGHT  (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  2)
1063 #define GFX_BELT4_SWITCH_RIGHT  (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  3)
1064
1065 #define GFX_SWITCHGATE_SWITCH_1 (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  4)
1066 #define GFX_SWITCHGATE_SWITCH_2 (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  5)
1067 #define GFX_LIGHT_SWITCH_OFF    (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  6)
1068 #define GFX_LIGHT_SWITCH_ON     (GFX_START_ROCKSDC + 12 * DC_PER_LINE +  7)
1069 #define GFX_TIMEGATE_SWITCH     (GFX_START_ROCKSDC + 15 * DC_PER_LINE +  0)
1070
1071 #define GFX_ENVELOPE            (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  4)
1072 #define GFX_SIGN_EXCLAMATION    (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  5)
1073 #define GFX_SIGN_STOP           (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  6)
1074 #define GFX_LANDMINE            (GFX_START_ROCKSDC + 14 * DC_PER_LINE +  7)
1075 #define GFX_STEEL_SLANTED       (GFX_START_ROCKSDC + 15 * DC_PER_LINE +  5)
1076
1077 #define GFX_EXTRA_TIME          (GFX_START_ROCKSDC +  0 * DC_PER_LINE +  8)
1078 #define GFX_SHIELD_ACTIVE       (GFX_START_ROCKSDC +  1 * DC_PER_LINE +  8)
1079 #define GFX_SHIELD_PASSIVE      (GFX_START_ROCKSDC +  2 * DC_PER_LINE +  8)
1080 #define GFX_MOLE_DOWN           (GFX_START_ROCKSDC +  3 * DC_PER_LINE +  8)
1081 #define GFX_MOLE_UP             (GFX_START_ROCKSDC +  3 * DC_PER_LINE + 12)
1082 #define GFX_MOLE_LEFT           (GFX_START_ROCKSDC +  4 * DC_PER_LINE +  8)
1083 #define GFX_MOLE_RIGHT          (GFX_START_ROCKSDC +  4 * DC_PER_LINE + 12)
1084 #define GFX_SWITCHGATE_CLOSED   (GFX_START_ROCKSDC +  5 * DC_PER_LINE +  8)
1085 #define GFX_SWITCHGATE_OPEN     (GFX_START_ROCKSDC +  5 * DC_PER_LINE + 12)
1086 #define GFX_TIMEGATE_CLOSED     (GFX_START_ROCKSDC +  6 * DC_PER_LINE +  8)
1087 #define GFX_TIMEGATE_OPEN       (GFX_START_ROCKSDC +  6 * DC_PER_LINE + 12)
1088 #define GFX_BALLOON_SEND_LEFT   (GFX_START_ROCKSDC +  7 * DC_PER_LINE +  8)
1089 #define GFX_BALLOON_SEND_RIGHT  (GFX_START_ROCKSDC +  7 * DC_PER_LINE +  9)
1090 #define GFX_BALLOON_SEND_UP     (GFX_START_ROCKSDC +  7 * DC_PER_LINE + 10)
1091 #define GFX_BALLOON_SEND_DOWN   (GFX_START_ROCKSDC +  7 * DC_PER_LINE + 11)
1092 #define GFX_BALLOON             (GFX_START_ROCKSDC +  7 * DC_PER_LINE + 12)
1093 #define GFX_BALLOON_SEND_ANY    (GFX_START_ROCKSDC +  0 * DC_PER_LINE + 15)
1094
1095 #define GFX_EMC_STEEL_WALL_1    (GFX_START_ROCKSDC +  0 * DC_PER_LINE + 14)
1096 #define GFX_EMC_STEEL_WALL_2    (GFX_START_ROCKSDC +  0 * DC_PER_LINE + 14)
1097 #define GFX_EMC_STEEL_WALL_3    (GFX_START_ROCKSDC +  0 * DC_PER_LINE + 14)
1098 #define GFX_EMC_STEEL_WALL_4    (GFX_START_ROCKSDC +  0 * DC_PER_LINE + 14)
1099 #define GFX_EMC_WALL_1          (GFX_START_ROCKSDC +  6 * DC_PER_LINE + 13)
1100 #define GFX_EMC_WALL_2          (GFX_START_ROCKSDC +  6 * DC_PER_LINE + 14)
1101 #define GFX_EMC_WALL_3          (GFX_START_ROCKSDC +  6 * DC_PER_LINE + 15)
1102 #define GFX_EMC_WALL_4          (GFX_START_ROCKSDC +  1 * DC_PER_LINE + 14)
1103 #define GFX_EMC_WALL_5          (GFX_START_ROCKSDC +  1 * DC_PER_LINE + 15)
1104 #define GFX_EMC_WALL_6          (GFX_START_ROCKSDC +  2 * DC_PER_LINE + 14)
1105 #define GFX_EMC_WALL_7          (GFX_START_ROCKSDC +  2 * DC_PER_LINE + 15)
1106 #define GFX_EMC_WALL_8          (GFX_START_ROCKSDC +  1 * DC_PER_LINE + 14)
1107
1108 /* graphics from "RocksMore" */
1109 #define GFX_ARROW_BLUE_LEFT     (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  0)
1110 #define GFX_ARROW_BLUE_RIGHT    (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  1)
1111 #define GFX_ARROW_BLUE_UP       (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  2)
1112 #define GFX_ARROW_BLUE_DOWN     (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  3)
1113 #define GFX_ARROW_RED_LEFT      (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  0)
1114 #define GFX_ARROW_RED_RIGHT     (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  1)
1115 #define GFX_ARROW_RED_UP        (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  2)
1116 #define GFX_ARROW_RED_DOWN      (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  3)
1117 #define GFX_SCROLLBAR_BLUE      (GFX_START_ROCKSMORE +  2 * MORE_PER_LINE +  0)
1118 #define GFX_SCROLLBAR_RED       (GFX_START_ROCKSMORE +  2 * MORE_PER_LINE +  1)
1119 #define GFX_PEARL               (GFX_START_ROCKSMORE +  3 * MORE_PER_LINE +  0)
1120 #define GFX_CRYSTAL             (GFX_START_ROCKSMORE +  3 * MORE_PER_LINE +  1)
1121 #define GFX_WALL_PEARL          (GFX_START_ROCKSMORE +  3 * MORE_PER_LINE +  2)
1122 #define GFX_WALL_CRYSTAL        (GFX_START_ROCKSMORE +  3 * MORE_PER_LINE +  3)
1123 #define GFX_PEARL_BREAKING      (GFX_START_ROCKSMORE +  4 * MORE_PER_LINE +  0)
1124 #define GFX_SPRING              (GFX_START_ROCKSMORE +  5 * MORE_PER_LINE +  0)
1125 #define GFX_TUBE_RIGHT_DOWN     (GFX_START_ROCKSMORE +  5 * MORE_PER_LINE +  1)
1126 #define GFX_TUBE_HORIZ_DOWN     (GFX_START_ROCKSMORE +  5 * MORE_PER_LINE +  2)
1127 #define GFX_TUBE_LEFT_DOWN      (GFX_START_ROCKSMORE +  5 * MORE_PER_LINE +  3)
1128 #define GFX_TUBE_HORIZONTAL     (GFX_START_ROCKSMORE +  6 * MORE_PER_LINE +  0)
1129 #define GFX_TUBE_VERT_RIGHT     (GFX_START_ROCKSMORE +  6 * MORE_PER_LINE +  1)
1130 #define GFX_TUBE_CROSS          (GFX_START_ROCKSMORE +  6 * MORE_PER_LINE +  2)
1131 #define GFX_TUBE_VERT_LEFT      (GFX_START_ROCKSMORE +  6 * MORE_PER_LINE +  3)
1132 #define GFX_TUBE_VERTICAL       (GFX_START_ROCKSMORE +  7 * MORE_PER_LINE +  0)
1133 #define GFX_TUBE_RIGHT_UP       (GFX_START_ROCKSMORE +  7 * MORE_PER_LINE +  1)
1134 #define GFX_TUBE_HORIZ_UP       (GFX_START_ROCKSMORE +  7 * MORE_PER_LINE +  2)
1135 #define GFX_TUBE_LEFT_UP        (GFX_START_ROCKSMORE +  7 * MORE_PER_LINE +  3)
1136
1137 #define GFX_TRAP_INACTIVE       (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  4)
1138 #define GFX_TRAP_ACTIVE         (GFX_START_ROCKSMORE +  0 * MORE_PER_LINE +  7)
1139 #define GFX_BD_WALL             (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  4)
1140 #define GFX_BD_ROCK             (GFX_START_ROCKSMORE +  2 * MORE_PER_LINE +  4)
1141 #define GFX_DX_SUPABOMB         (GFX_START_ROCKSMORE +  1 * MORE_PER_LINE +  7)
1142
1143 /* graphics from "RocksFont" */
1144 #define GFX_CHAR_START          (GFX_START_ROCKSFONT)
1145 #define GFX_CHAR_ASCII0         (GFX_CHAR_START - 32)
1146 #define GFX_CHAR_AUSRUF         (GFX_CHAR_ASCII0 + 33)
1147 #define GFX_CHAR_ZOLL           (GFX_CHAR_ASCII0 + 34)
1148 #define GFX_CHAR_DOLLAR         (GFX_CHAR_ASCII0 + 36)
1149 #define GFX_CHAR_PROZ           (GFX_CHAR_ASCII0 + 37)
1150 #define GFX_CHAR_APOSTR         (GFX_CHAR_ASCII0 + 39)
1151 #define GFX_CHAR_KLAMM1         (GFX_CHAR_ASCII0 + 40)
1152 #define GFX_CHAR_KLAMM2         (GFX_CHAR_ASCII0 + 41)
1153 #define GFX_CHAR_PLUS           (GFX_CHAR_ASCII0 + 43)
1154 #define GFX_CHAR_KOMMA          (GFX_CHAR_ASCII0 + 44)
1155 #define GFX_CHAR_MINUS          (GFX_CHAR_ASCII0 + 45)
1156 #define GFX_CHAR_PUNKT          (GFX_CHAR_ASCII0 + 46)
1157 #define GFX_CHAR_SLASH          (GFX_CHAR_ASCII0 + 47)
1158 #define GFX_CHAR_0              (GFX_CHAR_ASCII0 + 48)
1159 #define GFX_CHAR_9              (GFX_CHAR_ASCII0 + 57)
1160 #define GFX_CHAR_DOPPEL         (GFX_CHAR_ASCII0 + 58)
1161 #define GFX_CHAR_SEMIKL         (GFX_CHAR_ASCII0 + 59)
1162 #define GFX_CHAR_LT             (GFX_CHAR_ASCII0 + 60)
1163 #define GFX_CHAR_GLEICH         (GFX_CHAR_ASCII0 + 61)
1164 #define GFX_CHAR_GT             (GFX_CHAR_ASCII0 + 62)
1165 #define GFX_CHAR_FRAGE          (GFX_CHAR_ASCII0 + 63)
1166 #define GFX_CHAR_AT             (GFX_CHAR_ASCII0 + 64)
1167 #define GFX_CHAR_A              (GFX_CHAR_ASCII0 + 65)
1168 #define GFX_CHAR_Z              (GFX_CHAR_ASCII0 + 90)
1169 #define GFX_CHAR_AE             (GFX_CHAR_ASCII0 + 91)
1170 #define GFX_CHAR_OE             (GFX_CHAR_ASCII0 + 92)
1171 #define GFX_CHAR_UE             (GFX_CHAR_ASCII0 + 93)
1172 #define GFX_CHAR_COPY           (GFX_CHAR_ASCII0 + 94)
1173 #define GFX_CHAR_END            (GFX_CHAR_START + 79)
1174
1175 /* new elements which still have no graphic */
1176 #define GFX_DOOR_WHITE          GFX_CHAR_FRAGE
1177 #define GFX_DOOR_WHITE_GRAY     GFX_CHAR_FRAGE
1178 #define GFX_KEY_WHITE           GFX_CHAR_FRAGE
1179 #define GFX_SIGN_RADIOACTIVITY  GFX_CHAR_FRAGE
1180 #define GFX_SIGN_WHEELCHAIR     GFX_CHAR_FRAGE
1181 #define GFX_SIGN_PARKING        GFX_CHAR_FRAGE
1182 #define GFX_SIGN_ONEWAY         GFX_CHAR_FRAGE
1183 #define GFX_SIGN_HEART          GFX_CHAR_FRAGE
1184 #define GFX_SIGN_TRIANGLE       GFX_CHAR_FRAGE
1185 #define GFX_SIGN_ROUND          GFX_CHAR_FRAGE
1186 #define GFX_SIGN_EXIT           GFX_CHAR_FRAGE
1187 #define GFX_SIGN_YINYANG        GFX_CHAR_FRAGE
1188 #define GFX_SIGN_OTHER          GFX_CHAR_FRAGE
1189 #define GFX_DX_UNKNOWN_15       GFX_CHAR_FRAGE
1190 #define GFX_DX_UNKNOWN_42       GFX_CHAR_FRAGE
1191
1192
1193 /* the names of the sounds */
1194 #define SND_AMOEBE              0
1195 #define SND_ANTIGRAV            1
1196 #define SND_AUTSCH              2
1197 #define SND_BLURB               3
1198 #define SND_BONG                4
1199 #define SND_BUING               5
1200 #define SND_DENG                6
1201 #define SND_FUEL                7
1202 #define SND_GONG                8
1203 #define SND_HALLOFFAME          9
1204 #define SND_HOLZ                10
1205 #define SND_HUI                 11
1206 #define SND_KABUMM              12
1207 #define SND_KINK                13
1208 #define SND_KLAPPER             14
1209 #define SND_KLING               15
1210 #define SND_KLOPF               16
1211 #define SND_KLUMPF              17
1212 #define SND_KNACK               18
1213 #define SND_KNURK               19
1214 #define SND_KRACH               20
1215 #define SND_LACHEN              21
1216 #define SND_LASER               22
1217 #define SND_MIEP                23
1218 #define SND_NJAM                24
1219 #define SND_OEFFNEN             25
1220 #define SND_PLING               26
1221 #define SND_PONG                27
1222 #define SND_PUSCH               28
1223 #define SND_QUIEK               29
1224 #define SND_QUIRK               30
1225 #define SND_RHYTHMLOOP          31
1226 #define SND_ROAAAR              32
1227 #define SND_ROEHR               33
1228 #define SND_RUMMS               34
1229 #define SND_SCHLOPP             35
1230 #define SND_SCHLURF             36
1231 #define SND_SCHRFF              37
1232 #define SND_SCHWIRR             38
1233 #define SND_SIRR                39
1234 #define SND_SLURP               40
1235 #define SND_SPROING             41
1236 #define SND_WARNTON             42
1237 #define SND_WHOOSH              43
1238 #define SND_ZISCH               44
1239 #define SND_SP_BASE             45
1240 #define SND_SP_INFOTRON         46
1241 #define SND_SP_ZONKDOWN         47
1242 #define SND_SP_ZONKPUSH         48
1243 #define SND_SP_BUG              49
1244 #define SND_SP_BOOM             50
1245 #define SND_SP_BOOOM            51
1246 #define SND_SP_EXIT             52
1247 #define SND_EMPTY               53
1248 #define SND_GATE                54
1249
1250 #define NUM_SOUNDS              55
1251
1252
1253 /* values for animation action types */
1254 #define GFX_ACTION_UNKNOWN              0
1255 #define GFX_ACTION_DEFAULT              1
1256 #define GFX_ACTION_WAITING              2
1257 #define GFX_ACTION_FALLING              3
1258 #define GFX_ACTION_MOVING               4
1259 #define GFX_ACTION_DIGGING              5
1260 #define GFX_ACTION_COLLECTING           6
1261 #define GFX_ACTION_PUSHING              7
1262 #define GFX_ACTION_PASSING              8
1263 #define GFX_ACTION_IMPACT               9
1264 #define GFX_ACTION_CRACKING             10
1265 #define GFX_ACTION_ACTIVATING           11
1266 #define GFX_ACTION_BURNING              12
1267 #define GFX_ACTION_OTHER                13
1268
1269 #define NUM_GFX_ACTIONS                 14
1270 #define NUM_GFX_ACTIONS_MAPPED          7
1271
1272
1273 /* values for image configuration suffixes */
1274 #define GFX_ARG_XPOS                            0
1275 #define GFX_ARG_YPOS                            1
1276 #define GFX_ARG_FRAMES                          2
1277 #define GFX_ARG_DELAY                           3
1278 #define GFX_ARG_PINGPONG                        4
1279 #define GFX_ARG_PINGPONG2                       5
1280 #define GFX_ARG_REVERSE                         6
1281 #define GFX_ARG_GLOBAL_SYNC                     7
1282 #define GFX_ARG_VERTICAL                        8
1283
1284 /* values for image configuration */
1285 #define IMG_EMPTY_SPACE                         0
1286 #define IMG_SAND                                1
1287 #define IMG_SAND_CRUMBLED                       2
1288 #define IMG_QUICKSAND_EMPTY                     3
1289 #define IMG_QUICKSAND_FULL                      4
1290 #define IMG_QUICKSAND_SLIPPING                  5
1291 #define IMG_STEELWALL                           6
1292 #define IMG_WALL                                7
1293 #define IMG_WALL_CRUMBLED                       8
1294 #define IMG_EMERALD                             9
1295 #define IMG_EMERALD_FALLING                     10
1296 #define IMG_DIAMOND                             11
1297 #define IMG_DIAMOND_FALLING                     12
1298 #define IMG_ROCK                                13
1299 #define IMG_ROCK_FALLING                        14
1300 #define IMG_ROCK_PUSHING                        15
1301 #define IMG_ACIDPOOL_TOPLEFT                    16
1302 #define IMG_ACIDPOOL_TOPRIGHT                   17
1303 #define IMG_ACIDPOOL_BOTTOMLEFT                 18
1304 #define IMG_ACIDPOOL_BOTTOM                     19
1305 #define IMG_ACIDPOOL_BOTTOMRIGHT                20
1306 #define IMG_ACID                                21
1307 #define IMG_KEY1                                22
1308 #define IMG_KEY2                                23
1309 #define IMG_KEY3                                24
1310 #define IMG_KEY4                                25
1311 #define IMG_GAMEOFLIFE                          26
1312 #define IMG_BIOMAZE                             27
1313 #define IMG_BOMB                                28
1314 #define IMG_NUT                                 29
1315 #define IMG_NUT_CRACKING                        30
1316 #define IMG_GATE1                               31
1317 #define IMG_GATE2                               32
1318 #define IMG_GATE3                               33
1319 #define IMG_GATE4                               34
1320 #define IMG_GATE1_GRAY                          35
1321 #define IMG_GATE2_GRAY                          36
1322 #define IMG_GATE3_GRAY                          37
1323 #define IMG_GATE4_GRAY                          38
1324 #define IMG_DYNAMITE                            39
1325 #define IMG_DYNAMITE_BURNING                    40
1326 #define IMG_SPACESHIP_RIGHT                     41
1327 #define IMG_SPACESHIP_UP                        42
1328 #define IMG_SPACESHIP_LEFT                      43
1329 #define IMG_SPACESHIP_DOWN                      44
1330 #define IMG_BUG_RIGHT                           45
1331 #define IMG_BUG_UP                              46
1332 #define IMG_BUG_LEFT                            47
1333 #define IMG_BUG_DOWN                            48
1334 #define IMG_PACMAN_RIGHT                        49
1335 #define IMG_PACMAN_UP                           50
1336 #define IMG_PACMAN_LEFT                         51
1337 #define IMG_PACMAN_DOWN                         52
1338 #define IMG_EXPLOSION                           53
1339 #define IMG_YAMYAM                              54
1340 #define IMG_YAMYAM_MOVING                       55
1341 #define IMG_ROBOT                               56
1342 #define IMG_ROBOT_WHEEL                         57
1343 #define IMG_AMOEBA_DROP                         58
1344 #define IMG_AMOEBA_CREATING                     59
1345 #define IMG_AMOEBA1                             60
1346 #define IMG_AMOEBA2                             61
1347 #define IMG_AMOEBA3                             62
1348 #define IMG_AMOEBA4                             63
1349 #define IMG_AMOEBA_DEAD1                        64
1350 #define IMG_AMOEBA_DEAD2                        65
1351 #define IMG_AMOEBA_DEAD3                        66
1352 #define IMG_AMOEBA_DEAD4                        67
1353 #define IMG_LAMP_OFF                            68
1354 #define IMG_LAMP_ON                             69
1355 #define IMG_TIME_ORB_FULL                       70
1356 #define IMG_TIME_ORB_EMPTY                      71
1357 #define IMG_BD_AMOEBA                           72
1358 #define IMG_SOKOBAN_OBJECT                      73
1359 #define IMG_SOKOBAN_FIELD_EMPTY                 74
1360 #define IMG_SOKOBAN_FIELD_FULL                  75
1361 #define IMG_MAGIC_WALL                          76
1362 #define IMG_MAGIC_WALL_ACTIVE                   77
1363 #define IMG_BD_MAGIC_WALL                       78
1364 #define IMG_BD_MAGIC_WALL_ACTIVE                79
1365 #define IMG_WALL_EMERALD                        80
1366 #define IMG_WALL_DIAMOND                        81
1367 #define IMG_WALL_EMERALD_RED                    82
1368 #define IMG_WALL_EMERALD_PURPLE                 83
1369 #define IMG_WALL_EMERALD_YELLOW                 84
1370 #define IMG_WALL_BD_DIAMOND                     85
1371 #define IMG_EMERALD_RED                         86
1372 #define IMG_EMERALD_RED_FALLING                 87
1373 #define IMG_EMERALD_PURPLE                      88
1374 #define IMG_EMERALD_PURPLE_FALLING              89
1375 #define IMG_EMERALD_YELLOW                      90
1376 #define IMG_EMERALD_YELLOW_FALLING              91
1377 #define IMG_WALL_GROWING_XY                     92
1378 #define IMG_WALL_GROWING_X                      93
1379 #define IMG_WALL_GROWING_Y                      94
1380 #define IMG_DYNABOMB_XL                         95
1381 #define IMG_BLACK_ORB                           96
1382 #define IMG_SPEED_PILL                          97
1383 #define IMG_BD_DIAMOND                          98
1384 #define IMG_BD_DIAMOND_FALLING                  99
1385 #define IMG_WALL_GROWING_RIGHT                  100
1386 #define IMG_WALL_GROWING_LEFT                   101
1387 #define IMG_EXIT_CLOSED                         102
1388 #define IMG_EXIT_OPENING                        103
1389 #define IMG_EXIT_OPEN                           104
1390 #define IMG_DARK_YAMYAM                         105
1391 #define IMG_DYNABOMB_BURNING                    106
1392 #define IMG_DYNABOMB_NR                         107
1393 #define IMG_DYNABOMB_SZ                         108
1394 #define IMG_ARROW_LEFT                          109
1395 #define IMG_ARROW_RIGHT                         110
1396 #define IMG_ARROW_UP                            111
1397 #define IMG_ARROW_DOWN                          112
1398 #define IMG_BD_BUTTERFLY                        113
1399 #define IMG_BD_BUTTERFLY_MOVING                 114
1400 #define IMG_BD_BUTTERFLY_RIGHT                  115
1401 #define IMG_BD_BUTTERFLY_UP                     116
1402 #define IMG_BD_BUTTERFLY_LEFT                   117
1403 #define IMG_BD_BUTTERFLY_DOWN                   118
1404 #define IMG_BD_FIREFLY                          119
1405 #define IMG_BD_FIREFLY_MOVING                   120
1406 #define IMG_BD_FIREFLY_RIGHT                    121
1407 #define IMG_BD_FIREFLY_UP                       122
1408 #define IMG_BD_FIREFLY_LEFT                     123
1409 #define IMG_BD_FIREFLY_DOWN                     124
1410 #define IMG_STEELWALL_TOPLEFT                   125
1411 #define IMG_STEELWALL_TOPRIGHT                  126
1412 #define IMG_STEELWALL_BOTTOMLEFT                127
1413 #define IMG_STEELWALL_BOTTOMRIGHT               128
1414 #define IMG_STEELWALL_HORIZONTAL                129
1415 #define IMG_INVISIBLE_STEELWALL_TOPLEFT         130
1416 #define IMG_INVISIBLE_STEELWALL_TOPRIGHT        131
1417 #define IMG_INVISIBLE_STEELWALL_BOTTOMLEFT      132
1418 #define IMG_INVISIBLE_STEELWALL_BOTTOMRIGHT     133
1419 #define IMG_INVISIBLE_STEELWALL_HORIZONTAL      134
1420 #define IMG_PLAYER1_DOWN                        135
1421 #define IMG_PLAYER1_DOWN_MOVING                 136
1422 #define IMG_PLAYER1_DOWN_DIGGING                137
1423 #define IMG_PLAYER1_UP                          138
1424 #define IMG_PLAYER1_UP_MOVING                   139
1425 #define IMG_PLAYER1_UP_DIGGING                  140
1426 #define IMG_PLAYER1_LEFT                        141
1427 #define IMG_PLAYER1_LEFT_MOVING                 142
1428 #define IMG_PLAYER1_LEFT_DIGGING                143
1429 #define IMG_PLAYER1_LEFT_PUSHING                144
1430 #define IMG_PLAYER1_RIGHT                       145
1431 #define IMG_PLAYER1_RIGHT_MOVING                146
1432 #define IMG_PLAYER1_RIGHT_DIGGING               147
1433 #define IMG_PLAYER1_RIGHT_PUSHING               148
1434 #define IMG_PLAYER2_DOWN                        149
1435 #define IMG_PLAYER2_DOWN_MOVING                 150
1436 #define IMG_PLAYER2_DOWN_DIGGING                151
1437 #define IMG_PLAYER2_UP                          152
1438 #define IMG_PLAYER2_UP_MOVING                   153
1439 #define IMG_PLAYER2_UP_DIGGING                  154
1440 #define IMG_PLAYER2_LEFT                        155
1441 #define IMG_PLAYER2_LEFT_MOVING                 156
1442 #define IMG_PLAYER2_LEFT_DIGGING                157
1443 #define IMG_PLAYER2_LEFT_PUSHING                158
1444 #define IMG_PLAYER2_RIGHT                       159
1445 #define IMG_PLAYER2_RIGHT_MOVING                160
1446 #define IMG_PLAYER2_RIGHT_DIGGING               161
1447 #define IMG_PLAYER2_RIGHT_PUSHING               162
1448 #define IMG_PLAYER3_DOWN                        163
1449 #define IMG_PLAYER3_DOWN_MOVING                 164
1450 #define IMG_PLAYER3_DOWN_DIGGING                165
1451 #define IMG_PLAYER3_UP                          166
1452 #define IMG_PLAYER3_UP_MOVING                   167
1453 #define IMG_PLAYER3_UP_DIGGING                  168
1454 #define IMG_PLAYER3_LEFT                        169
1455 #define IMG_PLAYER3_LEFT_MOVING                 170
1456 #define IMG_PLAYER3_LEFT_DIGGING                171
1457 #define IMG_PLAYER3_LEFT_PUSHING                172
1458 #define IMG_PLAYER3_RIGHT                       173
1459 #define IMG_PLAYER3_RIGHT_MOVING                174
1460 #define IMG_PLAYER3_RIGHT_DIGGING               175
1461 #define IMG_PLAYER3_RIGHT_PUSHING               176
1462 #define IMG_PLAYER4_DOWN                        177
1463 #define IMG_PLAYER4_DOWN_MOVING                 178
1464 #define IMG_PLAYER4_DOWN_DIGGING                179
1465 #define IMG_PLAYER4_UP                          180
1466 #define IMG_PLAYER4_UP_MOVING                   181
1467 #define IMG_PLAYER4_UP_DIGGING                  182
1468 #define IMG_PLAYER4_LEFT                        183
1469 #define IMG_PLAYER4_LEFT_MOVING                 184
1470 #define IMG_PLAYER4_LEFT_DIGGING                185
1471 #define IMG_PLAYER4_LEFT_PUSHING                186
1472 #define IMG_PLAYER4_RIGHT                       187
1473 #define IMG_PLAYER4_RIGHT_MOVING                188
1474 #define IMG_PLAYER4_RIGHT_DIGGING               189
1475 #define IMG_PLAYER4_RIGHT_PUSHING               190
1476 #define IMG_WALL_GROWING_DOWN                   191
1477 #define IMG_WALL_GROWING_UP                     192
1478 #define IMG_SHIELD_NORMAL_ACTIVE                193
1479 #define IMG_SHIELD_DEADLY_ACTIVE                194
1480 #define IMG_PIG_DOWN                            195
1481 #define IMG_PIG_DOWN_MOVING                     196
1482 #define IMG_PIG_DOWN_EATING                     197
1483 #define IMG_PIG_UP                              198
1484 #define IMG_PIG_UP_MOVING                       199
1485 #define IMG_PIG_UP_EATING                       200
1486 #define IMG_PIG_LEFT                            201
1487 #define IMG_PIG_LEFT_MOVING                     202
1488 #define IMG_PIG_LEFT_EATING                     203
1489 #define IMG_PIG_RIGHT                           204
1490 #define IMG_PIG_RIGHT_MOVING                    205
1491 #define IMG_PIG_RIGHT_EATING                    206
1492 #define IMG_DRAGON_DOWN                         207
1493 #define IMG_DRAGON_DOWN_MOVING                  208
1494 #define IMG_DRAGON_DOWN_ATTACKING               209
1495 #define IMG_DRAGON_UP                           210
1496 #define IMG_DRAGON_UP_MOVING                    211
1497 #define IMG_DRAGON_UP_ATTACKING                 212
1498 #define IMG_DRAGON_LEFT                         213
1499 #define IMG_DRAGON_LEFT_MOVING                  214
1500 #define IMG_DRAGON_LEFT_ATTACKING               215
1501 #define IMG_DRAGON_RIGHT                        216
1502 #define IMG_DRAGON_RIGHT_MOVING                 217
1503 #define IMG_DRAGON_RIGHT_ATTACKING              218
1504 #define IMG_MOLE_DOWN                           219
1505 #define IMG_MOLE_DOWN_MOVING                    220
1506 #define IMG_MOLE_DOWN_DIGGING                   221
1507 #define IMG_MOLE_UP                             222
1508 #define IMG_MOLE_UP_MOVING                      223
1509 #define IMG_MOLE_UP_DIGGING                     224
1510 #define IMG_MOLE_LEFT                           225
1511 #define IMG_MOLE_LEFT_MOVING                    226
1512 #define IMG_MOLE_LEFT_DIGGING                   227
1513 #define IMG_MOLE_RIGHT                          228
1514 #define IMG_MOLE_RIGHT_MOVING                   229
1515 #define IMG_MOLE_RIGHT_DIGGING                  230
1516 #define IMG_PENGUIN_DOWN                        231
1517 #define IMG_PENGUIN_DOWN_MOVING                 232
1518 #define IMG_PENGUIN_UP                          233
1519 #define IMG_PENGUIN_UP_MOVING                   234
1520 #define IMG_PENGUIN_LEFT                        235
1521 #define IMG_PENGUIN_LEFT_MOVING                 236
1522 #define IMG_PENGUIN_RIGHT                       237
1523 #define IMG_PENGUIN_RIGHT_MOVING                238
1524 #define IMG_SATELLITE                           239
1525 #define IMG_SATELLITE_MOVING                    240
1526 #define IMG_ACID_SPLASHING_LEFT                 241
1527 #define IMG_ACID_SPLASHING_RIGHT                242
1528 #define IMG_SPARK_BLUE                          243
1529 #define IMG_SPARK_WHITE                         244
1530 #define IMG_FLAMES_LEFT1                        245
1531 #define IMG_FLAMES_LEFT2                        246
1532 #define IMG_FLAMES_LEFT3                        247
1533 #define IMG_FLAMES_RIGHT1                       248
1534 #define IMG_FLAMES_RIGHT2                       249
1535 #define IMG_FLAMES_RIGHT3                       250
1536 #define IMG_FLAMES_UP1                          251
1537 #define IMG_FLAMES_UP2                          252
1538 #define IMG_FLAMES_UP3                          253
1539 #define IMG_FLAMES_DOWN1                        254
1540 #define IMG_FLAMES_DOWN2                        255
1541 #define IMG_FLAMES_DOWN3                        256
1542 #define IMG_SP_EMPTY_SPACE                      257
1543 #define IMG_SP_ZONK                             258
1544 #define IMG_SP_ZONK_FALLING                     259
1545 #define IMG_SP_ZONK_PUSHING                     260
1546 #define IMG_SP_BASE                             261
1547 #define IMG_SP_MURPHY                           262
1548 #define IMG_SP_MURPHY_LEFT                      263
1549 #define IMG_SP_MURPHY_LEFT_MOVING               264
1550 #define IMG_SP_MURPHY_LEFT_DIGGING              265
1551 #define IMG_SP_MURPHY_LEFT_PUSHING              266
1552 #define IMG_SP_MURPHY_LEFT_SNAPPING             267
1553 #define IMG_SP_MURPHY_RIGHT                     268
1554 #define IMG_SP_MURPHY_RIGHT_MOVING              269
1555 #define IMG_SP_MURPHY_RIGHT_DIGGING             270
1556 #define IMG_SP_MURPHY_RIGHT_PUSHING             271
1557 #define IMG_SP_MURPHY_RIGHT_SNAPPING            272
1558 #define IMG_SP_MURPHY_UP                        273
1559 #define IMG_SP_MURPHY_UP_SNAPPING               274
1560 #define IMG_SP_MURPHY_DOWN                      275
1561 #define IMG_SP_MURPHY_DOWN_SNAPPING             276
1562 #define IMG_SP_MURPHY_CLONE                     277
1563 #define IMG_SP_INFOTRON                         278
1564 #define IMG_SP_INFOTRON_FALLING                 279
1565 #define IMG_SP_CHIP_SINGLE                      280
1566 #define IMG_SP_CHIP_LEFT                        281
1567 #define IMG_SP_CHIP_RIGHT                       282
1568 #define IMG_SP_CHIP_UPPER                       283
1569 #define IMG_SP_CHIP_LOWER                       284
1570 #define IMG_SP_HARD_GRAY                        285
1571 #define IMG_SP_HARD_GREEN                       286
1572 #define IMG_SP_HARD_BLUE                        287
1573 #define IMG_SP_HARD_RED                         288
1574 #define IMG_SP_HARD_YELLOW                      289
1575 #define IMG_SP_EXIT_CLOSED                      290
1576 #define IMG_SP_EXIT_OPEN                        291
1577 #define IMG_SP_DISK_ORANGE                      292
1578 #define IMG_SP_DISK_ORANGE_FALLING              293
1579 #define IMG_SP_DISK_ORANGE_PUSHING              294
1580 #define IMG_SP_DISK_YELLOW                      295
1581 #define IMG_SP_DISK_YELLOW_PUSHING              296
1582 #define IMG_SP_DISK_RED                         297
1583 #define IMG_SP_DISK_RED_COLLECTING              298
1584 #define IMG_SP_PORT1_RIGHT                      299
1585 #define IMG_SP_PORT1_DOWN                       300
1586 #define IMG_SP_PORT1_LEFT                       301
1587 #define IMG_SP_PORT1_UP                         302
1588 #define IMG_SP_PORT2_RIGHT                      303
1589 #define IMG_SP_PORT2_DOWN                       304
1590 #define IMG_SP_PORT2_LEFT                       305
1591 #define IMG_SP_PORT2_UP                         306
1592 #define IMG_SP_PORT_X                           307
1593 #define IMG_SP_PORT_Y                           308
1594 #define IMG_SP_PORT_XY                          309
1595 #define IMG_SP_SNIKSNAK                         310
1596 #define IMG_SP_SNIKSNAK_LEFT                    311
1597 #define IMG_SP_SNIKSNAK_RIGHT                   312
1598 #define IMG_SP_SNIKSNAK_UP                      313
1599 #define IMG_SP_SNIKSNAK_DOWN                    314
1600 #define IMG_SP_ELECTRON                         315
1601 #define IMG_SP_TERMINAL                         316
1602 #define IMG_SP_TERMINAL_ACTIVE                  317
1603 #define IMG_SP_BUGGY_BASE                       318
1604 #define IMG_SP_BUGGY_BASE_ACTIVATING            319
1605 #define IMG_SP_HARD_BASE1                       320
1606 #define IMG_SP_HARD_BASE2                       321
1607 #define IMG_SP_HARD_BASE3                       322
1608 #define IMG_SP_HARD_BASE4                       323
1609 #define IMG_SP_HARD_BASE5                       324
1610 #define IMG_SP_HARD_BASE6                       325
1611 #define IMG_INVISIBLE_STEELWALL                 326
1612 #define IMG_INVISIBLE_STEELWALL_ON              327
1613 #define IMG_INVISIBLE_SAND                      328
1614 #define IMG_INVISIBLE_SAND_ON                   329
1615 #define IMG_INVISIBLE_WALL                      330
1616 #define IMG_INVISIBLE_WALL_ON                   331
1617 #define IMG_EM_KEY1                             332
1618 #define IMG_EM_KEY2                             333
1619 #define IMG_EM_KEY3                             334
1620 #define IMG_EM_KEY4                             335
1621 #define IMG_EM_GATE1                            336
1622 #define IMG_EM_GATE2                            337
1623 #define IMG_EM_GATE3                            338
1624 #define IMG_EM_GATE4                            339
1625 #define IMG_EM_GATE1_GRAY                       340
1626 #define IMG_EM_GATE2_GRAY                       341
1627 #define IMG_EM_GATE3_GRAY                       342
1628 #define IMG_EM_GATE4_GRAY                       343
1629 #define IMG_SP_EXPLOSION                        344
1630 #define IMG_SP_EXPLOSION_INFOTRON               345
1631 #define IMG_CONVEYOR_BELT1_MIDDLE               346
1632 #define IMG_CONVEYOR_BELT1_MIDDLE_ACTIVE        347
1633 #define IMG_CONVEYOR_BELT1_LEFT                 348
1634 #define IMG_CONVEYOR_BELT1_LEFT_ACTIVE          349
1635 #define IMG_CONVEYOR_BELT1_RIGHT                350
1636 #define IMG_CONVEYOR_BELT1_RIGHT_ACTIVE         351
1637 #define IMG_CONVEYOR_BELT1_SWITCH_LEFT          352
1638 #define IMG_CONVEYOR_BELT1_SWITCH_MIDDLE        353
1639 #define IMG_CONVEYOR_BELT1_SWITCH_RIGHT         354
1640 #define IMG_CONVEYOR_BELT2_MIDDLE               355
1641 #define IMG_CONVEYOR_BELT2_MIDDLE_ACTIVE        356
1642 #define IMG_CONVEYOR_BELT2_LEFT                 357
1643 #define IMG_CONVEYOR_BELT2_LEFT_ACTIVE          358
1644 #define IMG_CONVEYOR_BELT2_RIGHT                359
1645 #define IMG_CONVEYOR_BELT2_RIGHT_ACTIVE         360
1646 #define IMG_CONVEYOR_BELT2_SWITCH_LEFT          361
1647 #define IMG_CONVEYOR_BELT2_SWITCH_MIDDLE        362
1648 #define IMG_CONVEYOR_BELT2_SWITCH_RIGHT         363
1649 #define IMG_CONVEYOR_BELT3_MIDDLE               364
1650 #define IMG_CONVEYOR_BELT3_MIDDLE_ACTIVE        365
1651 #define IMG_CONVEYOR_BELT3_LEFT                 366
1652 #define IMG_CONVEYOR_BELT3_LEFT_ACTIVE          367
1653 #define IMG_CONVEYOR_BELT3_RIGHT                368
1654 #define IMG_CONVEYOR_BELT3_RIGHT_ACTIVE         369
1655 #define IMG_CONVEYOR_BELT3_SWITCH_LEFT          370
1656 #define IMG_CONVEYOR_BELT3_SWITCH_MIDDLE        371
1657 #define IMG_CONVEYOR_BELT3_SWITCH_RIGHT         372
1658 #define IMG_CONVEYOR_BELT4_MIDDLE               373
1659 #define IMG_CONVEYOR_BELT4_MIDDLE_ACTIVE        374
1660 #define IMG_CONVEYOR_BELT4_LEFT                 375
1661 #define IMG_CONVEYOR_BELT4_LEFT_ACTIVE          376
1662 #define IMG_CONVEYOR_BELT4_RIGHT                377
1663 #define IMG_CONVEYOR_BELT4_RIGHT_ACTIVE         378
1664 #define IMG_CONVEYOR_BELT4_SWITCH_LEFT          379
1665 #define IMG_CONVEYOR_BELT4_SWITCH_MIDDLE        380
1666 #define IMG_CONVEYOR_BELT4_SWITCH_RIGHT         381
1667 #define IMG_SWITCHGATE_SWITCH_UP                382
1668 #define IMG_SWITCHGATE_SWITCH_DOWN              383
1669 #define IMG_LIGHT_SWITCH_OFF                    384
1670 #define IMG_LIGHT_SWITCH_ON                     385
1671 #define IMG_TIMEGATE_WHEEL                      386
1672 #define IMG_TIMEGATE_WHEEL_ACTIVE               387
1673 #define IMG_ENVELOPE                            388
1674 #define IMG_SIGN_EXCLAMATION                    389
1675 #define IMG_SIGN_STOP                           390
1676 #define IMG_LANDMINE                            391
1677 #define IMG_STEELWALL_SLANTED                   392
1678 #define IMG_EXTRA_TIME                          393
1679 #define IMG_SHIELD_DEADLY                       394
1680 #define IMG_SHIELD_NORMAL                       395
1681 #define IMG_SWITCHGATE_CLOSED                   396
1682 #define IMG_SWITCHGATE_OPENING                  397
1683 #define IMG_SWITCHGATE_OPEN                     398
1684 #define IMG_SWITCHGATE_CLOSING                  399
1685 #define IMG_TIMEGATE_CLOSED                     400
1686 #define IMG_TIMEGATE_OPENING                    401
1687 #define IMG_TIMEGATE_OPEN                       402
1688 #define IMG_TIMEGATE_CLOSING                    403
1689 #define IMG_BALLOON                             404
1690 #define IMG_BALLOON_MOVING                      405
1691 #define IMG_BALLOON_WINDROSE_LEFT               406
1692 #define IMG_BALLOON_WINDROSE_RIGHT              407
1693 #define IMG_BALLOON_WINDROSE_UP                 408
1694 #define IMG_BALLOON_WINDROSE_DOWN               409
1695 #define IMG_BALLOON_WINDROSE_ALL                410
1696 #define IMG_EMC_STEELWALL1                      411
1697 #define IMG_EMC_STEELWALL2                      412
1698 #define IMG_EMC_STEELWALL3                      413
1699 #define IMG_EMC_STEELWALL4                      414
1700 #define IMG_EMC_WALL_PILLAR_UPPER               415
1701 #define IMG_EMC_WALL_PILLAR_MIDDLE              416
1702 #define IMG_EMC_WALL_PILLAR_LOWER               417
1703 #define IMG_EMC_WALL4                           418
1704 #define IMG_EMC_WALL5                           419
1705 #define IMG_EMC_WALL6                           420
1706 #define IMG_EMC_WALL7                           421
1707 #define IMG_EMC_WALL8                           422
1708 #define IMG_ARROW_BLUE_LEFT                     423
1709 #define IMG_ARROW_BLUE_RIGHT                    424
1710 #define IMG_ARROW_BLUE_UP                       425
1711 #define IMG_ARROW_BLUE_DOWN                     426
1712 #define IMG_ARROW_RED_LEFT                      427
1713 #define IMG_ARROW_RED_RIGHT                     428
1714 #define IMG_ARROW_RED_UP                        429
1715 #define IMG_ARROW_RED_DOWN                      430
1716 #define IMG_SCROLLBAR_BLUE                      431
1717 #define IMG_SCROLLBAR_RED                       432
1718 #define IMG_SCROLLBAR_GREEN                     433
1719 #define IMG_SCROLLBAR_YELLOW                    434
1720 #define IMG_PEARL                               435
1721 #define IMG_PEARL_BREAKING                      436
1722 #define IMG_CRYSTAL                             437
1723 #define IMG_WALL_PEARL                          438
1724 #define IMG_WALL_CRYSTAL                        439
1725 #define IMG_SPRING                              440
1726 #define IMG_TUBE_RIGHT_DOWN                     441
1727 #define IMG_TUBE_HORIZONTAL_DOWN                442
1728 #define IMG_TUBE_LEFT_DOWN                      443
1729 #define IMG_TUBE_HORIZONTAL                     444
1730 #define IMG_TUBE_VERTICAL_RIGHT                 445
1731 #define IMG_TUBE_ALL                            446
1732 #define IMG_TUBE_VERTICAL_LEFT                  447
1733 #define IMG_TUBE_VERTICAL                       448
1734 #define IMG_TUBE_RIGHT_UP                       449
1735 #define IMG_TUBE_HORIZONTAL_UP                  450
1736 #define IMG_TUBE_LEFT_UP                        451
1737 #define IMG_TRAP_INACTIVE                       452
1738 #define IMG_TRAP_ACTIVE                         453
1739 #define IMG_TRAP_ACTIVATING                     454
1740 #define IMG_BD_WALL                             455
1741 #define IMG_BD_ROCK                             456
1742 #define IMG_BD_ROCK_FALLING                     457
1743 #define IMG_BD_ROCK_PUSHING                     458
1744 #define IMG_DX_BOMB                             459
1745
1746 #define NUM_IMAGE_FILES                         460
1747
1748
1749 /* values for sound configuration suffixes */
1750 /* (currently none) */
1751
1752 /* values for sound configuration */
1753 #define SND_BD_EMPTY_SPACE_DIGGING              0
1754 #define SND_BD_SAND_DIGGING                     1
1755 #define SND_BD_DIAMOND_COLLECTING               2
1756 #define SND_BD_DIAMOND_IMPACT                   3
1757 #define SND_BD_ROCK_PUSHING                     4
1758 #define SND_BD_ROCK_IMPACT                      5
1759 #define SND_BD_MAGIC_WALL_ACTIVATING            6
1760 #define SND_BD_MAGIC_WALL_ACTIVE                7
1761 #define SND_BD_MAGIC_WALL_CHANGING              8
1762 #define SND_BD_AMOEBA_WAITING                   9
1763 #define SND_BD_AMOEBA_CREATING                  10
1764 #define SND_BD_AMOEBA_TURNING_TO_GEM            11
1765 #define SND_BD_AMOEBA_TURNING_TO_ROCK           12
1766 #define SND_BD_BUTTERFLY_MOVING                 13
1767 #define SND_BD_BUTTERFLY_WAITING                14
1768 #define SND_BD_FIREFLY_MOVING                   15
1769 #define SND_BD_FIREFLY_WAITING                  16
1770 #define SND_BD_EXIT_PASSING                     17
1771 #define SND_SP_EMPTY_SPACE_DIGGING              18
1772 #define SND_SP_BASE_DIGGING                     19
1773 #define SND_SP_BUGGY_BASE_DIGGING               20
1774 #define SND_SP_BUGGY_BASE_ACTIVATING            21
1775 #define SND_SP_INFOTRON_COLLECTING              22
1776 #define SND_SP_INFOTRON_IMPACT                  23
1777 #define SND_SP_ZONK_PUSHING                     24
1778 #define SND_SP_ZONK_IMPACT                      25
1779 #define SND_SP_DISK_RED_COLLECTING              26
1780 #define SND_SP_DISK_ORANGE_PUSHING              27
1781 #define SND_SP_DISK_YELLOW_PUSHING              28
1782 #define SND_SP_PORT_PASSING                     29
1783 #define SND_SP_EXIT_PASSING                     30
1784 #define SND_SP_ELEMENT_EXPLODING                31
1785 #define SND_SP_SNIKSNAK_MOVING                  32
1786 #define SND_SP_SNIKSNAK_WAITING                 33
1787 #define SND_SP_ELECTRON_MOVING                  34
1788 #define SND_SP_ELECTRON_WAITING                 35
1789 #define SND_SP_TERMINAL_ACTIVATING              36
1790 #define SND_SP_TERMINAL_ACTIVE                  37
1791 #define SND_SOKOBAN_OBJECT_PUSHING              38
1792 #define SND_SOKOBAN_FIELD_FILLING               39
1793 #define SND_SOKOBAN_FIELD_EMPTYING              40
1794 #define SND_SOKOBAN_GAME_SOLVING                41
1795 #define SND_EMPTY_SPACE_DIGGING                 42
1796 #define SND_SAND_DIGGING                        43
1797 #define SND_EMERALD_COLLECTING                  44
1798 #define SND_EMERALD_IMPACT                      45
1799 #define SND_DIAMOND_COLLECTING                  46
1800 #define SND_DIAMOND_IMPACT                      47
1801 #define SND_DIAMOND_BREAKING                    48
1802 #define SND_ROCK_PUSHING                        49
1803 #define SND_ROCK_IMPACT                         50
1804 #define SND_BOMB_PUSHING                        51
1805 #define SND_NUT_PUSHING                         52
1806 #define SND_NUT_CRACKING                        53
1807 #define SND_NUT_IMPACT                          54
1808 #define SND_DYNAMITE_COLLECTING                 55
1809 #define SND_DYNAMITE_DROPPING                   56
1810 #define SND_DYNAMITE_BURNING                    57
1811 #define SND_KEY_COLLECTING                      58
1812 #define SND_GATE_PASSING                        59
1813 #define SND_BUG_MOVING                          60
1814 #define SND_BUG_WAITING                         61
1815 #define SND_SPACESHIP_MOVING                    62
1816 #define SND_SPACESHIP_WAITING                   63
1817 #define SND_YAMYAM_MOVING                       64
1818 #define SND_YAMYAM_WAITING                      65
1819 #define SND_YAMYAM_EATING                       66
1820 #define SND_ROBOT_STEPPING                      67
1821 #define SND_ROBOT_WAITING                       68
1822 #define SND_ROBOT_WHEEL_ACTIVATING              69
1823 #define SND_ROBOT_WHEEL_ACTIVE                  70
1824 #define SND_MAGIC_WALL_ACTIVATING               71
1825 #define SND_MAGIC_WALL_ACTIVE                   72
1826 #define SND_MAGIC_WALL_CHANGING                 73
1827 #define SND_AMOEBA_WAITING                      74
1828 #define SND_AMOEBA_CREATING                     75
1829 #define SND_AMOEBA_DROP_CREATING                76
1830 #define SND_ACID_SPLASHING                      77
1831 #define SND_QUICKSAND_FILLING                   78
1832 #define SND_QUICKSAND_SLIPPING                  79
1833 #define SND_QUICKSAND_EMPTYING                  80
1834 #define SND_EXIT_OPENING                        81
1835 #define SND_EXIT_PASSING                        82
1836 #define SND_BALLOON_MOVING                      83
1837 #define SND_BALLOON_WAITING                     84
1838 #define SND_BALLOON_PUSHING                     85
1839 #define SND_BALLOON_SWITCH_ACTIVATING           86
1840 #define SND_SPRING_MOVING                       87
1841 #define SND_SPRING_PUSHING                      88
1842 #define SND_SPRING_IMPACT                       89
1843 #define SND_WALL_GROWING                        90
1844 #define SND_PEARL_COLLECTING                    91
1845 #define SND_PEARL_BREAKING                      92
1846 #define SND_PEARL_IMPACT                        93
1847 #define SND_CRYSTAL_COLLECTING                  94
1848 #define SND_CRYSTAL_IMPACT                      95
1849 #define SND_ENVELOPE_COLLECTING                 96
1850 #define SND_SAND_INVISIBLE_DIGGING              97
1851 #define SND_SHIELD_NORMAL_COLLECTING            98
1852 #define SND_SHIELD_NORMAL_ACTIVE                99
1853 #define SND_SHIELD_DEADLY_COLLECTING            100
1854 #define SND_SHIELD_DEADLY_ACTIVE                101
1855 #define SND_EXTRA_TIME_COLLECTING               102
1856 #define SND_MOLE_MOVING                         103
1857 #define SND_MOLE_WAITING                        104
1858 #define SND_MOLE_EATING                         105
1859 #define SND_SWITCHGATE_SWITCH_ACTIVATING        106
1860 #define SND_SWITCHGATE_OPENING                  107
1861 #define SND_SWITCHGATE_CLOSING                  108
1862 #define SND_SWITCHGATE_PASSING                  109
1863 #define SND_TIMEGATE_WHEEL_ACTIVATING           110
1864 #define SND_TIMEGATE_WHEEL_ACTIVE               111
1865 #define SND_TIMEGATE_OPENING                    112
1866 #define SND_TIMEGATE_CLOSING                    113
1867 #define SND_TIMEGATE_PASSING                    114
1868 #define SND_CONVEYOR_BELT_SWITCH_ACTIVATING     115
1869 #define SND_CONVEYOR_BELT_SWITCH_DEACTIVATING   116
1870 #define SND_CONVEYOR_BELT_ACTIVE                117
1871 #define SND_LIGHT_SWITCH_ACTIVATING             118
1872 #define SND_LIGHT_SWITCH_DEACTIVATING           119
1873 #define SND_DX_BOMB_PUSHING                     120
1874 #define SND_TRAP_INACTIVE_DIGGING               121
1875 #define SND_TRAP_ACTIVATING                     122
1876 #define SND_TUBE_PASSING                        123
1877 #define SND_AMOEBA_TURNING_TO_GEM               124
1878 #define SND_AMOEBA_TURNING_TO_ROCK              125
1879 #define SND_SPEED_PILL_COLLECTING               126
1880 #define SND_DYNABOMB_NR_COLLECTING              127
1881 #define SND_DYNABOMB_SZ_COLLECTING              128
1882 #define SND_DYNABOMB_XL_COLLECTING              129
1883 #define SND_DYNABOMB_DROPPING                   130
1884 #define SND_DYNABOMB_BURNING                    131
1885 #define SND_SATELLITE_MOVING                    132
1886 #define SND_SATELLITE_WAITING                   133
1887 #define SND_SATELLITE_PUSHING                   134
1888 #define SND_LAMP_ACTIVATING                     135
1889 #define SND_LAMP_DEACTIVATING                   136
1890 #define SND_TIME_ORB_FULL_COLLECTING            137
1891 #define SND_TIME_ORB_FULL_IMPACT                138
1892 #define SND_TIME_ORB_EMPTY_PUSHING              139
1893 #define SND_TIME_ORB_EMPTY_IMPACT               140
1894 #define SND_GAMEOFLIFE_WAITING                  141
1895 #define SND_GAMEOFLIFE_CREATING                 142
1896 #define SND_BIOMAZE_WAITING                     143
1897 #define SND_BIOMAZE_CREATING                    144
1898 #define SND_PACMAN_MOVING                       145
1899 #define SND_PACMAN_WAITING                      146
1900 #define SND_PACMAN_EATING                       147
1901 #define SND_DARK_YAMYAM_MOVING                  148
1902 #define SND_DARK_YAMYAM_WAITING                 149
1903 #define SND_DARK_YAMYAM_EATING                  150
1904 #define SND_PENGUIN_MOVING                      151
1905 #define SND_PENGUIN_WAITING                     152
1906 #define SND_PENGUIN_PASSING_EXIT                153
1907 #define SND_PIG_MOVING                          154
1908 #define SND_PIG_WAITING                         155
1909 #define SND_PIG_EATING                          156
1910 #define SND_DRAGON_MOVING                       157
1911 #define SND_DRAGON_WAITING                      158
1912 #define SND_DRAGON_ATTACKING                    159
1913 #define SND_PLAYER_DYING                        160
1914 #define SND_ELEMENT_EXPLODING                   161
1915 #define SND_GAME_STARTING                       162
1916 #define SND_GAME_RUNNING_OUT_OF_TIME            163
1917 #define SND_GAME_LEVELTIME_BONUS                164
1918 #define SND_GAME_LOSING                         165
1919 #define SND_GAME_WINNING                        166
1920 #define SND_MENU_DOOR_OPENING                   167
1921 #define SND_MENU_DOOR_CLOSING                   168
1922 #define SND_MENU_HALL_OF_FAME                   169
1923 #define SND_MENU_INFO_SCREEN                    170
1924
1925 #define NUM_SOUND_FILES                         171
1926
1927
1928 /* values for game_status */
1929 #define EXITGAME                0
1930 #define MAINMENU                1
1931 #define PLAYING                 2
1932 #define LEVELED                 3
1933 #define HELPSCREEN              4
1934 #define CHOOSELEVEL             5
1935 #define TYPENAME                6
1936 #define HALLOFFAME              7
1937 #define SETUP                   8
1938
1939 #define PROGRAM_VERSION_MAJOR   2
1940 #define PROGRAM_VERSION_MINOR   1
1941 #define PROGRAM_VERSION_PATCH   2
1942 #define PROGRAM_VERSION_STRING  "2.1.2"
1943
1944 #define PROGRAM_TITLE_STRING    "Rocks'n'Diamonds"
1945 #define PROGRAM_AUTHOR_STRING   "Holger Schemel"
1946 #define PROGRAM_RIGHTS_STRING   "Copyright ^1995-2002 by"
1947 #define PROGRAM_DOS_PORT_STRING "DOS port done by Guido Schulz"
1948 #define PROGRAM_IDENT_STRING    PROGRAM_VERSION_STRING " " TARGET_STRING
1949 #define WINDOW_TITLE_STRING     PROGRAM_TITLE_STRING " " PROGRAM_IDENT_STRING
1950 #define WINDOW_SUBTITLE_STRING  PROGRAM_RIGHTS_STRING " " PROGRAM_AUTHOR_STRING
1951 #define ICON_TITLE_STRING       PROGRAM_TITLE_STRING
1952 #define UNIX_USERDATA_DIRECTORY ".rocksndiamonds"
1953 #define COOKIE_PREFIX           "ROCKSNDIAMONDS"
1954 #define FILENAME_PREFIX         "Rocks"
1955
1956 #define X11_ICON_FILENAME       "rocks_icon.xbm"
1957 #define X11_ICONMASK_FILENAME   "rocks_iconmask.xbm"
1958 #define MSDOS_POINTER_FILENAME  "mouse.pcx"
1959
1960 /* file version numbers for resource files (levels, tapes, score, setup, etc.)
1961 ** currently supported/known file version numbers:
1962 **      1.0 (old)
1963 **      1.2 (still in use)
1964 **      1.4 (still in use)
1965 **      2.0 (actual)
1966 */
1967 #define FILE_VERSION_1_0        VERSION_IDENT(1,0,0)
1968 #define FILE_VERSION_1_2        VERSION_IDENT(1,2,0)
1969 #define FILE_VERSION_1_4        VERSION_IDENT(1,4,0)
1970 #define FILE_VERSION_2_0        VERSION_IDENT(2,0,0)
1971
1972 /* file version does not change for every program version, but is changed
1973    when new features are introduced that are incompatible with older file
1974    versions, so that they can be treated accordingly */
1975 #define FILE_VERSION_ACTUAL     FILE_VERSION_2_0
1976
1977 #define GAME_VERSION_1_0        FILE_VERSION_1_0
1978 #define GAME_VERSION_1_2        FILE_VERSION_1_2
1979 #define GAME_VERSION_1_4        FILE_VERSION_1_4
1980 #define GAME_VERSION_2_0        FILE_VERSION_2_0
1981
1982 #define GAME_VERSION_ACTUAL     VERSION_IDENT(PROGRAM_VERSION_MAJOR, \
1983                                               PROGRAM_VERSION_MINOR, \
1984                                               PROGRAM_VERSION_PATCH)
1985
1986 /* for DrawGraphicAnimation() [tools.c] and AnimateToon() [cartoons.c] */
1987 #define ANIM_NORMAL             0
1988 #define ANIM_REVERSE            (1 << 0)
1989 #define ANIM_PINGPONG           (1 << 1)
1990 #define ANIM_PINGPONG2          (1 << 2)
1991
1992 /* values for game_emulation */
1993 #define EMU_NONE                0
1994 #define EMU_BOULDERDASH         1
1995 #define EMU_SOKOBAN             2
1996 #define EMU_SUPAPLEX            3
1997
1998 struct HiScore
1999 {
2000   char Name[MAX_PLAYER_NAME_LEN + 1];
2001   int Score;
2002 };
2003
2004 struct PlayerInfo
2005 {
2006   boolean present;              /* player present in level playfield */
2007   boolean connected;            /* player connected (locally or via network) */
2008   boolean active;               /* player (present && connected) */
2009
2010   int index_nr, client_nr, element_nr;
2011
2012   byte action;                  /* action from local input device */
2013   byte effective_action;        /* action acknowledged from network server
2014                                    or summarized over all configured input
2015                                    devices when in single player mode */
2016   byte programmed_action;       /* action forced by game itself (like moving
2017                                    through doors); overrides other actions */
2018
2019   int jx,jy, last_jx,last_jy;
2020   int MovDir, MovPos, GfxPos;
2021   int Frame;
2022
2023   boolean Pushing;
2024   boolean Switching;
2025   boolean LevelSolved, GameOver;
2026   boolean snapped;
2027
2028   int last_move_dir;
2029   int is_moving;
2030
2031   unsigned long move_delay;
2032   int move_delay_value;
2033
2034   unsigned long push_delay;
2035   unsigned long push_delay_value;
2036
2037   int frame_reset_delay;
2038
2039   unsigned long actual_frame_counter;
2040
2041   int score;
2042   int gems_still_needed;
2043   int sokobanfields_still_needed;
2044   int lights_still_needed;
2045   int friends_still_needed;
2046   int key[4];
2047   int dynamite;
2048   int dynabomb_count, dynabomb_size, dynabombs_left, dynabomb_xl;
2049   int shield_passive_time_left;
2050   int shield_active_time_left;
2051 };
2052
2053 struct LevelInfo
2054 {
2055   int file_version;     /* file format version the level is stored with    */
2056   int game_version;     /* game release version the level was created with */
2057
2058   boolean encoding_16bit_field;         /* level contains 16-bit elements  */
2059   boolean encoding_16bit_yamyam;        /* yamyam contains 16-bit elements */
2060   boolean encoding_16bit_amoeba;        /* amoeba contains 16-bit elements */
2061
2062   int fieldx;
2063   int fieldy;
2064   int time;
2065   int gems_needed;
2066   char name[MAX_LEVEL_NAME_LEN + 1];
2067   char author[MAX_LEVEL_AUTHOR_LEN + 1];
2068   int score[LEVEL_SCORE_ELEMENTS];
2069   int yam_content[MAX_ELEMENT_CONTENTS][3][3];
2070   int num_yam_contents;
2071   int amoeba_speed;
2072   int amoeba_content;
2073   int time_magic_wall;
2074   int time_wheel;
2075   int time_light;
2076   int time_timegate;
2077   boolean double_speed;
2078   boolean gravity;
2079   boolean em_slippery_gems;     /* EM style "gems slip from wall" behaviour */
2080 };
2081
2082 struct TapeInfo
2083 {
2084   int file_version;     /* file format version the tape is stored with    */
2085   int game_version;     /* game release version the tape was created with */
2086   int engine_version;   /* game engine version the tape was recorded with */
2087
2088   int level_nr;
2089   unsigned long random_seed;
2090   unsigned long date;
2091   unsigned long counter;
2092   unsigned long length;
2093   unsigned long length_seconds;
2094   unsigned int delay_played;
2095   boolean pause_before_death;
2096   boolean recording, playing, pausing;
2097   boolean fast_forward;
2098   boolean index_search;
2099   boolean quick_resume;
2100   boolean single_step;
2101   boolean changed;
2102   boolean player_participates[MAX_PLAYERS];
2103   int num_participating_players;
2104
2105   struct
2106   {
2107     byte action[MAX_PLAYERS];
2108     byte delay;
2109   } pos[MAX_TAPELEN];
2110 };
2111
2112 struct GameInfo
2113 {
2114   /* constant within running game */
2115   int engine_version;
2116   int emulation;
2117   int initial_move_delay;
2118   int initial_move_delay_value;
2119
2120   /* variable within running game */
2121   int yam_content_nr;
2122   boolean magic_wall_active;
2123   int magic_wall_time_left;
2124   int light_time_left;
2125   int timegate_time_left;
2126   int belt_dir[4];
2127   int belt_dir_nr[4];
2128   int switchgate_pos;
2129   int balloon_dir;
2130   boolean explosions_delayed;
2131 };
2132
2133 struct GlobalInfo
2134 {
2135   float frames_per_second;
2136   boolean fps_slowdown;
2137   int fps_slowdown_factor;
2138 };
2139
2140 struct ElementInfo
2141 {
2142   char *sound_class_name;       /* classification for custom sound effects */
2143   char *editor_description;     /* short description for level editor */
2144
2145   int graphic[NUM_GFX_ACTIONS_MAPPED];
2146
2147                                 /* special graphics for left/right/up/down */
2148   int direction_graphic[NUM_GFX_ACTIONS_MAPPED][4];
2149   boolean has_direction_graphic[NUM_GFX_ACTIONS_MAPPED];
2150 };
2151
2152 struct GraphicInfo
2153 {
2154   Bitmap *bitmap;
2155   int src_x, src_y;
2156 };
2157
2158 struct NewGraphicInfo
2159 {
2160   Bitmap *bitmap;
2161   int src_x, src_y;
2162   int anim_frames;
2163   int anim_delay;
2164   int anim_mode;
2165   boolean anim_global_sync;
2166   boolean anim_vertical;
2167 };
2168
2169 extern GC               tile_clip_gc;
2170 extern Bitmap          *pix[];
2171 extern Pixmap           tile_clipmask[];
2172 extern DrawBuffer      *fieldbuffer;
2173 extern DrawBuffer      *drawto_field;
2174
2175 extern int              game_status;
2176 extern boolean          level_editor_test_game;
2177 extern boolean          network_playing;
2178
2179 extern int              key_joystick_mapping;
2180
2181 extern boolean          redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
2182 extern int              redraw_x1, redraw_y1;
2183
2184 extern short            Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2185 extern short            Ur[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2186 extern short            MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2187 extern short            MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2188 extern short            MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2189 extern short            Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2190 extern short            Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2191 extern short            StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2192 extern short            Frame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2193 extern boolean          Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2194 extern short            JustStopped[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2195 extern short            AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2196 extern short            AmoebaCnt[MAX_NUM_AMOEBA], AmoebaCnt2[MAX_NUM_AMOEBA];
2197 extern short            ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
2198 extern unsigned long    Elementeigenschaften1[MAX_ELEMENTS];
2199 extern unsigned long    Elementeigenschaften2[MAX_ELEMENTS];
2200
2201 extern int              lev_fieldx,lev_fieldy, scroll_x,scroll_y;
2202
2203 extern int              FX,FY, ScrollStepSize;
2204 extern int              ScreenMovDir, ScreenMovPos, ScreenGfxPos;
2205 extern int              BorderElement;
2206 extern int              GameFrameDelay;
2207 extern int              FfwdFrameDelay;
2208 extern int              BX1,BY1, BX2,BY2;
2209 extern int              SBX_Left, SBX_Right;
2210 extern int              SBY_Upper, SBY_Lower;
2211 extern int              ZX,ZY, ExitX,ExitY;
2212 extern int              AllPlayersGone;
2213
2214 extern int              TimeFrames, TimePlayed, TimeLeft;
2215 extern boolean          SiebAktiv;
2216 extern int              SiebCount;
2217
2218 extern boolean          network_player_action_received;
2219
2220 extern struct LevelInfo         level;
2221 extern struct PlayerInfo        stored_player[], *local_player;
2222 extern struct HiScore           highscore[];
2223 extern struct TapeInfo          tape;
2224 extern struct GameInfo          game;
2225 extern struct GlobalInfo        global;
2226 extern struct ElementInfo       element_info[];
2227 extern struct GraphicInfo       graphic_info[];
2228 extern struct NewGraphicInfo    new_graphic_info[];
2229 extern struct ConfigInfo        image_config[], sound_config[];
2230 extern struct ConfigInfo        image_config_suffix[], sound_config_suffix[];
2231 extern struct FileInfo         *image_files, *sound_files;
2232
2233 #endif  /* MAIN_H */