1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
12 #include "libgame/libgame.h"
23 Bitmap *bitmap_db_field;
24 Bitmap *bitmap_db_panel;
25 Bitmap *bitmap_db_door_1;
26 Bitmap *bitmap_db_door_2;
27 Bitmap *bitmap_db_store_1;
28 Bitmap *bitmap_db_store_2;
29 DrawBuffer *fieldbuffer;
30 DrawBuffer *drawto_field;
33 boolean game_status_last_screen = -1;
34 boolean level_editor_test_game = FALSE;
35 boolean network_playing = FALSE;
37 #if defined(TARGET_SDL)
38 boolean network_server = FALSE;
39 SDL_Thread *server_thread;
42 int key_joystick_mapping = 0;
44 short Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
48 short ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
49 short ChangePage[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
50 short CustomValue[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
51 short Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
52 short Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
53 short StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
54 short Back[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 boolean Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
56 boolean Pushed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
57 short ChangeCount[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
58 short ChangeEvent[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short WasJustMoving[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
60 short WasJustFalling[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
61 short CheckCollision[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
62 short CheckImpact[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
63 short AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
64 short AmoebaCnt[MAX_NUM_AMOEBA];
65 short AmoebaCnt2[MAX_NUM_AMOEBA];
66 short ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
67 short ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
68 short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
69 int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
70 int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
72 int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
73 int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
74 int GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
75 int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
76 int GfxDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
77 int GfxRedraw[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
79 int ActiveElement[MAX_NUM_ELEMENTS];
80 int ActiveButton[NUM_IMAGE_FILES];
81 int ActiveFont[NUM_FONTS];
83 int lev_fieldx, lev_fieldy;
84 int scroll_x, scroll_y;
86 int WIN_XSIZE = WIN_XSIZE_DEFAULT;
87 int WIN_YSIZE = WIN_YSIZE_DEFAULT;
89 int SCR_FIELDX = SCR_FIELDX_DEFAULT;
90 int SCR_FIELDY = SCR_FIELDY_DEFAULT;
92 int REAL_SX = 6, REAL_SY = 6;
94 int DX = 566, DY = 60;
95 int VX = 566, VY = 400;
96 int EX = 566, EY = 356;
99 int FULL_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
100 int FULL_SYSIZE = 2 + SYSIZE_DEFAULT + 2;
101 int SXSIZE = SXSIZE_DEFAULT;
102 int SYSIZE = SYSIZE_DEFAULT;
104 int FADE_SX = 6, FADE_SY = 6;
105 int FADE_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
106 int FADE_SYSIZE = 2 + SXSIZE_DEFAULT + 2;
114 int TILESIZE_VAR = TILESIZE;
118 int ScreenMovDir = MV_NONE, ScreenMovPos = 0;
119 int ScreenGfxPos = 0;
120 int BorderElement = EL_STEELWALL;
121 int MenuFrameDelay = MENU_FRAME_DELAY;
122 int GameFrameDelay = GAME_FRAME_DELAY;
123 int FfwdFrameDelay = FFWD_FRAME_DELAY;
126 int SBX_Left, SBX_Right;
127 int SBY_Upper, SBY_Lower;
132 int TimeFrames, TimePlayed, TimeLeft, TapeTime;
134 boolean network_player_action_received = FALSE;
136 struct LevelSetInfo levelset;
137 struct LevelInfo level, level_template;
138 struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
139 struct HiScore highscore[MAX_SCORE_ENTRIES];
140 struct TapeInfo tape;
141 struct SetupInfo setup;
142 struct GameInfo game;
143 struct GlobalInfo global;
144 struct BorderInfo border;
145 struct ViewportInfo viewport;
146 struct TitleFadingInfo fading;
147 struct TitleFadingInfo title_initial_first_default;
148 struct TitleFadingInfo title_initial_default;
149 struct TitleFadingInfo title_first_default;
150 struct TitleFadingInfo title_default;
151 struct TitleMessageInfo titlescreen_initial_first_default;
152 struct TitleMessageInfo titlescreen_initial_first[MAX_NUM_TITLE_IMAGES];
153 struct TitleMessageInfo titlescreen_initial_default;
154 struct TitleMessageInfo titlescreen_initial[MAX_NUM_TITLE_IMAGES];
155 struct TitleMessageInfo titlescreen_first_default;
156 struct TitleMessageInfo titlescreen_first[MAX_NUM_TITLE_IMAGES];
157 struct TitleMessageInfo titlescreen_default;
158 struct TitleMessageInfo titlescreen[MAX_NUM_TITLE_IMAGES];
159 struct TitleMessageInfo titlemessage_initial_first_default;
160 struct TitleMessageInfo titlemessage_initial_first[MAX_NUM_TITLE_MESSAGES];
161 struct TitleMessageInfo titlemessage_initial_default;
162 struct TitleMessageInfo titlemessage_initial[MAX_NUM_TITLE_MESSAGES];
163 struct TitleMessageInfo titlemessage_first_default;
164 struct TitleMessageInfo titlemessage_first[MAX_NUM_TITLE_MESSAGES];
165 struct TitleMessageInfo titlemessage_default;
166 struct TitleMessageInfo titlemessage[MAX_NUM_TITLE_MESSAGES];
167 struct TitleMessageInfo readme;
168 struct InitInfo init, init_last;
169 struct MenuInfo menu;
170 struct DoorInfo door_1, door_2;
171 struct RequestInfo request;
172 struct PreviewInfo preview;
173 struct EditorInfo editor;
175 struct GraphicInfo *graphic_info = NULL;
176 struct SoundInfo *sound_info = NULL;
177 struct MusicInfo *music_info = NULL;
178 struct MusicFileInfo *music_file_info = NULL;
179 struct HelpAnimInfo *helpanim_info = NULL;
181 SetupFileHash *helptext_info = NULL;
182 SetupFileHash *image_config_hash = NULL;
183 SetupFileHash *element_token_hash = NULL;
184 SetupFileHash *graphic_token_hash = NULL;
185 SetupFileHash *font_token_hash = NULL;
186 SetupFileHash *hide_setup_hash = NULL;
189 /* ------------------------------------------------------------------------- */
190 /* element definitions */
191 /* ------------------------------------------------------------------------- */
193 struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1];
195 /* this contains predefined structure elements to initialize "element_info" */
196 struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
198 /* keyword to start parser: "ELEMENT_INFO_START" <-- do not change! */
200 /* ----------------------------------------------------------------------- */
201 /* "real" level file elements */
202 /* ----------------------------------------------------------------------- */
252 "bug (random start direction)"
257 "spaceship (random start direction)"
262 "yam yam (random start direction)"
292 "quicksand (with rock)"
322 "dropping amoeba (EM style)"
337 "Conway's wall of life"
360 "robot_wheel.active",
362 "magic wheel (running)"
407 "gray door (opened by key 1)"
412 "gray door (opened by key 2)"
417 "gray door (opened by key 3)"
422 "gray door (opened by key 4)"
432 "pac man (random start direction)"
437 "invisible normal wall"
462 "amoeba with content"
482 "growing wall (horizontal, visible)"
497 "wall with BD style diamond"
500 "wall_emerald_yellow",
502 "wall with yellow emerald"
512 "magic wall (BD style)"
515 "invisible_steelwall",
517 "invisible steel wall"
520 "sokoban_field_player",
522 "sokoban field with player"
525 "dynabomb_increase_number",
527 "increases number of bombs"
530 "dynabomb_increase_size",
532 "increases explosion size"
535 "dynabomb_increase_power",
537 "increases power of explosion"
545 "sokoban_field_empty",
547 "sokoban empty field"
550 "sokoban_field_full",
552 "sokoban field with object"
555 "bd_butterfly.right",
557 "butterfly (starts moving right)"},
561 "butterfly (starts moving up)"
566 "butterfly (starts moving left)"},
570 "butterfly (starts moving down)"},
574 "firefly (starts moving right)"
579 "firefly (starts moving up)"
584 "firefly (starts moving left)"
589 "firefly (starts moving down)"
594 "butterfly (random start direction)"
599 "firefly (random start direction)"
624 "bug (starts moving right)"
629 "bug (starts moving up)"
634 "bug (starts moving left)"
639 "bug (starts moving down)"
644 "spaceship (starts moving right)"},
648 "spaceship (starts moving up)"
653 "spaceship (starts moving left)"},
657 "spaceship (starts moving down)"},
661 "pac man (starts moving right)"
666 "pac man (starts moving up)"
671 "pac man (starts moving left)"
676 "pac man (starts moving down)"
691 "wall with red emerald"
694 "wall_emerald_purple",
696 "wall with purple emerald"
701 "acid pool (top left)"
704 "acid_pool_topright",
706 "acid pool (top right)"
709 "acid_pool_bottomleft",
711 "acid pool (bottom left)"
719 "acid_pool_bottomright",
721 "acid pool (bottom right)"
726 "normal wall (BD style)"
751 "mole (random start direction)"
791 "fire breathing dragon"
794 "em_key_1_file_obsolete",
1104 "char_bracketright",
1199 "expandable_wall_horizontal",
1201 "growing wall (horizontal)"
1204 "expandable_wall_vertical",
1206 "growing wall (vertical)"
1209 "expandable_wall_any",
1211 "growing wall (any direction)"
1234 "em_key_2_file_obsolete",
1239 "em_key_3_file_obsolete",
1244 "em_key_4_file_obsolete",
1296 "port (leading right)"
1301 "port (leading down)"
1306 "port (leading left)"
1314 "sp_gravity_port_right",
1316 "gravity-on/off port (leading right)"
1319 "sp_gravity_port_down",
1321 "gravity-on/off port (leading down)"
1324 "sp_gravity_port_left",
1326 "gravity-on/off port (leading left)"
1329 "sp_gravity_port_up",
1331 "gravity-on/off port (leading up)"
1359 "sp_port_horizontal",
1366 "port (any direction)"
1389 "sp_hardware_base_1",
1394 "sp_hardware_green",
1409 "sp_hardware_yellow",
1414 "sp_hardware_base_2",
1419 "sp_hardware_base_3",
1424 "sp_hardware_base_4",
1429 "sp_hardware_base_5",
1434 "sp_hardware_base_6",
1451 "gray door (EM style, key 1)"
1456 "gray door (EM style, key 2)"
1461 "gray door (EM style, key 3)"
1466 "gray door (EM style, key 4)"
1471 "dynamite (EM style)"
1474 "em_dynamite.active",
1476 "burning dynamite (EM style)"
1504 "dc_gate_white_gray",
1506 "gray door (opened by white key)"
1526 "switch gate (open)"
1529 "switchgate_closed",
1531 "switch gate (closed)"
1534 "switchgate_switch_up",
1535 "switchgate_switch",
1536 "switch for switch gate"
1539 "switchgate_switch_down",
1540 "switchgate_switch",
1541 "switch for switch gate"
1554 "conveyor_belt_1_left",
1556 "conveyor belt 1 (left)"
1559 "conveyor_belt_1_middle",
1561 "conveyor belt 1 (middle)"
1564 "conveyor_belt_1_right",
1566 "conveyor belt 1 (right)"
1569 "conveyor_belt_1_switch_left",
1570 "conveyor_belt_switch",
1571 "switch for conveyor belt 1 (left)"
1574 "conveyor_belt_1_switch_middle",
1575 "conveyor_belt_switch",
1576 "switch for conveyor belt 1 (middle)"
1579 "conveyor_belt_1_switch_right",
1580 "conveyor_belt_switch",
1581 "switch for conveyor belt 1 (right)"
1584 "conveyor_belt_2_left",
1586 "conveyor belt 2 (left)"
1589 "conveyor_belt_2_middle",
1591 "conveyor belt 2 (middle)"
1594 "conveyor_belt_2_right",
1596 "conveyor belt 2 (right)"
1599 "conveyor_belt_2_switch_left",
1600 "conveyor_belt_switch",
1601 "switch for conveyor belt 2 (left)"
1604 "conveyor_belt_2_switch_middle",
1605 "conveyor_belt_switch",
1606 "switch for conveyor belt 2 (middle)"
1609 "conveyor_belt_2_switch_right",
1610 "conveyor_belt_switch",
1611 "switch for conveyor belt 2 (right)"
1614 "conveyor_belt_3_left",
1616 "conveyor belt 3 (left)"
1619 "conveyor_belt_3_middle",
1621 "conveyor belt 3 (middle)"
1624 "conveyor_belt_3_right",
1626 "conveyor belt 3 (right)"
1629 "conveyor_belt_3_switch_left",
1630 "conveyor_belt_switch",
1631 "switch for conveyor belt 3 (left)"
1634 "conveyor_belt_3_switch_middle",
1635 "conveyor_belt_switch",
1636 "switch for conveyor belt 3 (middle)"
1639 "conveyor_belt_3_switch_right",
1640 "conveyor_belt_switch",
1641 "switch for conveyor belt 3 (right)"
1644 "conveyor_belt_4_left",
1646 "conveyor belt 4 (left)"
1649 "conveyor_belt_4_middle",
1651 "conveyor belt 4 (middle)"
1654 "conveyor_belt_4_right",
1656 "conveyor belt 4 (right)"
1659 "conveyor_belt_4_switch_left",
1660 "conveyor_belt_switch",
1661 "switch for conveyor belt 4 (left)"
1664 "conveyor_belt_4_switch_middle",
1665 "conveyor_belt_switch",
1666 "switch for conveyor belt 4 (middle)"
1669 "conveyor_belt_4_switch_right",
1670 "conveyor_belt_switch",
1671 "switch for conveyor belt 4 (right)"
1676 "land mine (not removable)"
1679 "envelope_obsolete",
1681 "envelope (OBSOLETE)"
1686 "light switch (off)"
1689 "light_switch.active",
1696 "sign (exclamation)"
1699 "sign_radioactivity",
1701 "sign (radio activity)"
1711 "sign (wheel chair)"
1734 "sign_entry_forbidden",
1736 "sign (entry forbidden)"
1739 "sign_emergency_exit",
1741 "sign (emergency exit)"
1756 "mole (starts moving left)"
1761 "mole (starts moving right)"
1766 "mole (starts moving up)"
1771 "mole (starts moving down)"
1774 "steelwall_slippery",
1776 "slippery steel wall"
1786 "dx unknown element 15"
1791 "dx unknown element 42"
1806 "shield (deadly, kills enemies)"
1816 "time gate (closed)"
1819 "timegate_switch.active",
1821 "switch for time gate"
1826 "switch for time gate"
1834 "balloon_switch_left",
1836 "wind switch (left)"
1839 "balloon_switch_right",
1841 "wind switch (right)"
1844 "balloon_switch_up",
1849 "balloon_switch_down",
1851 "wind switch (down)"
1854 "balloon_switch_any",
1856 "wind switch (any direction)"
1921 "tube (any direction)"
1934 "tube_vertical_left",
1936 "tube (vertical & left)"
1939 "tube_vertical_right",
1941 "tube (vertical & right)"
1944 "tube_horizontal_up",
1946 "tube (horizontal & up)"
1949 "tube_horizontal_down",
1951 "tube (horizontal & down)"
1961 "tube (left & down)"
1971 "tube (right & down)"
1986 "stable bomb (DX style)"
2496 "custom element 100"
2501 "custom element 101"
2506 "custom element 102"
2511 "custom element 103"
2516 "custom element 104"
2521 "custom element 105"
2526 "custom element 106"
2531 "custom element 107"
2536 "custom element 108"
2541 "custom element 109"
2546 "custom element 110"
2551 "custom element 111"
2556 "custom element 112"
2561 "custom element 113"
2566 "custom element 114"
2571 "custom element 115"
2576 "custom element 116"
2581 "custom element 117"
2586 "custom element 118"
2591 "custom element 119"
2596 "custom element 120"
2601 "custom element 121"
2606 "custom element 122"
2611 "custom element 123"
2616 "custom element 124"
2621 "custom element 125"
2626 "custom element 126"
2631 "custom element 127"
2636 "custom element 128"
2641 "custom element 129"
2646 "custom element 130"
2651 "custom element 131"
2656 "custom element 132"
2661 "custom element 133"
2666 "custom element 134"
2671 "custom element 135"
2676 "custom element 136"
2681 "custom element 137"
2686 "custom element 138"
2691 "custom element 139"
2696 "custom element 140"
2701 "custom element 141"
2706 "custom element 142"
2711 "custom element 143"
2716 "custom element 144"
2721 "custom element 145"
2726 "custom element 146"
2731 "custom element 147"
2736 "custom element 148"
2741 "custom element 149"
2746 "custom element 150"
2751 "custom element 151"
2756 "custom element 152"
2761 "custom element 153"
2766 "custom element 154"
2771 "custom element 155"
2776 "custom element 156"
2781 "custom element 157"
2786 "custom element 158"
2791 "custom element 159"
2796 "custom element 160"
2801 "custom element 161"
2806 "custom element 162"
2811 "custom element 163"
2816 "custom element 164"
2821 "custom element 165"
2826 "custom element 166"
2831 "custom element 167"
2836 "custom element 168"
2841 "custom element 169"
2846 "custom element 170"
2851 "custom element 171"
2856 "custom element 172"
2861 "custom element 173"
2866 "custom element 174"
2871 "custom element 175"
2876 "custom element 176"
2881 "custom element 177"
2886 "custom element 178"
2891 "custom element 179"
2896 "custom element 180"
2901 "custom element 181"
2906 "custom element 182"
2911 "custom element 183"
2916 "custom element 184"
2921 "custom element 185"
2926 "custom element 186"
2931 "custom element 187"
2936 "custom element 188"
2941 "custom element 189"
2946 "custom element 190"
2951 "custom element 191"
2956 "custom element 192"
2961 "custom element 193"
2966 "custom element 194"
2971 "custom element 195"
2976 "custom element 196"
2981 "custom element 197"
2986 "custom element 198"
2991 "custom element 199"
2996 "custom element 200"
3001 "custom element 201"
3006 "custom element 202"
3011 "custom element 203"
3016 "custom element 204"
3021 "custom element 205"
3026 "custom element 206"
3031 "custom element 207"
3036 "custom element 208"
3041 "custom element 209"
3046 "custom element 210"
3051 "custom element 211"
3056 "custom element 212"
3061 "custom element 213"
3066 "custom element 214"
3071 "custom element 215"
3076 "custom element 216"
3081 "custom element 217"
3086 "custom element 218"
3091 "custom element 219"
3096 "custom element 220"
3101 "custom element 221"
3106 "custom element 222"
3111 "custom element 223"
3116 "custom element 224"
3121 "custom element 225"
3126 "custom element 226"
3131 "custom element 227"
3136 "custom element 228"
3141 "custom element 229"
3146 "custom element 230"
3151 "custom element 231"
3156 "custom element 232"
3161 "custom element 233"
3166 "custom element 234"
3171 "custom element 235"
3176 "custom element 236"
3181 "custom element 237"
3186 "custom element 238"
3191 "custom element 239"
3196 "custom element 240"
3201 "custom element 241"
3206 "custom element 242"
3211 "custom element 243"
3216 "custom element 244"
3221 "custom element 245"
3226 "custom element 246"
3231 "custom element 247"
3236 "custom element 248"
3241 "custom element 249"
3246 "custom element 250"
3251 "custom element 251"
3256 "custom element 252"
3261 "custom element 253"
3266 "custom element 254"
3271 "custom element 255"
3276 "custom element 256"
3486 "element triggering change"
3491 "player triggering change"
3494 "sp_gravity_on_port_right",
3495 "sp_gravity_on_port",
3496 "gravity-on port (leading right)"
3499 "sp_gravity_on_port_down",
3500 "sp_gravity_on_port",
3501 "gravity-on port (leading down)"
3504 "sp_gravity_on_port_left",
3505 "sp_gravity_on_port",
3506 "gravity-on port (leading left)"
3509 "sp_gravity_on_port_up",
3510 "sp_gravity_on_port",
3511 "gravity-on port (leading up)"
3514 "sp_gravity_off_port_right",
3515 "sp_gravity_off_port",
3516 "gravity-off port (leading right)"
3519 "sp_gravity_off_port_down",
3520 "sp_gravity_off_port",
3521 "gravity-off port (leading down)"
3524 "sp_gravity_off_port_left",
3525 "sp_gravity_off_port",
3526 "gravity-off port (leading left)"
3529 "sp_gravity_off_port_up",
3530 "sp_gravity_off_port",
3531 "gravity-off port (leading up)"
3534 "balloon_switch_none",
3541 "door 5 (EMC style)",
3546 "door 6 (EMC style)",
3551 "door 7 (EMC style)",
3556 "door 8 (EMC style)",
3561 "gray door (EMC style, key 5)",
3566 "gray door (EMC style, key 6)",
3571 "gray door (EMC style, key 7)",
3576 "gray door (EMC style, key 8)",
3581 "key 5 (EMC style)",
3586 "key 6 (EMC style)",
3591 "key 7 (EMC style)",
3596 "key 8 (EMC style)",
3614 "emc_magic_ball.active",
3616 "magic ball (activated)",
3619 "emc_magic_ball_switch",
3620 "emc_magic_ball_switch",
3621 "magic ball switch (off)",
3624 "emc_magic_ball_switch.active",
3625 "emc_magic_ball_switch",
3626 "magic ball switch (on)",
3629 "emc_spring_bumper",
3630 "emc_spring_bumper",
3689 "emc_wall_slippery_1",
3694 "emc_wall_slippery_2",
3699 "emc_wall_slippery_3",
3704 "emc_wall_slippery_4",
3726 "CE value of element triggering change"
3731 "CE score of element triggering change"
3736 "CE value of current element"
3741 "CE score of current element"
3746 "yam yam (starts moving left)"
3751 "yam yam (starts moving right)"
3756 "yam yam (starts moving up)"
3761 "yam yam (starts moving down)"
3764 "bd_expandable_wall",
3766 "growing wall (horizontal, BD style)"
3771 "CE 8 positions earlier in list"
3776 "CE 7 positions earlier in list"
3781 "CE 6 positions earlier in list"
3786 "CE 5 positions earlier in list"
3791 "CE 4 positions earlier in list"
3796 "CE 3 positions earlier in list"
3801 "CE 2 positions earlier in list"
3806 "CE 1 position earlier in list"
3811 "the current custom element"
3816 "CE 1 position later in list"
3821 "CE 2 positions later in list"
3826 "CE 3 positions later in list"
3831 "CE 4 positions later in list"
3836 "CE 5 positions later in list"
3841 "CE 6 positions later in list"
3846 "CE 7 positions later in list"
3851 "CE 8 positions later in list"
3856 "this element matches any element"
3864 "steel_char_exclam",
3869 "steel_char_quotedbl",
3874 "steel_char_numbersign",
3879 "steel_char_dollar",
3884 "steel_char_percent",
3889 "steel_char_ampersand",
3894 "steel_char_apostrophe",
3899 "steel_char_parenleft",
3904 "steel_char_parenright",
3909 "steel_char_asterisk",
3929 "steel_char_period",
3994 "steel_char_semicolon",
4009 "steel_char_greater",
4014 "steel_char_question",
4154 "steel_char_bracketleft",
4159 "steel_char_backslash",
4164 "steel_char_bracketright",
4169 "steel_char_asciicircum",
4174 "steel_char_underscore",
4179 "steel_char_copyright",
4181 "steel letter '\xa9'"
4184 "steel_char_aumlaut",
4186 "steel letter '\xc4'"
4189 "steel_char_oumlaut",
4191 "steel letter '\xd6'"
4194 "steel_char_uumlaut",
4196 "steel letter '\xdc'"
4199 "steel_char_degree",
4201 "steel letter '\xb0'"
4204 "steel_char_trademark",
4206 "steel letter '\xae'"
4209 "steel_char_cursor",
4211 "steel letter '\xa0'"
4214 "steel_char_unused",
4219 "steel_char_unused",
4224 "steel_char_unused",
4229 "steel_char_unused",
4234 "steel_char_unused",
4239 "steel_char_unused",
4244 "steel_char_unused",
4246 "steel letter 'button'"
4249 "steel_char_unused",
4254 "steel_char_unused",
4256 "steel letter 'down'"
4309 "steel_exit_closed",
4319 "dc_steelwall_1_left",
4324 "dc_steelwall_1_right",
4326 "steel wall (right)"
4329 "dc_steelwall_1_top",
4334 "dc_steelwall_1_bottom",
4336 "steel wall (bottom)"
4339 "dc_steelwall_1_horizontal",
4341 "steel wall (top/bottom)"
4344 "dc_steelwall_1_vertical",
4346 "steel wall (left/right)"
4349 "dc_steelwall_1_topleft",
4351 "steel wall (top/left)"
4354 "dc_steelwall_1_topright",
4356 "steel wall (top/right)"
4359 "dc_steelwall_1_bottomleft",
4361 "steel wall (bottom/left)"
4364 "dc_steelwall_1_bottomright",
4366 "steel wall (bottom/right)"
4369 "dc_steelwall_1_topleft_2",
4371 "steel wall (top/left corner)"
4374 "dc_steelwall_1_topright_2",
4376 "steel wall (top/right corner)"
4379 "dc_steelwall_1_bottomleft_2",
4381 "steel wall (bottom/left corner)"
4384 "dc_steelwall_1_bottomright_2",
4386 "steel wall (bottom/right corner)"
4389 "dc_steelwall_2_left",
4394 "dc_steelwall_2_right",
4396 "steel wall (right)"
4399 "dc_steelwall_2_top",
4404 "dc_steelwall_2_bottom",
4406 "steel wall (bottom)"
4409 "dc_steelwall_2_horizontal",
4411 "steel wall (horizontal)"
4414 "dc_steelwall_2_vertical",
4416 "steel wall (vertical)"
4419 "dc_steelwall_2_middle",
4421 "steel wall (middle)"
4424 "dc_steelwall_2_single",
4426 "steel wall (single)"
4429 "dc_switchgate_switch_up",
4430 "switchgate_switch",
4431 "switch for switch gate (steel)"
4434 "dc_switchgate_switch_down",
4435 "switchgate_switch",
4436 "switch for switch gate (steel)"
4439 "dc_timegate_switch",
4441 "switch for time gate (steel)"
4444 "dc_timegate_switch.active",
4446 "switch for time gate (steel)"
4451 "land mine (DC style, removable)"
4454 "expandable_steelwall",
4456 "growing steel wall"
4459 "expandable_steelwall_horizontal",
4461 "growing steel wall (horizontal)"
4464 "expandable_steelwall_vertical",
4466 "growing steel wall (vertical)"
4469 "expandable_steelwall_any",
4471 "growing steel wall (any direction)"
4476 "closed exit (EM style)"
4481 "open exit (EM style)"
4484 "em_steel_exit_closed",
4486 "closed steel exit (EM style)"
4489 "em_steel_exit_open",
4491 "open steel exit (EM style)"
4494 "dc_gate_fake_gray",
4496 "gray door (opened by no key)"
4501 "magic wall (DC style)"
4504 "quicksand_fast_empty",
4506 "fast quicksand (empty)"
4509 "quicksand_fast_full",
4511 "fast quicksand (with rock)"
4514 "from_level_template",
4515 "from_level_template",
4516 "element taken from level template"
4531 "mirror (11.25\xb0)"
4541 "mirror (33.75\xb0)"
4551 "mirror (56.25\xb0)"
4561 "mirror (78.75\xb0)"
4571 "mirror (101.25\xb0)"
4576 "mirror (112.5\xb0)"
4581 "mirror (123.75\xb0)"
4591 "mirror (146.25\xb0)"
4596 "mirror (157.5\xb0)"
4601 "mirror (168.75\xb0)"
4604 "mm_steel_grid_fixed_1",
4605 "mm_steel_grid_fixed",
4606 "fixed steel polarizer (0\xb0)"
4609 "mm_steel_grid_fixed_2",
4610 "mm_steel_grid_fixed",
4611 "fixed steel polarizer (90\xb0)"
4614 "mm_steel_grid_fixed_3",
4615 "mm_steel_grid_fixed",
4616 "fixed steel polarizer (45\xb0)"
4619 "mm_steel_grid_fixed_4",
4620 "mm_steel_grid_fixed",
4621 "fixed steel polarizer (135\xb0)"
4624 "mm_mcduffin.right",
4626 "Gregor McDuffin (looking right)"
4631 "Gregor McDuffin (looking up)"
4636 "Gregor McDuffin (looking left)"
4641 "Gregor McDuffin (looking down)"
4646 "closed exit (MM style)"
4649 "mm_exit_opening_1",
4654 "mm_exit_opening_2",
4661 "open exit (MM style)"
4804 "mm_wooden_wall_10",
4809 "mm_wooden_wall_11",
4814 "mm_wooden_wall_12",
4819 "mm_wooden_wall_13",
4824 "mm_wooden_wall_14",
4829 "mm_wooden_wall_15",
4834 "mm_wooden_wall_16",
4964 "mm_amoeba_wall_10",
4969 "mm_amoeba_wall_11",
4974 "mm_amoeba_wall_12",
4979 "mm_amoeba_wall_13",
4984 "mm_amoeba_wall_14",
4989 "mm_amoeba_wall_15",
4994 "mm_amoeba_wall_16",
5011 "teleporter (0\xb0)"
5016 "teleporter (22.5\xb0)"
5021 "teleporter (45\xb0)"
5026 "teleporter (67.5\xb0)"
5031 "teleporter (90\xb0)"
5036 "teleporter (112.5\xb0)"
5041 "teleporter (135\xb0)"
5046 "teleporter (157.5\xb0)"
5051 "teleporter (180\xb0)"
5056 "teleporter (202.5\xb0)"
5061 "teleporter (225\xb0)"
5066 "teleporter (247.5\xb0)"
5071 "teleporter (270\xb0)"
5076 "teleporter (292.5\xb0)"
5081 "teleporter (315\xb0)"
5086 "teleporter (337.5\xb0)"
5096 "pac man (starts moving right)"
5101 "pac man (starts moving up)"
5106 "pac man (starts moving left)"
5111 "pac man (starts moving down)"
5121 "polarizer (11.25\xb0)"
5126 "polarizer (22.5\xb0)"
5131 "polarizer (33.75\xb0)"
5136 "polarizer (45\xb0)"
5141 "polarizer (56.25\xb0)"
5146 "polarizer (67.5\xb0)"
5151 "polarizer (78.75\xb0)"
5156 "polarizer (90\xb0)"
5161 "polarizer (101.25\xb0)"
5166 "polarizer (112.5\xb0)"
5171 "polarizer (123.75\xb0)"
5176 "polarizer (135\xb0)"
5181 "polarizer (146.25\xb0)"
5186 "polarizer (157.5\xb0)"
5191 "polarizer (168.75\xb0)"
5194 "mm_polarizer_cross_1",
5195 "mm_polarizer_cross",
5196 "two-way polarizer (0\xb0)"
5199 "mm_polarizer_cross_2",
5200 "mm_polarizer_cross",
5201 "two-way polarizer (22.5\xb0)"
5204 "mm_polarizer_cross_3",
5205 "mm_polarizer_cross",
5206 "two-way polarizer (45\xb0)"
5209 "mm_polarizer_cross_4",
5210 "mm_polarizer_cross",
5211 "two-way polarizer (67.5\xb0)"
5214 "mm_mirror_fixed_1",
5216 "fixed mirror (0\xb0)"
5219 "mm_mirror_fixed_2",
5221 "fixed mirror (0\xb0)"
5224 "mm_mirror_fixed_3",
5226 "fixed mirror (0\xb0)"
5229 "mm_mirror_fixed_4",
5231 "fixed mirror (0\xb0)"
5249 "mm_lightbulb.active",
5271 "extra energy ball (full)"
5274 "mm_wooden_grid_fixed_1",
5275 "mm_wooden_grid_fixed",
5276 "fixed wooden polarizer (0\xb0)"
5279 "mm_wooden_grid_fixed_2",
5280 "mm_wooden_grid_fixed",
5281 "fixed wooden polarizer (90\xb0)"
5284 "mm_wooden_grid_fixed_3",
5285 "mm_wooden_grid_fixed",
5286 "fixed wooden polarizer (45\xb0)"
5289 "mm_wooden_grid_fixed_4",
5290 "mm_wooden_grid_fixed",
5291 "fixed wooden polarizer (135\xb0)"
5296 "extra energy ball (empty)"
5321 "mirror (DF style) (0\xb0)"
5326 "mirror (DF style) (11.25\xb0)"
5331 "mirror (DF style) (22.5\xb0)"
5336 "mirror (DF style) (33.75\xb0)"
5341 "mirror (DF style) (45\xb0)"
5346 "mirror (DF style) (56.25\xb0)"
5351 "mirror (DF style) (67.5\xb0)"
5356 "mirror (DF style) (78.75\xb0)"
5361 "mirror (DF style) (90\xb0)"
5366 "mirror (DF style) (101.25\xb0)"
5371 "mirror (DF style) (112.5\xb0)"
5376 "mirror (DF style) (123.75\xb0)"
5381 "mirror (DF style) (135\xb0)"
5386 "mirror (DF style) (146.25\xb0)"
5391 "mirror (DF style) (157.5\xb0)"
5396 "mirror (DF style) (168.75\xb0)"
5399 "df_wooden_grid_fixed_1",
5400 "df_wooden_grid_fixed",
5401 "fixed wooden polarizer (0\xb0)"
5404 "df_wooden_grid_fixed_2",
5405 "df_wooden_grid_fixed",
5406 "fixed wooden polarizer (22.5\xb0)"
5409 "df_wooden_grid_fixed_3",
5410 "df_wooden_grid_fixed",
5411 "fixed wooden polarizer (45\xb0)"
5414 "df_wooden_grid_fixed_4",
5415 "df_wooden_grid_fixed",
5416 "fixed wooden polarizer (67.5\xb0)"
5419 "df_wooden_grid_fixed_5",
5420 "df_wooden_grid_fixed",
5421 "fixed wooden polarizer (90\xb0)"
5424 "df_wooden_grid_fixed_6",
5425 "df_wooden_grid_fixed",
5426 "fixed wooden polarizer (112.5\xb0)"
5429 "df_wooden_grid_fixed_7",
5430 "df_wooden_grid_fixed",
5431 "fixed wooden polarizer (135\xb0)"
5434 "df_wooden_grid_fixed_8",
5435 "df_wooden_grid_fixed",
5436 "fixed wooden polarizer (157.5\xb0)"
5439 "df_steel_grid_fixed_1",
5440 "df_steel_grid_fixed",
5441 "fixed steel polarizer (0\xb0)"
5444 "df_steel_grid_fixed_2",
5445 "df_steel_grid_fixed",
5446 "fixed steel polarizer (22.5\xb0)"
5449 "df_steel_grid_fixed_3",
5450 "df_steel_grid_fixed",
5451 "fixed steel polarizer (45\xb0)"
5454 "df_steel_grid_fixed_4",
5455 "df_steel_grid_fixed",
5456 "fixed steel polarizer (67.5\xb0)"
5459 "df_steel_grid_fixed_5",
5460 "df_steel_grid_fixed",
5461 "fixed steel polarizer (90\xb0)"
5464 "df_steel_grid_fixed_6",
5465 "df_steel_grid_fixed",
5466 "fixed steel polarizer (112.5\xb0)"
5469 "df_steel_grid_fixed_7",
5470 "df_steel_grid_fixed",
5471 "fixed steel polarizer (135\xb0)"
5474 "df_steel_grid_fixed_8",
5475 "df_steel_grid_fixed",
5476 "fixed steel polarizer (157.5\xb0)"
5481 "wooden wall (DF style)"
5486 "wooden wall (DF style)"
5491 "wooden wall (DF style)"
5496 "wooden wall (DF style)"
5501 "wooden wall (DF style)"
5506 "wooden wall (DF style)"
5511 "wooden wall (DF style)"
5516 "wooden wall (DF style)"
5521 "wooden wall (DF style)"
5524 "df_wooden_wall_10",
5526 "wooden wall (DF style)"
5529 "df_wooden_wall_11",
5531 "wooden wall (DF style)"
5534 "df_wooden_wall_12",
5536 "wooden wall (DF style)"
5539 "df_wooden_wall_13",
5541 "wooden wall (DF style)"
5544 "df_wooden_wall_14",
5546 "wooden wall (DF style)"
5549 "df_wooden_wall_15",
5551 "wooden wall (DF style)"
5554 "df_wooden_wall_16",
5556 "wooden wall (DF style)"
5561 "steel wall (DF style)"
5566 "steel wall (DF style)"
5571 "steel wall (DF style)"
5576 "steel wall (DF style)"
5581 "steel wall (DF style)"
5586 "steel wall (DF style)"
5591 "steel wall (DF style)"
5596 "steel wall (DF style)"
5601 "steel wall (DF style)"
5606 "steel wall (DF style)"
5611 "steel wall (DF style)"
5616 "steel wall (DF style)"
5621 "steel wall (DF style)"
5626 "steel wall (DF style)"
5631 "steel wall (DF style)"
5636 "steel wall (DF style)"
5661 "laser cannon (shooting right)"
5666 "laser cannon (shooting up)"
5671 "laser cannon (shooting left)"
5676 "laser cannon (shooting down)"
5679 "df_receiver.right",
5681 "laser receiver (directed right)"
5686 "laser receiver (directed up)"
5691 "laser receiver (directed left)"
5696 "laser receiver (directed down)"
5699 "df_fibre_optic_red_1",
5701 "red fibre optic (part 1)"
5704 "df_fibre_optic_red_2",
5706 "red fibre optic (part 2)"
5709 "df_fibre_optic_yellow_1",
5711 "yellow fibre optic (part 1)"
5714 "df_fibre_optic_yellow_2",
5716 "yellow fibre optic (part 2)"
5719 "df_fibre_optic_green_1",
5721 "green fibre optic (part 1)"
5724 "df_fibre_optic_green_2",
5726 "green fibre optic (part 2)"
5729 "df_fibre_optic_blue_1",
5731 "blue fibre optic (part 1)"
5734 "df_fibre_optic_blue_2",
5736 "blue fibre optic (part 2)"
5739 "df_mirror_rotating_1",
5740 "df_mirror_rotating",
5741 "rotating mirror (0\xb0)"
5744 "df_mirror_rotating_2",
5745 "df_mirror_rotating",
5746 "rotating mirror (11.25\xb0)"
5749 "df_mirror_rotating_3",
5750 "df_mirror_rotating",
5751 "rotating mirror (22.5\xb0)"
5754 "df_mirror_rotating_4",
5755 "df_mirror_rotating",
5756 "rotating mirror (33.75\xb0)"
5759 "df_mirror_rotating_5",
5760 "df_mirror_rotating",
5761 "rotating mirror (45\xb0)"
5764 "df_mirror_rotating_6",
5765 "df_mirror_rotating",
5766 "rotating mirror (56.25\xb0)"
5769 "df_mirror_rotating_7",
5770 "df_mirror_rotating",
5771 "rotating mirror (67.5\xb0)"
5774 "df_mirror_rotating_8",
5775 "df_mirror_rotating",
5776 "rotating mirror (78.75\xb0)"
5779 "df_mirror_rotating_9",
5780 "df_mirror_rotating",
5781 "rotating mirror (90\xb0)"
5784 "df_mirror_rotating_10",
5785 "df_mirror_rotating",
5786 "rotating mirror (101.25\xb0)"
5789 "df_mirror_rotating_11",
5790 "df_mirror_rotating",
5791 "rotating mirror (112.5\xb0)"
5794 "df_mirror_rotating_12",
5795 "df_mirror_rotating",
5796 "rotating mirror (123.75\xb0)"
5799 "df_mirror_rotating_13",
5800 "df_mirror_rotating",
5801 "rotating mirror (135\xb0)"
5804 "df_mirror_rotating_14",
5805 "df_mirror_rotating",
5806 "rotating mirror (146.25\xb0)"
5809 "df_mirror_rotating_15",
5810 "df_mirror_rotating",
5811 "rotating mirror (157.5\xb0)"
5814 "df_mirror_rotating_16",
5815 "df_mirror_rotating",
5816 "rotating mirror (168.75\xb0)"
5819 "df_wooden_grid_rotating_1",
5820 "df_wooden_grid_rotating",
5821 "rotating wooden polarizer (0\xb0)"
5824 "df_wooden_grid_rotating_2",
5825 "df_wooden_grid_rotating",
5826 "rotating wooden polarizer (22.5\xb0)"
5829 "df_wooden_grid_rotating_3",
5830 "df_wooden_grid_rotating",
5831 "rotating wooden polarizer (45\xb0)"
5834 "df_wooden_grid_rotating_4",
5835 "df_wooden_grid_rotating",
5836 "rotating wooden polarizer (67.5\xb0)"
5839 "df_wooden_grid_rotating_5",
5840 "df_wooden_grid_rotating",
5841 "rotating wooden polarizer (90\xb0)"
5844 "df_wooden_grid_rotating_6",
5845 "df_wooden_grid_rotating",
5846 "rotating wooden polarizer (112.5\xb0)"
5849 "df_wooden_grid_rotating_7",
5850 "df_wooden_grid_rotating",
5851 "rotating wooden polarizer (135\xb0)"
5854 "df_wooden_grid_rotating_8",
5855 "df_wooden_grid_rotating",
5856 "rotating wooden polarizer (157.5\xb0)"
5859 "df_steel_grid_rotating_1",
5860 "df_steel_grid_rotating",
5861 "rotating steel polarizer (0\xb0)"
5864 "df_steel_grid_rotating_2",
5865 "df_steel_grid_rotating",
5866 "rotating steel polarizer (22.5\xb0)"
5869 "df_steel_grid_rotating_3",
5870 "df_steel_grid_rotating",
5871 "rotating steel polarizer (45\xb0)"
5874 "df_steel_grid_rotating_4",
5875 "df_steel_grid_rotating",
5876 "rotating steel polarizer (67.5\xb0)"
5879 "df_steel_grid_rotating_5",
5880 "df_steel_grid_rotating",
5881 "rotating steel polarizer (90\xb0)"
5884 "df_steel_grid_rotating_6",
5885 "df_steel_grid_rotating",
5886 "rotating steel polarizer (112.5\xb0)"
5889 "df_steel_grid_rotating_7",
5890 "df_steel_grid_rotating",
5891 "rotating steel polarizer (135\xb0)"
5894 "df_steel_grid_rotating_8",
5895 "df_steel_grid_rotating",
5896 "rotating steel polarizer (157.5\xb0)"
5899 "mm_teleporter_red_1",
5901 "red teleporter (0\xb0)"
5904 "mm_teleporter_red_2",
5906 "red teleporter (22.5\xb0)"
5909 "mm_teleporter_red_3",
5911 "red teleporter (45\xb0)"
5914 "mm_teleporter_red_4",
5916 "red teleporter (67.5\xb0)"
5919 "mm_teleporter_red_5",
5921 "red teleporter (90\xb0)"
5924 "mm_teleporter_red_6",
5926 "red teleporter (112.5\xb0)"
5929 "mm_teleporter_red_7",
5931 "red teleporter (135\xb0)"
5934 "mm_teleporter_red_8",
5936 "red teleporter (157.5\xb0)"
5939 "mm_teleporter_red_9",
5941 "red teleporter (180\xb0)"
5944 "mm_teleporter_red_10",
5946 "red teleporter (202.5\xb0)"
5949 "mm_teleporter_red_11",
5951 "red teleporter (225\xb0)"
5954 "mm_teleporter_red_12",
5956 "red teleporter (247.5\xb0)"
5959 "mm_teleporter_red_13",
5961 "red teleporter (270\xb0)"
5964 "mm_teleporter_red_14",
5966 "red teleporter (292.5\xb0)"
5969 "mm_teleporter_red_15",
5971 "red teleporter (315\xb0)"
5974 "mm_teleporter_red_16",
5976 "red teleporter (337.5\xb0)"
5979 "mm_teleporter_yellow_1",
5981 "yellow teleporter (0\xb0)"
5984 "mm_teleporter_yellow_2",
5986 "yellow teleporter (22.5\xb0)"
5989 "mm_teleporter_yellow_3",
5991 "yellow teleporter (45\xb0)"
5994 "mm_teleporter_yellow_4",
5996 "yellow teleporter (67.5\xb0)"
5999 "mm_teleporter_yellow_5",
6001 "yellow teleporter (90\xb0)"
6004 "mm_teleporter_yellow_6",
6006 "yellow teleporter (112.5\xb0)"
6009 "mm_teleporter_yellow_7",
6011 "yellow teleporter (135\xb0)"
6014 "mm_teleporter_yellow_8",
6016 "yellow teleporter (157.5\xb0)"
6019 "mm_teleporter_yellow_9",
6021 "yellow teleporter (180\xb0)"
6024 "mm_teleporter_yellow_10",
6026 "yellow teleporter (202.5\xb0)"
6029 "mm_teleporter_yellow_11",
6031 "yellow teleporter (225\xb0)"
6034 "mm_teleporter_yellow_12",
6036 "yellow teleporter (247.5\xb0)"
6039 "mm_teleporter_yellow_13",
6041 "yellow teleporter (270\xb0)"
6044 "mm_teleporter_yellow_14",
6046 "yellow teleporter (292.5\xb0)"
6049 "mm_teleporter_yellow_15",
6051 "yellow teleporter (315\xb0)"
6054 "mm_teleporter_yellow_16",
6056 "yellow teleporter (337.5\xb0)"
6059 "mm_teleporter_green_1",
6061 "green teleporter (0\xb0)"
6064 "mm_teleporter_green_2",
6066 "green teleporter (22.5\xb0)"
6069 "mm_teleporter_green_3",
6071 "green teleporter (45\xb0)"
6074 "mm_teleporter_green_4",
6076 "green teleporter (67.5\xb0)"
6079 "mm_teleporter_green_5",
6081 "green teleporter (90\xb0)"
6084 "mm_teleporter_green_6",
6086 "green teleporter (112.5\xb0)"
6089 "mm_teleporter_green_7",
6091 "green teleporter (135\xb0)"
6094 "mm_teleporter_green_8",
6096 "green teleporter (157.5\xb0)"
6099 "mm_teleporter_green_9",
6101 "green teleporter (180\xb0)"
6104 "mm_teleporter_green_10",
6106 "green teleporter (202.5\xb0)"
6109 "mm_teleporter_green_11",
6111 "green teleporter (225\xb0)"
6114 "mm_teleporter_green_12",
6116 "green teleporter (247.5\xb0)"
6119 "mm_teleporter_green_13",
6121 "green teleporter (270\xb0)"
6124 "mm_teleporter_green_14",
6126 "green teleporter (292.5\xb0)"
6129 "mm_teleporter_green_15",
6131 "green teleporter (315\xb0)"
6134 "mm_teleporter_green_16",
6136 "green teleporter (337.5\xb0)"
6139 "mm_teleporter_blue_1",
6141 "blue teleporter (0\xb0)"
6144 "mm_teleporter_blue_2",
6146 "blue teleporter (22.5\xb0)"
6149 "mm_teleporter_blue_3",
6151 "blue teleporter (45\xb0)"
6154 "mm_teleporter_blue_4",
6156 "blue teleporter (67.5\xb0)"
6159 "mm_teleporter_blue_5",
6161 "blue teleporter (90\xb0)"
6164 "mm_teleporter_blue_6",
6166 "blue teleporter (112.5\xb0)"
6169 "mm_teleporter_blue_7",
6171 "blue teleporter (135\xb0)"
6174 "mm_teleporter_blue_8",
6176 "blue teleporter (157.5\xb0)"
6179 "mm_teleporter_blue_9",
6181 "blue teleporter (180\xb0)"
6184 "mm_teleporter_blue_10",
6186 "blue teleporter (202.5\xb0)"
6189 "mm_teleporter_blue_11",
6191 "blue teleporter (225\xb0)"
6194 "mm_teleporter_blue_12",
6196 "blue teleporter (247.5\xb0)"
6199 "mm_teleporter_blue_13",
6201 "blue teleporter (270\xb0)"
6204 "mm_teleporter_blue_14",
6206 "blue teleporter (292.5\xb0)"
6209 "mm_teleporter_blue_15",
6211 "blue teleporter (315\xb0)"
6214 "mm_teleporter_blue_16",
6216 "blue teleporter (337.5\xb0)"
6226 "pac man (MM style)"
6266 "steel wall (DF style)",
6271 "wooden wall (DF style)",
6274 /* ----------------------------------------------------------------------- */
6275 /* "real" (and therefore drawable) runtime elements */
6276 /* ----------------------------------------------------------------------- */
6279 "dynabomb_player_1.active",
6284 "dynabomb_player_2.active",
6289 "dynabomb_player_3.active",
6294 "dynabomb_player_4.active",
6299 "sp_disk_red.active",
6304 "switchgate.opening",
6309 "switchgate.closing",
6334 "invisible_steelwall.active",
6339 "invisible_wall.active",
6344 "invisible_sand.active",
6349 "conveyor_belt_1_left.active",
6354 "conveyor_belt_1_middle.active",
6359 "conveyor_belt_1_right.active",
6364 "conveyor_belt_2_left.active",
6369 "conveyor_belt_2_middle.active",
6374 "conveyor_belt_2_right.active",
6379 "conveyor_belt_3_left.active",
6384 "conveyor_belt_3_middle.active",
6389 "conveyor_belt_3_right.active",
6394 "conveyor_belt_4_left.active",
6399 "conveyor_belt_4_middle.active",
6404 "conveyor_belt_4_right.active",
6419 "steel_exit.opening",
6424 "steel_exit.closing",
6439 "em_steel_exit.opening",
6444 "em_steel_exit.closing",
6464 "sp_terminal.active",
6469 "sp_buggy_base.activating",
6474 "sp_buggy_base.active",
6489 "quicksand.emptying",
6494 "quicksand_fast.emptying",
6499 "magic_wall.active",
6504 "bd_magic_wall.active",
6509 "dc_magic_wall.active",
6519 "bd_magic_wall_full",
6524 "dc_magic_wall_full",
6529 "magic_wall.emptying",
6534 "bd_magic_wall.emptying",
6539 "dc_magic_wall.emptying",
6549 "bd_magic_wall_dead",
6554 "dc_magic_wall_dead",
6560 "emc_fake_grass.active",
6565 "gate_1_gray.active",
6570 "gate_2_gray.active",
6575 "gate_3_gray.active",
6580 "gate_4_gray.active",
6585 "em_gate_1_gray.active",
6590 "em_gate_2_gray.active",
6595 "em_gate_3_gray.active",
6600 "em_gate_4_gray.active",
6605 "emc_gate_5_gray.active",
6610 "emc_gate_6_gray.active",
6615 "emc_gate_7_gray.active",
6620 "emc_gate_8_gray.active",
6625 "dc_gate_white_gray.active",
6630 "emc_dripper.active",
6635 "emc_spring_bumper.active",
6636 "emc_spring_bumper",
6650 "mm_gray_ball.opening",
6655 "mm_ice_wall.shrinking",
6660 "mm_amoeba_wall.growing",
6665 "mm_pacman.eating.right",
6667 "pac man (eating right)"
6670 "mm_pacman.eating.up",
6672 "pac man (eating up)"
6675 "mm_pacman.eating.left",
6677 "pac man (eating left)"
6680 "mm_pacman.eating.down",
6682 "pac man (eating down)"
6685 /* ----------------------------------------------------------------------- */
6686 /* "unreal" (and therefore not drawable) runtime elements */
6687 /* ----------------------------------------------------------------------- */
6715 "acid_splash_right",
6730 "expandable_wall.growing",
6735 "expandable_steelwall.growing",
6745 "player_is_leaving",
6750 "player_is_exploding_1",
6755 "player_is_exploding_2",
6760 "player_is_exploding_3",
6765 "player_is_exploding_4",
6770 "quicksand.filling",
6775 "quicksand_fast.filling",
6780 "magic_wall.filling",
6785 "bd_magic_wall.filling",
6790 "dc_magic_wall.filling",
6800 "diagonal.shrinking",
6810 /* ----------------------------------------------------------------------- */
6811 /* dummy elements (never used as game elements, only used as graphics) */
6812 /* ----------------------------------------------------------------------- */
6815 "steelwall_topleft",
6820 "steelwall_topright",
6825 "steelwall_bottomleft",
6830 "steelwall_bottomright",
6835 "steelwall_horizontal",
6840 "steelwall_vertical",
6845 "invisible_steelwall_topleft",
6850 "invisible_steelwall_topright",
6855 "invisible_steelwall_bottomleft",
6860 "invisible_steelwall_bottomright",
6865 "invisible_steelwall_horizontal",
6870 "invisible_steelwall_vertical",
6885 "dynabomb_player_1",
6890 "dynabomb_player_2",
6895 "dynabomb_player_3",
6900 "dynabomb_player_4",
6905 "shield_normal.active",
6910 "shield_deadly.active",
6925 "mm_lightball_blue",
6930 "mm_lightball_yellow",
6935 "mm_mask_mcduffin.right",
6940 "mm_mask_mcduffin.up",
6945 "mm_mask_mcduffin.left",
6950 "mm_mask_mcduffin.down",
6975 "mm_mask_rectangle",
7050 "internal_clipboard_custom",
7052 "empty custom element"
7055 "internal_clipboard_change",
7060 "internal_clipboard_group",
7062 "empty group element"
7070 "internal_cascade_bd",
7072 "show Boulder Dash elements"
7075 "internal_cascade_bd.active",
7077 "hide Boulder Dash elements"
7080 "internal_cascade_em",
7082 "show Emerald Mine elements"
7085 "internal_cascade_em.active",
7087 "hide Emerald Mine elements"
7090 "internal_cascade_emc",
7092 "show Emerald Mine Club elements"
7095 "internal_cascade_emc.active",
7097 "hide Emerald Mine Club elements"
7100 "internal_cascade_rnd",
7102 "show Rocks'n'Diamonds elements"
7105 "internal_cascade_rnd.active",
7107 "hide Rocks'n'Diamonds elements"
7110 "internal_cascade_sb",
7112 "show Sokoban elements"
7115 "internal_cascade_sb.active",
7117 "hide Sokoban elements"
7120 "internal_cascade_sp",
7122 "show Supaplex elements"
7125 "internal_cascade_sp.active",
7127 "hide Supaplex elements"
7130 "internal_cascade_dc",
7132 "show Diamond Caves II elements"
7135 "internal_cascade_dc.active",
7137 "hide Diamond Caves II elements"
7140 "internal_cascade_dx",
7142 "show DX Boulderdash elements"
7145 "internal_cascade_dx.active",
7147 "hide DX Boulderdash elements"
7150 "internal_cascade_mm",
7152 "show Mirror Magic elements"
7155 "internal_cascade_mm.active",
7157 "hide Mirror Magic elements"
7160 "internal_cascade_df",
7162 "show Deflektor elements"
7165 "internal_cascade_df.active",
7167 "hide Deflektor elements"
7170 "internal_cascade_chars",
7172 "show text elements"
7175 "internal_cascade_chars.active",
7177 "hide text elements"
7180 "internal_cascade_steel_chars",
7182 "show steel text elements"
7185 "internal_cascade_steel_chars.active",
7187 "hide steel text elements"
7190 "internal_cascade_ce",
7192 "show custom elements"
7195 "internal_cascade_ce.active",
7197 "hide custom elements"
7200 "internal_cascade_ge",
7202 "show group elements"
7205 "internal_cascade_ge.active",
7207 "hide group elements"
7210 "internal_cascade_ref",
7212 "show reference elements"
7215 "internal_cascade_ref.active",
7217 "hide reference elements"
7220 "internal_cascade_user",
7222 "show user defined elements"
7225 "internal_cascade_user.active",
7227 "hide user defined elements"
7230 "internal_cascade_dynamic",
7232 "show elements used in this level"
7235 "internal_cascade_dynamic.active",
7237 "hide elements used in this level"
7240 /* keyword to stop parser: "ELEMENT_INFO_END" <-- do not change! */
7250 /* ------------------------------------------------------------------------- */
7251 /* element action and direction definitions */
7252 /* ------------------------------------------------------------------------- */
7254 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
7256 { ".[DEFAULT]", ACTION_DEFAULT, TRUE },
7257 { ".waiting", ACTION_WAITING, TRUE },
7258 { ".falling", ACTION_FALLING, TRUE },
7259 { ".moving", ACTION_MOVING, TRUE },
7260 { ".digging", ACTION_DIGGING, FALSE },
7261 { ".snapping", ACTION_SNAPPING, FALSE },
7262 { ".collecting", ACTION_COLLECTING, FALSE },
7263 { ".dropping", ACTION_DROPPING, FALSE },
7264 { ".pushing", ACTION_PUSHING, FALSE },
7265 { ".walking", ACTION_WALKING, FALSE },
7266 { ".passing", ACTION_PASSING, FALSE },
7267 { ".impact", ACTION_IMPACT, FALSE },
7268 { ".breaking", ACTION_BREAKING, FALSE },
7269 { ".activating", ACTION_ACTIVATING, FALSE },
7270 { ".deactivating", ACTION_DEACTIVATING, FALSE },
7271 { ".opening", ACTION_OPENING, FALSE },
7272 { ".closing", ACTION_CLOSING, FALSE },
7273 { ".attacking", ACTION_ATTACKING, TRUE },
7274 { ".growing", ACTION_GROWING, TRUE },
7275 { ".shrinking", ACTION_SHRINKING, FALSE },
7276 { ".active", ACTION_ACTIVE, TRUE },
7277 { ".filling", ACTION_FILLING, FALSE },
7278 { ".emptying", ACTION_EMPTYING, FALSE },
7279 { ".changing", ACTION_CHANGING, FALSE },
7280 { ".exploding", ACTION_EXPLODING, FALSE },
7281 { ".boring", ACTION_BORING, FALSE },
7282 { ".boring[1]", ACTION_BORING_1, FALSE },
7283 { ".boring[2]", ACTION_BORING_2, FALSE },
7284 { ".boring[3]", ACTION_BORING_3, FALSE },
7285 { ".boring[4]", ACTION_BORING_4, FALSE },
7286 { ".boring[5]", ACTION_BORING_5, FALSE },
7287 { ".boring[6]", ACTION_BORING_6, FALSE },
7288 { ".boring[7]", ACTION_BORING_7, FALSE },
7289 { ".boring[8]", ACTION_BORING_8, FALSE },
7290 { ".boring[9]", ACTION_BORING_9, FALSE },
7291 { ".boring[10]", ACTION_BORING_10, FALSE },
7292 { ".sleeping", ACTION_SLEEPING, FALSE },
7293 { ".sleeping[1]", ACTION_SLEEPING_1, FALSE },
7294 { ".sleeping[2]", ACTION_SLEEPING_2, FALSE },
7295 { ".sleeping[3]", ACTION_SLEEPING_3, FALSE },
7296 { ".awakening", ACTION_AWAKENING, FALSE },
7297 { ".dying", ACTION_DYING, FALSE },
7298 { ".turning", ACTION_TURNING, FALSE },
7299 { ".turning_from_left", ACTION_TURNING_FROM_LEFT, FALSE },
7300 { ".turning_from_right", ACTION_TURNING_FROM_RIGHT, FALSE },
7301 { ".turning_from_up", ACTION_TURNING_FROM_UP, FALSE },
7302 { ".turning_from_down", ACTION_TURNING_FROM_DOWN, FALSE },
7303 { ".smashed_by_rock", ACTION_SMASHED_BY_ROCK, FALSE },
7304 { ".smashed_by_spring", ACTION_SMASHED_BY_SPRING, FALSE },
7305 { ".eating", ACTION_EATING, FALSE },
7306 { ".twinkling", ACTION_TWINKLING, FALSE },
7307 { ".splashing", ACTION_SPLASHING, FALSE },
7308 { ".hitting", ACTION_HITTING, FALSE },
7309 { ".page[1]", ACTION_PAGE_1, FALSE },
7310 { ".page[2]", ACTION_PAGE_2, FALSE },
7311 { ".page[3]", ACTION_PAGE_3, FALSE },
7312 { ".page[4]", ACTION_PAGE_4, FALSE },
7313 { ".page[5]", ACTION_PAGE_5, FALSE },
7314 { ".page[6]", ACTION_PAGE_6, FALSE },
7315 { ".page[7]", ACTION_PAGE_7, FALSE },
7316 { ".page[8]", ACTION_PAGE_8, FALSE },
7317 { ".page[9]", ACTION_PAGE_9, FALSE },
7318 { ".page[10]", ACTION_PAGE_10, FALSE },
7319 { ".page[11]", ACTION_PAGE_11, FALSE },
7320 { ".page[12]", ACTION_PAGE_12, FALSE },
7321 { ".page[13]", ACTION_PAGE_13, FALSE },
7322 { ".page[14]", ACTION_PAGE_14, FALSE },
7323 { ".page[15]", ACTION_PAGE_15, FALSE },
7324 { ".page[16]", ACTION_PAGE_16, FALSE },
7325 { ".page[17]", ACTION_PAGE_17, FALSE },
7326 { ".page[18]", ACTION_PAGE_18, FALSE },
7327 { ".page[19]", ACTION_PAGE_19, FALSE },
7328 { ".page[20]", ACTION_PAGE_20, FALSE },
7329 { ".page[21]", ACTION_PAGE_21, FALSE },
7330 { ".page[22]", ACTION_PAGE_22, FALSE },
7331 { ".page[23]", ACTION_PAGE_23, FALSE },
7332 { ".page[24]", ACTION_PAGE_24, FALSE },
7333 { ".page[25]", ACTION_PAGE_25, FALSE },
7334 { ".page[26]", ACTION_PAGE_26, FALSE },
7335 { ".page[27]", ACTION_PAGE_27, FALSE },
7336 { ".page[28]", ACTION_PAGE_28, FALSE },
7337 { ".page[29]", ACTION_PAGE_29, FALSE },
7338 { ".page[30]", ACTION_PAGE_30, FALSE },
7339 { ".page[31]", ACTION_PAGE_31, FALSE },
7340 { ".page[32]", ACTION_PAGE_32, FALSE },
7341 { ".part_1", ACTION_PART_1, FALSE },
7342 { ".part_2", ACTION_PART_2, FALSE },
7343 { ".part_3", ACTION_PART_3, FALSE },
7344 { ".part_4", ACTION_PART_4, FALSE },
7345 { ".part_5", ACTION_PART_5, FALSE },
7346 { ".part_6", ACTION_PART_6, FALSE },
7347 { ".part_7", ACTION_PART_7, FALSE },
7348 { ".part_8", ACTION_PART_8, FALSE },
7349 { ".part_9", ACTION_PART_9, FALSE },
7350 { ".part_10", ACTION_PART_10, FALSE },
7351 { ".part_11", ACTION_PART_11, FALSE },
7352 { ".part_12", ACTION_PART_12, FALSE },
7353 { ".part_13", ACTION_PART_13, FALSE },
7354 { ".part_14", ACTION_PART_14, FALSE },
7355 { ".part_15", ACTION_PART_15, FALSE },
7356 { ".part_16", ACTION_PART_16, FALSE },
7357 { ".part_17", ACTION_PART_17, FALSE },
7358 { ".part_18", ACTION_PART_18, FALSE },
7359 { ".part_19", ACTION_PART_19, FALSE },
7360 { ".part_20", ACTION_PART_20, FALSE },
7361 { ".part_21", ACTION_PART_21, FALSE },
7362 { ".part_22", ACTION_PART_22, FALSE },
7363 { ".part_23", ACTION_PART_23, FALSE },
7364 { ".part_24", ACTION_PART_24, FALSE },
7365 { ".part_25", ACTION_PART_25, FALSE },
7366 { ".part_26", ACTION_PART_26, FALSE },
7367 { ".part_27", ACTION_PART_27, FALSE },
7368 { ".part_28", ACTION_PART_28, FALSE },
7369 { ".part_29", ACTION_PART_29, FALSE },
7370 { ".part_30", ACTION_PART_30, FALSE },
7371 { ".part_31", ACTION_PART_31, FALSE },
7372 { ".part_32", ACTION_PART_32, FALSE },
7373 { ".other", ACTION_OTHER, FALSE },
7375 /* empty suffix always matches -- check as last entry in InitSoundInfo() */
7376 { "", ACTION_DEFAULT, TRUE },
7381 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS_FULL + 1] =
7383 { ".left", MV_BIT_LEFT },
7384 { ".right", MV_BIT_RIGHT },
7385 { ".up", MV_BIT_UP },
7386 { ".down", MV_BIT_DOWN },
7387 { ".upleft", MV_BIT_UP },
7388 { ".upright", MV_BIT_RIGHT },
7389 { ".downleft", MV_BIT_LEFT },
7390 { ".downright", MV_BIT_DOWN },
7395 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1 + 1] =
7397 { ".[DEFAULT]", GFX_SPECIAL_ARG_DEFAULT, },
7398 { ".LOADING", GFX_SPECIAL_ARG_LOADING, },
7399 { ".TITLE_INITIAL", GFX_SPECIAL_ARG_TITLE_INITIAL, },
7400 { ".TITLE_INITIAL_1", GFX_SPECIAL_ARG_TITLE_INITIAL_1, },
7401 { ".TITLE_INITIAL_2", GFX_SPECIAL_ARG_TITLE_INITIAL_2, },
7402 { ".TITLE_INITIAL_3", GFX_SPECIAL_ARG_TITLE_INITIAL_3, },
7403 { ".TITLE_INITIAL_4", GFX_SPECIAL_ARG_TITLE_INITIAL_4, },
7404 { ".TITLE_INITIAL_5", GFX_SPECIAL_ARG_TITLE_INITIAL_5, },
7405 { ".TITLE", GFX_SPECIAL_ARG_TITLE, },
7406 { ".TITLE_1", GFX_SPECIAL_ARG_TITLE_1, },
7407 { ".TITLE_2", GFX_SPECIAL_ARG_TITLE_2, },
7408 { ".TITLE_3", GFX_SPECIAL_ARG_TITLE_3, },
7409 { ".TITLE_4", GFX_SPECIAL_ARG_TITLE_4, },
7410 { ".TITLE_5", GFX_SPECIAL_ARG_TITLE_5, },
7411 { ".MAIN", GFX_SPECIAL_ARG_MAIN, },
7412 { ".LEVELS", GFX_SPECIAL_ARG_LEVELS },
7413 { ".LEVELNR", GFX_SPECIAL_ARG_LEVELNR },
7414 { ".SCORES", GFX_SPECIAL_ARG_SCORES, },
7415 { ".EDITOR", GFX_SPECIAL_ARG_EDITOR, },
7416 { ".INFO", GFX_SPECIAL_ARG_INFO, },
7417 { ".SETUP", GFX_SPECIAL_ARG_SETUP, },
7418 { ".PLAYING", GFX_SPECIAL_ARG_PLAYING, },
7419 { ".DOOR", GFX_SPECIAL_ARG_DOOR, },
7420 { ".TAPE", GFX_SPECIAL_ARG_TAPE, },
7421 { ".PANEL", GFX_SPECIAL_ARG_PANEL, },
7422 { ".PREVIEW", GFX_SPECIAL_ARG_PREVIEW, },
7423 { ".CRUMBLED", GFX_SPECIAL_ARG_CRUMBLED, },
7424 { ".MAINONLY", GFX_SPECIAL_ARG_MAINONLY, },
7425 { ".TYPENAME", GFX_SPECIAL_ARG_TYPENAME, },
7426 { ".SUBMENU", GFX_SPECIAL_ARG_SUBMENU, },
7427 { ".MENU", GFX_SPECIAL_ARG_MENU, },
7428 { ".TOONS", GFX_SPECIAL_ARG_TOONS, },
7429 { ".SCORESOLD", GFX_SPECIAL_ARG_SCORESOLD, },
7430 { ".SCORESNEW", GFX_SPECIAL_ARG_SCORESNEW, },
7431 { ".FADING", GFX_SPECIAL_ARG_FADING, },
7432 { ".QUIT", GFX_SPECIAL_ARG_QUIT, },
7434 /* empty suffix always matches -- check as last entry in InitMusicInfo() */
7435 { "", GFX_SPECIAL_ARG_DEFAULT, },
7440 #include "conf_var.c" /* include auto-generated data structure definitions */
7443 /* ------------------------------------------------------------------------- */
7444 /* font definitions */
7445 /* ------------------------------------------------------------------------- */
7447 /* Important: When one entry is a prefix of another entry, the longer entry
7448 must come first, because the dynamic configuration does prefix matching!
7449 (These definitions must match the corresponding definitions in "main.h"!) */
7451 struct FontInfo font_info[NUM_FONTS + 1] =
7453 { "font.initial_1" },
7454 { "font.initial_2" },
7455 { "font.initial_3" },
7456 { "font.initial_4" },
7459 { "font.menu_1.active" },
7460 { "font.menu_2.active" },
7463 { "font.text_1.active" },
7464 { "font.text_2.active" },
7465 { "font.text_3.active" },
7466 { "font.text_4.active" },
7471 { "font.envelope_1" },
7472 { "font.envelope_2" },
7473 { "font.envelope_3" },
7474 { "font.envelope_4" },
7476 { "font.input_1.active" },
7477 { "font.input_2.active" },
7480 { "font.option_off_narrow" },
7481 { "font.option_off" },
7482 { "font.option_on_narrow" },
7483 { "font.option_on" },
7486 { "font.value_old_narrow" },
7487 { "font.value_old" },
7488 { "font.value_narrow" },
7489 { "font.level_number.active" },
7490 { "font.level_number" },
7491 { "font.tape_recorder" },
7492 { "font.game_info" },
7493 { "font.info.elements" },
7494 { "font.info.levelset" },
7499 struct GlobalAnimInfo global_anim_info[NUM_GLOBAL_ANIM_TOKENS + 1];
7501 /* this contains predefined structure elements to init "global_anim_info" */
7502 struct GlobalAnimNameInfo global_anim_name_info[NUM_GLOBAL_ANIM_TOKENS + 1] =
7504 /* (real) graphic definitions used to define animation graphics */
7505 { "gfx.global.anim_1", },
7506 { "gfx.global.anim_2", },
7507 { "gfx.global.anim_3", },
7508 { "gfx.global.anim_4", },
7509 { "gfx.global.anim_5", },
7510 { "gfx.global.anim_6", },
7511 { "gfx.global.anim_7", },
7512 { "gfx.global.anim_8", },
7513 { "gfx.global.anim_9", },
7514 { "gfx.global.anim_10", },
7515 { "gfx.global.anim_11", },
7516 { "gfx.global.anim_12", },
7517 { "gfx.global.anim_13", },
7518 { "gfx.global.anim_14", },
7519 { "gfx.global.anim_15", },
7520 { "gfx.global.anim_16", },
7521 { "gfx.global.anim_17", },
7522 { "gfx.global.anim_18", },
7523 { "gfx.global.anim_19", },
7524 { "gfx.global.anim_20", },
7525 { "gfx.global.anim_21", },
7526 { "gfx.global.anim_22", },
7527 { "gfx.global.anim_23", },
7528 { "gfx.global.anim_24", },
7529 { "gfx.global.anim_25", },
7530 { "gfx.global.anim_26", },
7531 { "gfx.global.anim_27", },
7532 { "gfx.global.anim_28", },
7533 { "gfx.global.anim_29", },
7534 { "gfx.global.anim_30", },
7535 { "gfx.global.anim_31", },
7536 { "gfx.global.anim_32", },
7538 /* (dummy) graphic definitions used to define animation controls */
7539 { "global.anim_1", },
7540 { "global.anim_2", },
7541 { "global.anim_3", },
7542 { "global.anim_4", },
7543 { "global.anim_5", },
7544 { "global.anim_6", },
7545 { "global.anim_7", },
7546 { "global.anim_8", },
7547 { "global.anim_9", },
7548 { "global.anim_10", },
7549 { "global.anim_11", },
7550 { "global.anim_12", },
7551 { "global.anim_13", },
7552 { "global.anim_14", },
7553 { "global.anim_15", },
7554 { "global.anim_16", },
7555 { "global.anim_17", },
7556 { "global.anim_18", },
7557 { "global.anim_19", },
7558 { "global.anim_20", },
7559 { "global.anim_21", },
7560 { "global.anim_22", },
7561 { "global.anim_23", },
7562 { "global.anim_24", },
7563 { "global.anim_25", },
7564 { "global.anim_26", },
7565 { "global.anim_27", },
7566 { "global.anim_28", },
7567 { "global.anim_29", },
7568 { "global.anim_30", },
7569 { "global.anim_31", },
7570 { "global.anim_32", },
7576 /* ------------------------------------------------------------------------- */
7577 /* music token prefix definitions */
7578 /* ------------------------------------------------------------------------- */
7580 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
7582 { "background", TRUE },
7588 /* ========================================================================= */
7590 /* ========================================================================= */
7592 static void print_usage()
7595 "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n"
7598 " -b, --basepath DIRECTORY alternative base DIRECTORY\n"
7599 " -l, --level DIRECTORY alternative level DIRECTORY\n"
7600 " -g, --graphics DIRECTORY alternative graphics DIRECTORY\n"
7601 " -s, --sounds DIRECTORY alternative sounds DIRECTORY\n"
7602 " -m, --music DIRECTORY alternative music DIRECTORY\n"
7603 " --mytapes use private tapes for tape tests\n"
7604 " -n, --network network multiplayer game\n"
7605 " --serveronly only start network server\n"
7606 " -v, --verbose verbose mode\n"
7607 " -V, --version show program version\n"
7608 " --debug display debugging information\n"
7609 " -e, --execute COMMAND execute batch COMMAND\n"
7611 "Valid commands for '--execute' option:\n"
7612 " \"print graphicsinfo.conf\" print default graphics config\n"
7613 " \"print soundsinfo.conf\" print default sounds config\n"
7614 " \"print musicinfo.conf\" print default music config\n"
7615 " \"print editorsetup.conf\" print default editor config\n"
7616 " \"print helpanim.conf\" print default helpanim config\n"
7617 " \"print helptext.conf\" print default helptext config\n"
7618 " \"dump level FILE\" dump level data from FILE\n"
7619 " \"dump tape FILE\" dump tape data from FILE\n"
7620 " \"autotest LEVELDIR [NR ...]\" test level tapes for LEVELDIR\n"
7621 " \"autoplay LEVELDIR [NR ...]\" play level tapes for LEVELDIR\n"
7622 " \"autoffwd LEVELDIR [NR ...]\" ffwd level tapes for LEVELDIR\n"
7623 " \"autowarp LEVELDIR [NR ...]\" warp level tapes for LEVELDIR\n"
7624 " \"convert LEVELDIR [NR]\" convert levels in LEVELDIR\n"
7625 " \"create images DIRECTORY\" write BMP images to DIRECTORY\n"
7626 " \"create CE image DIRECTORY\" write BMP image to DIRECTORY\n"
7628 program.command_basename);
7631 static void print_version()
7633 Print("%s", getProgramInitString());
7635 if (!strEqual(getProgramVersionString(), getProgramRealVersionString()))
7637 Print(" (%s %d.%d.%d.%d%s)",
7638 PROGRAM_TITLE_STRING,
7639 PROGRAM_VERSION_SUPER,
7640 PROGRAM_VERSION_MAJOR,
7641 PROGRAM_VERSION_MINOR,
7642 PROGRAM_VERSION_PATCH,
7643 PROGRAM_VERSION_EXTRA);
7650 SDL_version sdl_version;
7652 SDL_VERSION(&sdl_version);
7653 Print("- SDL %d.%d.%d\n",
7658 SDL_IMAGE_VERSION(&sdl_version);
7659 Print("- SDL_image %d.%d.%d\n",
7664 SDL_MIXER_VERSION(&sdl_version);
7665 Print("- SDL_mixer %d.%d.%d\n",
7670 SDL_NET_VERSION(&sdl_version);
7671 Print("- SDL_net %d.%d.%d\n",
7678 static void InitProgramConfig(char *command_filename)
7680 char *program_title = PROGRAM_TITLE_STRING;
7681 char *program_icon_file = PROGRAM_ICON_FILENAME;
7682 char *program_version = getProgramRealVersionString();
7683 char *config_filename = getProgramConfigFilename(command_filename);
7684 char *userdata_basename = getBaseNameNoSuffix(command_filename);
7685 char *userdata_subdir;
7686 char *userdata_subdir_unix;
7688 // read default program config, if existing
7689 if (fileExists(config_filename))
7691 // if program config file exists, derive Unix user data directory from it
7692 // (but only if the program config file is not generic "setup.conf" file)
7693 if (!strEqual(getBaseNamePtr(config_filename), SETUP_FILENAME))
7695 userdata_basename = getBaseName(config_filename);
7697 if (strSuffix(userdata_basename, ".conf"))
7698 userdata_basename[strlen(userdata_basename) - 5] = '\0';
7701 LoadSetupFromFilename(config_filename);
7704 // set user data directory for Linux/Unix (but not Mac OS X)
7705 userdata_subdir_unix = getStringCat2(".", userdata_basename);
7707 // set program title from potentially redefined program title
7708 if (setup.internal.program_title != NULL &&
7709 strlen(setup.internal.program_title) > 0)
7710 program_title = getStringCopy(setup.internal.program_title);
7712 // set program version from potentially redefined program version
7713 if (setup.internal.program_version != NULL &&
7714 strlen(setup.internal.program_version) > 0)
7715 program_version = getStringCopy(setup.internal.program_version);
7717 // set program icon file from potentially redefined program icon file
7718 if (setup.internal.program_icon_file != NULL &&
7719 strlen(setup.internal.program_icon_file) > 0)
7720 program_icon_file = getStringCopy(setup.internal.program_icon_file);
7722 #if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX)
7723 userdata_subdir = program_title;
7724 #elif defined(PLATFORM_UNIX)
7725 userdata_subdir = userdata_subdir_unix;
7727 userdata_subdir = USERDATA_DIRECTORY_OTHER;
7730 // set default window size (only relevant on program startup)
7731 if (setup.internal.default_window_width != 0 &&
7732 setup.internal.default_window_height != 0)
7734 WIN_XSIZE = setup.internal.default_window_width;
7735 WIN_YSIZE = setup.internal.default_window_height;
7738 InitProgramInfo(command_filename,
7746 GAME_VERSION_ACTUAL);
7749 int main(int argc, char *argv[])
7751 InitProgramConfig(argv[0]);
7753 InitWindowTitleFunction(getWindowTitleString);
7754 InitExitMessageFunction(DisplayExitMessage);
7755 InitExitFunction(CloseAllAndExit);
7756 InitPlatformDependentStuff();
7758 GetOptions(argc, argv, print_usage, print_version);
7764 return 0; /* to keep compilers happy */