1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://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 int game_status_last_screen = -1;
34 boolean level_editor_test_game = FALSE;
35 boolean network_playing = FALSE;
37 int key_joystick_mapping = 0;
39 short Tile[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
40 short Last[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
41 short MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
42 short MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
43 short MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
44 short ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short ChangePage[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short CustomValue[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
48 short Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
49 short StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
50 short Back[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
51 boolean Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
52 boolean Pushed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
53 short ChangeCount[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
54 short ChangeEvent[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 short WasJustMoving[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
56 short WasJustFalling[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
57 short CheckCollision[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
58 short CheckImpact[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
60 short AmoebaCnt[MAX_NUM_AMOEBA];
61 short AmoebaCnt2[MAX_NUM_AMOEBA];
62 short ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
63 short ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
64 short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
65 int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
66 int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
68 int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
69 int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
70 int GfxRandomStatic[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
71 int GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
72 int GfxElementEmpty[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
73 int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
74 int GfxDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
75 int GfxRedraw[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
77 int ActiveElement[MAX_NUM_ELEMENTS];
78 int ActiveButton[NUM_IMAGE_FILES];
79 int ActiveFont[NUM_FONTS];
81 int lev_fieldx, lev_fieldy;
82 int scroll_x, scroll_y;
84 int WIN_XSIZE = WIN_XSIZE_DEFAULT;
85 int WIN_YSIZE = WIN_YSIZE_DEFAULT;
87 int SCR_FIELDX = SCR_FIELDX_DEFAULT;
88 int SCR_FIELDY = SCR_FIELDY_DEFAULT;
90 int REAL_SX = 6, REAL_SY = 6;
92 int DX = 566, DY = 60;
93 int VX = 566, VY = 400;
94 int EX = 566, EY = 356;
97 int FULL_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
98 int FULL_SYSIZE = 2 + SYSIZE_DEFAULT + 2;
99 int SXSIZE = SXSIZE_DEFAULT;
100 int SYSIZE = SYSIZE_DEFAULT;
102 int FADE_SX = 6, FADE_SY = 6;
103 int FADE_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
104 int FADE_SYSIZE = 2 + SXSIZE_DEFAULT + 2;
112 int TILESIZE_VAR = TILESIZE;
116 int ScreenMovDir = MV_NONE, ScreenMovPos = 0;
117 int ScreenGfxPos = 0;
118 int BorderElement = EL_STEELWALL;
119 int MenuFrameDelay = MENU_FRAME_DELAY;
120 int GameFrameDelay = GAME_FRAME_DELAY;
121 int FfwdFrameDelay = FFWD_FRAME_DELAY;
124 int SBX_Left, SBX_Right;
125 int SBY_Upper, SBY_Lower;
127 int TimeFrames, TimePlayed, TimeLeft, TapeTime;
129 boolean network_player_action_received = FALSE;
131 struct LevelInfo level, level_template;
132 struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
133 struct ScoreInfo scores, server_scores;
134 struct TapeInfo tape;
135 struct GameInfo game;
136 struct GlobalInfo global;
137 struct BorderInfo border;
138 struct ViewportInfo viewport;
139 struct TitleFadingInfo fading;
140 struct TitleFadingInfo title_initial_first_default;
141 struct TitleFadingInfo title_initial_default;
142 struct TitleFadingInfo title_first_default;
143 struct TitleFadingInfo title_default;
144 struct TitleMessageInfo titlescreen_initial_first_default;
145 struct TitleMessageInfo titlescreen_initial_first[MAX_NUM_TITLE_IMAGES];
146 struct TitleMessageInfo titlescreen_initial_default;
147 struct TitleMessageInfo titlescreen_initial[MAX_NUM_TITLE_IMAGES];
148 struct TitleMessageInfo titlescreen_first_default;
149 struct TitleMessageInfo titlescreen_first[MAX_NUM_TITLE_IMAGES];
150 struct TitleMessageInfo titlescreen_default;
151 struct TitleMessageInfo titlescreen[MAX_NUM_TITLE_IMAGES];
152 struct TitleMessageInfo titlemessage_initial_first_default;
153 struct TitleMessageInfo titlemessage_initial_first[MAX_NUM_TITLE_MESSAGES];
154 struct TitleMessageInfo titlemessage_initial_default;
155 struct TitleMessageInfo titlemessage_initial[MAX_NUM_TITLE_MESSAGES];
156 struct TitleMessageInfo titlemessage_first_default;
157 struct TitleMessageInfo titlemessage_first[MAX_NUM_TITLE_MESSAGES];
158 struct TitleMessageInfo titlemessage_default;
159 struct TitleMessageInfo titlemessage[MAX_NUM_TITLE_MESSAGES];
160 struct TitleMessageInfo readme;
161 struct InitInfo init, init_last;
162 struct MenuInfo menu;
163 struct DoorInfo door_1, door_2;
164 struct RequestInfo request;
165 struct PreviewInfo preview;
166 struct EditorInfo editor;
168 struct GraphicInfo *graphic_info = NULL;
169 struct SoundInfo *sound_info = NULL;
170 struct MusicInfo *music_info = NULL;
171 struct MusicFileInfo *music_file_info = NULL;
172 struct HelpAnimInfo *helpanim_info = NULL;
174 SetupFileHash *helptext_info = NULL;
175 SetupFileHash *image_config_hash = NULL;
176 SetupFileHash *element_token_hash = NULL;
177 SetupFileHash *graphic_token_hash = NULL;
178 SetupFileHash *font_token_hash = NULL;
179 SetupFileHash *hide_setup_hash = NULL;
182 // ----------------------------------------------------------------------------
183 // element definitions
184 // ----------------------------------------------------------------------------
186 struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1];
188 // this contains predefined structure elements to initialize "element_info"
189 struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
191 // keyword to start parser: "ELEMENT_INFO_START" <-- do not change!
193 // --------------------------------------------------------------------------
194 // "real" level file elements
195 // --------------------------------------------------------------------------
245 "bug (random start direction)"
250 "spaceship (random start direction)"
255 "yam yam (random start direction)"
285 "quicksand (with rock)"
315 "dropping amoeba (EM style)"
330 "Conway's wall of life"
353 "robot_wheel.active",
355 "magic wheel (running)"
400 "gray door (opened by key 1)"
405 "gray door (opened by key 2)"
410 "gray door (opened by key 3)"
415 "gray door (opened by key 4)"
425 "pac man (random start direction)"
430 "invisible normal wall"
455 "amoeba with content"
475 "growing wall (horizontal, visible)"
490 "wall with BD style diamond"
493 "wall_emerald_yellow",
495 "wall with yellow emerald"
505 "magic wall (BD style)"
508 "invisible_steelwall",
510 "invisible steel wall"
513 "sokoban_field_player",
515 "sokoban field with player"
518 "dynabomb_increase_number",
520 "increases number of bombs"
523 "dynabomb_increase_size",
525 "increases explosion size"
528 "dynabomb_increase_power",
530 "increases power of explosion"
538 "sokoban_field_empty",
540 "sokoban empty field"
543 "sokoban_field_full",
545 "sokoban field with object"
548 "bd_butterfly.right",
550 "butterfly (starts moving right)"
555 "butterfly (starts moving up)"
560 "butterfly (starts moving left)"
565 "butterfly (starts moving down)"
570 "firefly (starts moving right)"
575 "firefly (starts moving up)"
580 "firefly (starts moving left)"
585 "firefly (starts moving down)"
590 "butterfly (random start direction)"
595 "firefly (random start direction)"
620 "bug (starts moving right)"
625 "bug (starts moving up)"
630 "bug (starts moving left)"
635 "bug (starts moving down)"
640 "spaceship (starts moving right)"
645 "spaceship (starts moving up)"
650 "spaceship (starts moving left)"
655 "spaceship (starts moving down)"
660 "pac man (starts moving right)"
665 "pac man (starts moving up)"
670 "pac man (starts moving left)"
675 "pac man (starts moving down)"
690 "wall with red emerald"
693 "wall_emerald_purple",
695 "wall with purple emerald"
700 "acid pool (top left)"
703 "acid_pool_topright",
705 "acid pool (top right)"
708 "acid_pool_bottomleft",
710 "acid pool (bottom left)"
718 "acid_pool_bottomright",
720 "acid pool (bottom right)"
725 "normal wall (BD style)"
750 "mole (random start direction)"
790 "fire breathing dragon"
793 "em_key_1_file_obsolete",
1103 "char_bracketright",
1198 "expandable_wall_horizontal",
1200 "growing wall (horizontal)"
1203 "expandable_wall_vertical",
1205 "growing wall (vertical)"
1208 "expandable_wall_any",
1210 "growing wall (any direction)"
1233 "em_key_2_file_obsolete",
1238 "em_key_3_file_obsolete",
1243 "em_key_4_file_obsolete",
1295 "port (leading right)"
1300 "port (leading down)"
1305 "port (leading left)"
1313 "sp_gravity_port_right",
1315 "gravity-on/off port (leading right)"
1318 "sp_gravity_port_down",
1320 "gravity-on/off port (leading down)"
1323 "sp_gravity_port_left",
1325 "gravity-on/off port (leading left)"
1328 "sp_gravity_port_up",
1330 "gravity-on/off port (leading up)"
1358 "sp_port_horizontal",
1365 "port (any direction)"
1388 "sp_hardware_base_1",
1393 "sp_hardware_green",
1408 "sp_hardware_yellow",
1413 "sp_hardware_base_2",
1418 "sp_hardware_base_3",
1423 "sp_hardware_base_4",
1428 "sp_hardware_base_5",
1433 "sp_hardware_base_6",
1450 "gray door (EM style, key 1)"
1455 "gray door (EM style, key 2)"
1460 "gray door (EM style, key 3)"
1465 "gray door (EM style, key 4)"
1470 "dynamite (EM style)"
1473 "em_dynamite.active",
1475 "burning dynamite (EM style)"
1503 "dc_gate_white_gray",
1505 "gray door (opened by white key)"
1525 "switch gate (open)"
1528 "switchgate_closed",
1530 "switch gate (closed)"
1533 "switchgate_switch_up",
1534 "switchgate_switch",
1535 "switch for switch gate"
1538 "switchgate_switch_down",
1539 "switchgate_switch",
1540 "switch for switch gate"
1553 "conveyor_belt_1_left",
1555 "conveyor belt 1 (left)"
1558 "conveyor_belt_1_middle",
1560 "conveyor belt 1 (middle)"
1563 "conveyor_belt_1_right",
1565 "conveyor belt 1 (right)"
1568 "conveyor_belt_1_switch_left",
1569 "conveyor_belt_switch",
1570 "switch for conveyor belt 1 (left)"
1573 "conveyor_belt_1_switch_middle",
1574 "conveyor_belt_switch",
1575 "switch for conveyor belt 1 (middle)"
1578 "conveyor_belt_1_switch_right",
1579 "conveyor_belt_switch",
1580 "switch for conveyor belt 1 (right)"
1583 "conveyor_belt_2_left",
1585 "conveyor belt 2 (left)"
1588 "conveyor_belt_2_middle",
1590 "conveyor belt 2 (middle)"
1593 "conveyor_belt_2_right",
1595 "conveyor belt 2 (right)"
1598 "conveyor_belt_2_switch_left",
1599 "conveyor_belt_switch",
1600 "switch for conveyor belt 2 (left)"
1603 "conveyor_belt_2_switch_middle",
1604 "conveyor_belt_switch",
1605 "switch for conveyor belt 2 (middle)"
1608 "conveyor_belt_2_switch_right",
1609 "conveyor_belt_switch",
1610 "switch for conveyor belt 2 (right)"
1613 "conveyor_belt_3_left",
1615 "conveyor belt 3 (left)"
1618 "conveyor_belt_3_middle",
1620 "conveyor belt 3 (middle)"
1623 "conveyor_belt_3_right",
1625 "conveyor belt 3 (right)"
1628 "conveyor_belt_3_switch_left",
1629 "conveyor_belt_switch",
1630 "switch for conveyor belt 3 (left)"
1633 "conveyor_belt_3_switch_middle",
1634 "conveyor_belt_switch",
1635 "switch for conveyor belt 3 (middle)"
1638 "conveyor_belt_3_switch_right",
1639 "conveyor_belt_switch",
1640 "switch for conveyor belt 3 (right)"
1643 "conveyor_belt_4_left",
1645 "conveyor belt 4 (left)"
1648 "conveyor_belt_4_middle",
1650 "conveyor belt 4 (middle)"
1653 "conveyor_belt_4_right",
1655 "conveyor belt 4 (right)"
1658 "conveyor_belt_4_switch_left",
1659 "conveyor_belt_switch",
1660 "switch for conveyor belt 4 (left)"
1663 "conveyor_belt_4_switch_middle",
1664 "conveyor_belt_switch",
1665 "switch for conveyor belt 4 (middle)"
1668 "conveyor_belt_4_switch_right",
1669 "conveyor_belt_switch",
1670 "switch for conveyor belt 4 (right)"
1675 "land mine (not removable)"
1678 "envelope_obsolete",
1680 "envelope (OBSOLETE)"
1685 "light switch (off)"
1688 "light_switch.active",
1695 "sign (exclamation)"
1698 "sign_radioactivity",
1700 "sign (radio activity)"
1710 "sign (wheel chair)"
1733 "sign_entry_forbidden",
1735 "sign (entry forbidden)"
1738 "sign_emergency_exit",
1740 "sign (emergency exit)"
1755 "mole (starts moving left)"
1760 "mole (starts moving right)"
1765 "mole (starts moving up)"
1770 "mole (starts moving down)"
1773 "steelwall_slippery",
1775 "slippery steel wall"
1785 "dx unknown element 15"
1790 "dx unknown element 42"
1805 "shield (deadly, kills enemies)"
1815 "time gate (closed)"
1818 "timegate_switch.active",
1820 "switch for time gate"
1825 "switch for time gate"
1833 "balloon_switch_left",
1835 "wind switch (left)"
1838 "balloon_switch_right",
1840 "wind switch (right)"
1843 "balloon_switch_up",
1848 "balloon_switch_down",
1850 "wind switch (down)"
1853 "balloon_switch_any",
1855 "wind switch (any direction)"
1860 "steel wall 1 (EMC style)"
1865 "steel wall 2 (EMC style)"
1870 "steel wall 3 (EMC style)"
1875 "steel wall 4 (EMC style)"
1880 "normal wall 1 (EMC style)"
1885 "normal wall 2 (EMC style)"
1890 "normal wall 3 (EMC style)"
1895 "normal wall 4 (EMC style)"
1900 "normal wall 5 (EMC style)"
1905 "normal wall 6 (EMC style)"
1910 "normal wall 7 (EMC style)"
1915 "normal wall 8 (EMC style)"
1920 "tube (any direction)"
1933 "tube_vertical_left",
1935 "tube (vertical & left)"
1938 "tube_vertical_right",
1940 "tube (vertical & right)"
1943 "tube_horizontal_up",
1945 "tube (horizontal & up)"
1948 "tube_horizontal_down",
1950 "tube (horizontal & down)"
1960 "tube (left & down)"
1970 "tube (right & down)"
1985 "stable bomb (DX style)"
2495 "custom element 100"
2500 "custom element 101"
2505 "custom element 102"
2510 "custom element 103"
2515 "custom element 104"
2520 "custom element 105"
2525 "custom element 106"
2530 "custom element 107"
2535 "custom element 108"
2540 "custom element 109"
2545 "custom element 110"
2550 "custom element 111"
2555 "custom element 112"
2560 "custom element 113"
2565 "custom element 114"
2570 "custom element 115"
2575 "custom element 116"
2580 "custom element 117"
2585 "custom element 118"
2590 "custom element 119"
2595 "custom element 120"
2600 "custom element 121"
2605 "custom element 122"
2610 "custom element 123"
2615 "custom element 124"
2620 "custom element 125"
2625 "custom element 126"
2630 "custom element 127"
2635 "custom element 128"
2640 "custom element 129"
2645 "custom element 130"
2650 "custom element 131"
2655 "custom element 132"
2660 "custom element 133"
2665 "custom element 134"
2670 "custom element 135"
2675 "custom element 136"
2680 "custom element 137"
2685 "custom element 138"
2690 "custom element 139"
2695 "custom element 140"
2700 "custom element 141"
2705 "custom element 142"
2710 "custom element 143"
2715 "custom element 144"
2720 "custom element 145"
2725 "custom element 146"
2730 "custom element 147"
2735 "custom element 148"
2740 "custom element 149"
2745 "custom element 150"
2750 "custom element 151"
2755 "custom element 152"
2760 "custom element 153"
2765 "custom element 154"
2770 "custom element 155"
2775 "custom element 156"
2780 "custom element 157"
2785 "custom element 158"
2790 "custom element 159"
2795 "custom element 160"
2800 "custom element 161"
2805 "custom element 162"
2810 "custom element 163"
2815 "custom element 164"
2820 "custom element 165"
2825 "custom element 166"
2830 "custom element 167"
2835 "custom element 168"
2840 "custom element 169"
2845 "custom element 170"
2850 "custom element 171"
2855 "custom element 172"
2860 "custom element 173"
2865 "custom element 174"
2870 "custom element 175"
2875 "custom element 176"
2880 "custom element 177"
2885 "custom element 178"
2890 "custom element 179"
2895 "custom element 180"
2900 "custom element 181"
2905 "custom element 182"
2910 "custom element 183"
2915 "custom element 184"
2920 "custom element 185"
2925 "custom element 186"
2930 "custom element 187"
2935 "custom element 188"
2940 "custom element 189"
2945 "custom element 190"
2950 "custom element 191"
2955 "custom element 192"
2960 "custom element 193"
2965 "custom element 194"
2970 "custom element 195"
2975 "custom element 196"
2980 "custom element 197"
2985 "custom element 198"
2990 "custom element 199"
2995 "custom element 200"
3000 "custom element 201"
3005 "custom element 202"
3010 "custom element 203"
3015 "custom element 204"
3020 "custom element 205"
3025 "custom element 206"
3030 "custom element 207"
3035 "custom element 208"
3040 "custom element 209"
3045 "custom element 210"
3050 "custom element 211"
3055 "custom element 212"
3060 "custom element 213"
3065 "custom element 214"
3070 "custom element 215"
3075 "custom element 216"
3080 "custom element 217"
3085 "custom element 218"
3090 "custom element 219"
3095 "custom element 220"
3100 "custom element 221"
3105 "custom element 222"
3110 "custom element 223"
3115 "custom element 224"
3120 "custom element 225"
3125 "custom element 226"
3130 "custom element 227"
3135 "custom element 228"
3140 "custom element 229"
3145 "custom element 230"
3150 "custom element 231"
3155 "custom element 232"
3160 "custom element 233"
3165 "custom element 234"
3170 "custom element 235"
3175 "custom element 236"
3180 "custom element 237"
3185 "custom element 238"
3190 "custom element 239"
3195 "custom element 240"
3200 "custom element 241"
3205 "custom element 242"
3210 "custom element 243"
3215 "custom element 244"
3220 "custom element 245"
3225 "custom element 246"
3230 "custom element 247"
3235 "custom element 248"
3240 "custom element 249"
3245 "custom element 250"
3250 "custom element 251"
3255 "custom element 252"
3260 "custom element 253"
3265 "custom element 254"
3270 "custom element 255"
3275 "custom element 256"
3485 "element triggering change"
3490 "player triggering change"
3493 "sp_gravity_on_port_right",
3494 "sp_gravity_on_port",
3495 "gravity-on port (leading right)"
3498 "sp_gravity_on_port_down",
3499 "sp_gravity_on_port",
3500 "gravity-on port (leading down)"
3503 "sp_gravity_on_port_left",
3504 "sp_gravity_on_port",
3505 "gravity-on port (leading left)"
3508 "sp_gravity_on_port_up",
3509 "sp_gravity_on_port",
3510 "gravity-on port (leading up)"
3513 "sp_gravity_off_port_right",
3514 "sp_gravity_off_port",
3515 "gravity-off port (leading right)"
3518 "sp_gravity_off_port_down",
3519 "sp_gravity_off_port",
3520 "gravity-off port (leading down)"
3523 "sp_gravity_off_port_left",
3524 "sp_gravity_off_port",
3525 "gravity-off port (leading left)"
3528 "sp_gravity_off_port_up",
3529 "sp_gravity_off_port",
3530 "gravity-off port (leading up)"
3533 "balloon_switch_none",
3540 "door 5 (EMC style)",
3545 "door 6 (EMC style)",
3550 "door 7 (EMC style)",
3555 "door 8 (EMC style)",
3560 "gray door (EMC style, key 5)",
3565 "gray door (EMC style, key 6)",
3570 "gray door (EMC style, key 7)",
3575 "gray door (EMC style, key 8)",
3580 "key 5 (EMC style)",
3585 "key 6 (EMC style)",
3590 "key 7 (EMC style)",
3595 "key 8 (EMC style)",
3613 "emc_magic_ball.active",
3615 "magic ball (activated)",
3618 "emc_magic_ball_switch",
3619 "emc_magic_ball_switch",
3620 "magic ball switch (off)",
3623 "emc_magic_ball_switch.active",
3624 "emc_magic_ball_switch",
3625 "magic ball switch (on)",
3628 "emc_spring_bumper",
3629 "emc_spring_bumper",
3650 "normal wall 9 (EMC style)"
3655 "normal wall 10 (EMC style)"
3660 "normal wall 11 (EMC style)"
3665 "normal wall 12 (EMC style)"
3670 "normal wall 13 (EMC style)"
3675 "normal wall 14 (EMC style)"
3680 "normal wall 15 (EMC style)"
3685 "normal wall 16 (EMC style)"
3688 "emc_wall_slippery_1",
3690 "slippery wall 1 (EMC style)"
3693 "emc_wall_slippery_2",
3695 "slippery wall 2 (EMC style)"
3698 "emc_wall_slippery_3",
3700 "slippery wall 3 (EMC style)"
3703 "emc_wall_slippery_4",
3705 "slippery wall 4 (EMC style)"
3725 "CE value of element triggering change"
3730 "CE score of element triggering change"
3735 "CE value of current element"
3740 "CE score of current element"
3745 "yam yam (starts moving left)"
3750 "yam yam (starts moving right)"
3755 "yam yam (starts moving up)"
3760 "yam yam (starts moving down)"
3763 "bd_expandable_wall",
3765 "growing wall (horizontal, BD style)"
3770 "CE 8 positions earlier in list"
3775 "CE 7 positions earlier in list"
3780 "CE 6 positions earlier in list"
3785 "CE 5 positions earlier in list"
3790 "CE 4 positions earlier in list"
3795 "CE 3 positions earlier in list"
3800 "CE 2 positions earlier in list"
3805 "CE 1 position earlier in list"
3810 "the current custom element"
3815 "CE 1 position later in list"
3820 "CE 2 positions later in list"
3825 "CE 3 positions later in list"
3830 "CE 4 positions later in list"
3835 "CE 5 positions later in list"
3840 "CE 6 positions later in list"
3845 "CE 7 positions later in list"
3850 "CE 8 positions later in list"
3855 "this element matches any element"
3863 "steel_char_exclam",
3868 "steel_char_quotedbl",
3873 "steel_char_numbersign",
3878 "steel_char_dollar",
3883 "steel_char_percent",
3888 "steel_char_ampersand",
3893 "steel_char_apostrophe",
3898 "steel_char_parenleft",
3903 "steel_char_parenright",
3908 "steel_char_asterisk",
3928 "steel_char_period",
3993 "steel_char_semicolon",
4008 "steel_char_greater",
4013 "steel_char_question",
4153 "steel_char_bracketleft",
4158 "steel_char_backslash",
4163 "steel_char_bracketright",
4168 "steel_char_asciicircum",
4173 "steel_char_underscore",
4178 "steel_char_copyright",
4180 "steel letter '\xa9'"
4183 "steel_char_aumlaut",
4185 "steel letter '\xc4'"
4188 "steel_char_oumlaut",
4190 "steel letter '\xd6'"
4193 "steel_char_uumlaut",
4195 "steel letter '\xdc'"
4198 "steel_char_degree",
4200 "steel letter '\xb0'"
4203 "steel_char_trademark",
4205 "steel letter '\xae'"
4208 "steel_char_cursor",
4210 "steel letter '\xa0'"
4213 "steel_char_unused",
4218 "steel_char_unused",
4223 "steel_char_unused",
4228 "steel_char_unused",
4233 "steel_char_unused",
4238 "steel_char_unused",
4243 "steel_char_button",
4245 "steel letter 'button'"
4255 "steel letter 'down'"
4308 "steel_exit_closed",
4318 "dc_steelwall_1_left",
4320 "steel wall 1 (left)"
4323 "dc_steelwall_1_right",
4325 "steel wall 1 (right)"
4328 "dc_steelwall_1_top",
4330 "steel wall 1 (top)"
4333 "dc_steelwall_1_bottom",
4335 "steel wall 1 (bottom)"
4338 "dc_steelwall_1_horizontal",
4340 "steel wall 1 (top/bottom)"
4343 "dc_steelwall_1_vertical",
4345 "steel wall 1 (left/right)"
4348 "dc_steelwall_1_topleft",
4350 "steel wall 1 (top/left)"
4353 "dc_steelwall_1_topright",
4355 "steel wall 1 (top/right)"
4358 "dc_steelwall_1_bottomleft",
4360 "steel wall 1 (bottom/left)"
4363 "dc_steelwall_1_bottomright",
4365 "steel wall 1 (bottom/right)"
4368 "dc_steelwall_1_topleft_2",
4370 "steel wall 1 (top/left corner)"
4373 "dc_steelwall_1_topright_2",
4375 "steel wall 1 (top/right corner)"
4378 "dc_steelwall_1_bottomleft_2",
4380 "steel wall 1 (bottom/left corner)"
4383 "dc_steelwall_1_bottomright_2",
4385 "steel wall 1 (bottom/right corner)"
4388 "dc_steelwall_2_left",
4390 "steel wall 2 (left)"
4393 "dc_steelwall_2_right",
4395 "steel wall 2 (right)"
4398 "dc_steelwall_2_top",
4400 "steel wall 2 (top)"
4403 "dc_steelwall_2_bottom",
4405 "steel wall 2 (bottom)"
4408 "dc_steelwall_2_horizontal",
4410 "steel wall 2 (horizontal)"
4413 "dc_steelwall_2_vertical",
4415 "steel wall 2 (vertical)"
4418 "dc_steelwall_2_middle",
4420 "steel wall 2 (middle)"
4423 "dc_steelwall_2_single",
4425 "steel wall 2 (single)"
4428 "dc_switchgate_switch_up",
4429 "switchgate_switch",
4430 "switch for switch gate (steel)"
4433 "dc_switchgate_switch_down",
4434 "switchgate_switch",
4435 "switch for switch gate (steel)"
4438 "dc_timegate_switch",
4440 "switch for time gate (steel)"
4443 "dc_timegate_switch.active",
4445 "switch for time gate (steel)"
4450 "land mine (DC style, removable)"
4453 "expandable_steelwall",
4455 "growing steel wall"
4458 "expandable_steelwall_horizontal",
4460 "growing steel wall (horizontal)"
4463 "expandable_steelwall_vertical",
4465 "growing steel wall (vertical)"
4468 "expandable_steelwall_any",
4470 "growing steel wall (any direction)"
4475 "closed exit (EM style)"
4480 "open exit (EM style)"
4483 "em_steel_exit_closed",
4485 "closed steel exit (EM style)"
4488 "em_steel_exit_open",
4490 "open steel exit (EM style)"
4493 "dc_gate_fake_gray",
4495 "gray door (opened by no key)"
4500 "magic wall (DC style)"
4503 "quicksand_fast_empty",
4505 "fast quicksand (empty)"
4508 "quicksand_fast_full",
4510 "fast quicksand (with rock)"
4513 "from_level_template",
4514 "from_level_template",
4515 "element taken from level template"
4530 "mirror (11.25\xb0)"
4540 "mirror (33.75\xb0)"
4550 "mirror (56.25\xb0)"
4560 "mirror (78.75\xb0)"
4570 "mirror (101.25\xb0)"
4575 "mirror (112.5\xb0)"
4580 "mirror (123.75\xb0)"
4590 "mirror (146.25\xb0)"
4595 "mirror (157.5\xb0)"
4600 "mirror (168.75\xb0)"
4603 "mm_steel_grid_fixed_1",
4604 "mm_steel_grid_fixed",
4605 "fixed steel polarizer (0\xb0)"
4608 "mm_steel_grid_fixed_2",
4609 "mm_steel_grid_fixed",
4610 "fixed steel polarizer (90\xb0)"
4613 "mm_steel_grid_fixed_3",
4614 "mm_steel_grid_fixed",
4615 "fixed steel polarizer (45\xb0)"
4618 "mm_steel_grid_fixed_4",
4619 "mm_steel_grid_fixed",
4620 "fixed steel polarizer (135\xb0)"
4623 "mm_mcduffin.right",
4625 "Gregor McDuffin (looking right)"
4630 "Gregor McDuffin (looking up)"
4635 "Gregor McDuffin (looking left)"
4640 "Gregor McDuffin (looking down)"
4645 "closed exit (MM style)"
4648 "mm_exit_opening_1",
4653 "mm_exit_opening_2",
4660 "open exit (MM style)"
4680 "steel wall 1 (MM style)"
4685 "steel wall 2 (MM style)"
4690 "steel wall 3 (MM style)"
4695 "steel wall 4 (MM style)"
4700 "steel wall 5 (MM style)"
4705 "steel wall 6 (MM style)"
4710 "steel wall 7 (MM style)"
4715 "steel wall 8 (MM style)"
4720 "steel wall 9 (MM style)"
4725 "steel wall 10 (MM style)"
4730 "steel wall 11 (MM style)"
4735 "steel wall 12 (MM style)"
4740 "steel wall 13 (MM style)"
4745 "steel wall 14 (MM style)"
4750 "steel wall 15 (MM style)"
4755 "steel wall 16 (MM style)"
4760 "wooden wall 1 (MM style)"
4765 "wooden wall 2 (MM style)"
4770 "wooden wall 3 (MM style)"
4775 "wooden wall 4 (MM style)"
4780 "wooden wall 5 (MM style)"
4785 "wooden wall 6 (MM style)"
4790 "wooden wall 7 (MM style)"
4795 "wooden wall 8 (MM style)"
4800 "wooden wall 9 (MM style)"
4803 "mm_wooden_wall_10",
4805 "wooden wall 10 (MM style)"
4808 "mm_wooden_wall_11",
4810 "wooden wall 11 (MM style)"
4813 "mm_wooden_wall_12",
4815 "wooden wall 12 (MM style)"
4818 "mm_wooden_wall_13",
4820 "wooden wall 13 (MM style)"
4823 "mm_wooden_wall_14",
4825 "wooden wall 14 (MM style)"
4828 "mm_wooden_wall_15",
4830 "wooden wall 15 (MM style)"
4833 "mm_wooden_wall_16",
4835 "wooden wall 16 (MM style)"
4963 "mm_amoeba_wall_10",
4968 "mm_amoeba_wall_11",
4973 "mm_amoeba_wall_12",
4978 "mm_amoeba_wall_13",
4983 "mm_amoeba_wall_14",
4988 "mm_amoeba_wall_15",
4993 "mm_amoeba_wall_16",
5010 "teleporter (0\xb0)"
5015 "teleporter (22.5\xb0)"
5020 "teleporter (45\xb0)"
5025 "teleporter (67.5\xb0)"
5030 "teleporter (90\xb0)"
5035 "teleporter (112.5\xb0)"
5040 "teleporter (135\xb0)"
5045 "teleporter (157.5\xb0)"
5050 "teleporter (180\xb0)"
5055 "teleporter (202.5\xb0)"
5060 "teleporter (225\xb0)"
5065 "teleporter (247.5\xb0)"
5070 "teleporter (270\xb0)"
5075 "teleporter (292.5\xb0)"
5080 "teleporter (315\xb0)"
5085 "teleporter (337.5\xb0)"
5095 "pac man (starts moving right)"
5100 "pac man (starts moving up)"
5105 "pac man (starts moving left)"
5110 "pac man (starts moving down)"
5120 "polarizer (11.25\xb0)"
5125 "polarizer (22.5\xb0)"
5130 "polarizer (33.75\xb0)"
5135 "polarizer (45\xb0)"
5140 "polarizer (56.25\xb0)"
5145 "polarizer (67.5\xb0)"
5150 "polarizer (78.75\xb0)"
5155 "polarizer (90\xb0)"
5160 "polarizer (101.25\xb0)"
5165 "polarizer (112.5\xb0)"
5170 "polarizer (123.75\xb0)"
5175 "polarizer (135\xb0)"
5180 "polarizer (146.25\xb0)"
5185 "polarizer (157.5\xb0)"
5190 "polarizer (168.75\xb0)"
5193 "mm_polarizer_cross_1",
5194 "mm_polarizer_cross",
5195 "two-way polarizer (0\xb0)"
5198 "mm_polarizer_cross_2",
5199 "mm_polarizer_cross",
5200 "two-way polarizer (22.5\xb0)"
5203 "mm_polarizer_cross_3",
5204 "mm_polarizer_cross",
5205 "two-way polarizer (45\xb0)"
5208 "mm_polarizer_cross_4",
5209 "mm_polarizer_cross",
5210 "two-way polarizer (67.5\xb0)"
5213 "mm_mirror_fixed_1",
5215 "fixed mirror (0\xb0)"
5218 "mm_mirror_fixed_2",
5220 "fixed mirror (0\xb0)"
5223 "mm_mirror_fixed_3",
5225 "fixed mirror (0\xb0)"
5228 "mm_mirror_fixed_4",
5230 "fixed mirror (0\xb0)"
5248 "mm_lightbulb.active",
5270 "extra energy ball (full)"
5273 "mm_wooden_grid_fixed_1",
5274 "mm_wooden_grid_fixed",
5275 "fixed wooden polarizer (0\xb0)"
5278 "mm_wooden_grid_fixed_2",
5279 "mm_wooden_grid_fixed",
5280 "fixed wooden polarizer (90\xb0)"
5283 "mm_wooden_grid_fixed_3",
5284 "mm_wooden_grid_fixed",
5285 "fixed wooden polarizer (45\xb0)"
5288 "mm_wooden_grid_fixed_4",
5289 "mm_wooden_grid_fixed",
5290 "fixed wooden polarizer (135\xb0)"
5295 "extra energy ball (empty)"
5320 "mirror (DF style) (0\xb0)"
5325 "mirror (DF style) (11.25\xb0)"
5330 "mirror (DF style) (22.5\xb0)"
5335 "mirror (DF style) (33.75\xb0)"
5340 "mirror (DF style) (45\xb0)"
5345 "mirror (DF style) (56.25\xb0)"
5350 "mirror (DF style) (67.5\xb0)"
5355 "mirror (DF style) (78.75\xb0)"
5360 "mirror (DF style) (90\xb0)"
5365 "mirror (DF style) (101.25\xb0)"
5370 "mirror (DF style) (112.5\xb0)"
5375 "mirror (DF style) (123.75\xb0)"
5380 "mirror (DF style) (135\xb0)"
5385 "mirror (DF style) (146.25\xb0)"
5390 "mirror (DF style) (157.5\xb0)"
5395 "mirror (DF style) (168.75\xb0)"
5398 "df_wooden_grid_fixed_1",
5399 "df_wooden_grid_fixed",
5400 "fixed wooden polarizer (0\xb0)"
5403 "df_wooden_grid_fixed_2",
5404 "df_wooden_grid_fixed",
5405 "fixed wooden polarizer (22.5\xb0)"
5408 "df_wooden_grid_fixed_3",
5409 "df_wooden_grid_fixed",
5410 "fixed wooden polarizer (45\xb0)"
5413 "df_wooden_grid_fixed_4",
5414 "df_wooden_grid_fixed",
5415 "fixed wooden polarizer (67.5\xb0)"
5418 "df_wooden_grid_fixed_5",
5419 "df_wooden_grid_fixed",
5420 "fixed wooden polarizer (90\xb0)"
5423 "df_wooden_grid_fixed_6",
5424 "df_wooden_grid_fixed",
5425 "fixed wooden polarizer (112.5\xb0)"
5428 "df_wooden_grid_fixed_7",
5429 "df_wooden_grid_fixed",
5430 "fixed wooden polarizer (135\xb0)"
5433 "df_wooden_grid_fixed_8",
5434 "df_wooden_grid_fixed",
5435 "fixed wooden polarizer (157.5\xb0)"
5438 "df_steel_grid_fixed_1",
5439 "df_steel_grid_fixed",
5440 "fixed steel polarizer (0\xb0)"
5443 "df_steel_grid_fixed_2",
5444 "df_steel_grid_fixed",
5445 "fixed steel polarizer (22.5\xb0)"
5448 "df_steel_grid_fixed_3",
5449 "df_steel_grid_fixed",
5450 "fixed steel polarizer (45\xb0)"
5453 "df_steel_grid_fixed_4",
5454 "df_steel_grid_fixed",
5455 "fixed steel polarizer (67.5\xb0)"
5458 "df_steel_grid_fixed_5",
5459 "df_steel_grid_fixed",
5460 "fixed steel polarizer (90\xb0)"
5463 "df_steel_grid_fixed_6",
5464 "df_steel_grid_fixed",
5465 "fixed steel polarizer (112.5\xb0)"
5468 "df_steel_grid_fixed_7",
5469 "df_steel_grid_fixed",
5470 "fixed steel polarizer (135\xb0)"
5473 "df_steel_grid_fixed_8",
5474 "df_steel_grid_fixed",
5475 "fixed steel polarizer (157.5\xb0)"
5480 "wooden wall 1 (DF style)"
5485 "wooden wall 2 (DF style)"
5490 "wooden wall 3 (DF style)"
5495 "wooden wall 4 (DF style)"
5500 "wooden wall 5 (DF style)"
5505 "wooden wall 6 (DF style)"
5510 "wooden wall 7 (DF style)"
5515 "wooden wall 8 (DF style)"
5520 "wooden wall 9 (DF style)"
5523 "df_wooden_wall_10",
5525 "wooden wall 10 (DF style)"
5528 "df_wooden_wall_11",
5530 "wooden wall 11 (DF style)"
5533 "df_wooden_wall_12",
5535 "wooden wall 12 (DF style)"
5538 "df_wooden_wall_13",
5540 "wooden wall 13 (DF style)"
5543 "df_wooden_wall_14",
5545 "wooden wall 14 (DF style)"
5548 "df_wooden_wall_15",
5550 "wooden wall 15 (DF style)"
5553 "df_wooden_wall_16",
5555 "wooden wall 16 (DF style)"
5560 "steel wall 1 (DF style)"
5565 "steel wall 2 (DF style)"
5570 "steel wall 3 (DF style)"
5575 "steel wall 4 (DF style)"
5580 "steel wall 5 (DF style)"
5585 "steel wall 6 (DF style)"
5590 "steel wall 7 (DF style)"
5595 "steel wall 8 (DF style)"
5600 "steel wall 9 (DF style)"
5605 "steel wall 10 (DF style)"
5610 "steel wall 11 (DF style)"
5615 "steel wall 12 (DF style)"
5620 "steel wall 13 (DF style)"
5625 "steel wall 14 (DF style)"
5630 "steel wall 15 (DF style)"
5635 "steel wall 16 (DF style)"
5660 "laser cannon (shooting right)"
5665 "laser cannon (shooting up)"
5670 "laser cannon (shooting left)"
5675 "laser cannon (shooting down)"
5678 "df_receiver.right",
5680 "laser receiver (directed right)"
5685 "laser receiver (directed up)"
5690 "laser receiver (directed left)"
5695 "laser receiver (directed down)"
5698 "df_fibre_optic_red_1",
5700 "red fibre optic (part 1)"
5703 "df_fibre_optic_red_2",
5705 "red fibre optic (part 2)"
5708 "df_fibre_optic_yellow_1",
5710 "yellow fibre optic (part 1)"
5713 "df_fibre_optic_yellow_2",
5715 "yellow fibre optic (part 2)"
5718 "df_fibre_optic_green_1",
5720 "green fibre optic (part 1)"
5723 "df_fibre_optic_green_2",
5725 "green fibre optic (part 2)"
5728 "df_fibre_optic_blue_1",
5730 "blue fibre optic (part 1)"
5733 "df_fibre_optic_blue_2",
5735 "blue fibre optic (part 2)"
5738 "df_mirror_rotating_1",
5739 "df_mirror_rotating",
5740 "rotating mirror (0\xb0)"
5743 "df_mirror_rotating_2",
5744 "df_mirror_rotating",
5745 "rotating mirror (11.25\xb0)"
5748 "df_mirror_rotating_3",
5749 "df_mirror_rotating",
5750 "rotating mirror (22.5\xb0)"
5753 "df_mirror_rotating_4",
5754 "df_mirror_rotating",
5755 "rotating mirror (33.75\xb0)"
5758 "df_mirror_rotating_5",
5759 "df_mirror_rotating",
5760 "rotating mirror (45\xb0)"
5763 "df_mirror_rotating_6",
5764 "df_mirror_rotating",
5765 "rotating mirror (56.25\xb0)"
5768 "df_mirror_rotating_7",
5769 "df_mirror_rotating",
5770 "rotating mirror (67.5\xb0)"
5773 "df_mirror_rotating_8",
5774 "df_mirror_rotating",
5775 "rotating mirror (78.75\xb0)"
5778 "df_mirror_rotating_9",
5779 "df_mirror_rotating",
5780 "rotating mirror (90\xb0)"
5783 "df_mirror_rotating_10",
5784 "df_mirror_rotating",
5785 "rotating mirror (101.25\xb0)"
5788 "df_mirror_rotating_11",
5789 "df_mirror_rotating",
5790 "rotating mirror (112.5\xb0)"
5793 "df_mirror_rotating_12",
5794 "df_mirror_rotating",
5795 "rotating mirror (123.75\xb0)"
5798 "df_mirror_rotating_13",
5799 "df_mirror_rotating",
5800 "rotating mirror (135\xb0)"
5803 "df_mirror_rotating_14",
5804 "df_mirror_rotating",
5805 "rotating mirror (146.25\xb0)"
5808 "df_mirror_rotating_15",
5809 "df_mirror_rotating",
5810 "rotating mirror (157.5\xb0)"
5813 "df_mirror_rotating_16",
5814 "df_mirror_rotating",
5815 "rotating mirror (168.75\xb0)"
5818 "df_wooden_grid_rotating_1",
5819 "df_wooden_grid_rotating",
5820 "rotating wooden polarizer (0\xb0)"
5823 "df_wooden_grid_rotating_2",
5824 "df_wooden_grid_rotating",
5825 "rotating wooden polarizer (22.5\xb0)"
5828 "df_wooden_grid_rotating_3",
5829 "df_wooden_grid_rotating",
5830 "rotating wooden polarizer (45\xb0)"
5833 "df_wooden_grid_rotating_4",
5834 "df_wooden_grid_rotating",
5835 "rotating wooden polarizer (67.5\xb0)"
5838 "df_wooden_grid_rotating_5",
5839 "df_wooden_grid_rotating",
5840 "rotating wooden polarizer (90\xb0)"
5843 "df_wooden_grid_rotating_6",
5844 "df_wooden_grid_rotating",
5845 "rotating wooden polarizer (112.5\xb0)"
5848 "df_wooden_grid_rotating_7",
5849 "df_wooden_grid_rotating",
5850 "rotating wooden polarizer (135\xb0)"
5853 "df_wooden_grid_rotating_8",
5854 "df_wooden_grid_rotating",
5855 "rotating wooden polarizer (157.5\xb0)"
5858 "df_steel_grid_rotating_1",
5859 "df_steel_grid_rotating",
5860 "rotating steel polarizer (0\xb0)"
5863 "df_steel_grid_rotating_2",
5864 "df_steel_grid_rotating",
5865 "rotating steel polarizer (22.5\xb0)"
5868 "df_steel_grid_rotating_3",
5869 "df_steel_grid_rotating",
5870 "rotating steel polarizer (45\xb0)"
5873 "df_steel_grid_rotating_4",
5874 "df_steel_grid_rotating",
5875 "rotating steel polarizer (67.5\xb0)"
5878 "df_steel_grid_rotating_5",
5879 "df_steel_grid_rotating",
5880 "rotating steel polarizer (90\xb0)"
5883 "df_steel_grid_rotating_6",
5884 "df_steel_grid_rotating",
5885 "rotating steel polarizer (112.5\xb0)"
5888 "df_steel_grid_rotating_7",
5889 "df_steel_grid_rotating",
5890 "rotating steel polarizer (135\xb0)"
5893 "df_steel_grid_rotating_8",
5894 "df_steel_grid_rotating",
5895 "rotating steel polarizer (157.5\xb0)"
5898 "mm_teleporter_red_1",
5900 "red teleporter (0\xb0)"
5903 "mm_teleporter_red_2",
5905 "red teleporter (22.5\xb0)"
5908 "mm_teleporter_red_3",
5910 "red teleporter (45\xb0)"
5913 "mm_teleporter_red_4",
5915 "red teleporter (67.5\xb0)"
5918 "mm_teleporter_red_5",
5920 "red teleporter (90\xb0)"
5923 "mm_teleporter_red_6",
5925 "red teleporter (112.5\xb0)"
5928 "mm_teleporter_red_7",
5930 "red teleporter (135\xb0)"
5933 "mm_teleporter_red_8",
5935 "red teleporter (157.5\xb0)"
5938 "mm_teleporter_red_9",
5940 "red teleporter (180\xb0)"
5943 "mm_teleporter_red_10",
5945 "red teleporter (202.5\xb0)"
5948 "mm_teleporter_red_11",
5950 "red teleporter (225\xb0)"
5953 "mm_teleporter_red_12",
5955 "red teleporter (247.5\xb0)"
5958 "mm_teleporter_red_13",
5960 "red teleporter (270\xb0)"
5963 "mm_teleporter_red_14",
5965 "red teleporter (292.5\xb0)"
5968 "mm_teleporter_red_15",
5970 "red teleporter (315\xb0)"
5973 "mm_teleporter_red_16",
5975 "red teleporter (337.5\xb0)"
5978 "mm_teleporter_yellow_1",
5980 "yellow teleporter (0\xb0)"
5983 "mm_teleporter_yellow_2",
5985 "yellow teleporter (22.5\xb0)"
5988 "mm_teleporter_yellow_3",
5990 "yellow teleporter (45\xb0)"
5993 "mm_teleporter_yellow_4",
5995 "yellow teleporter (67.5\xb0)"
5998 "mm_teleporter_yellow_5",
6000 "yellow teleporter (90\xb0)"
6003 "mm_teleporter_yellow_6",
6005 "yellow teleporter (112.5\xb0)"
6008 "mm_teleporter_yellow_7",
6010 "yellow teleporter (135\xb0)"
6013 "mm_teleporter_yellow_8",
6015 "yellow teleporter (157.5\xb0)"
6018 "mm_teleporter_yellow_9",
6020 "yellow teleporter (180\xb0)"
6023 "mm_teleporter_yellow_10",
6025 "yellow teleporter (202.5\xb0)"
6028 "mm_teleporter_yellow_11",
6030 "yellow teleporter (225\xb0)"
6033 "mm_teleporter_yellow_12",
6035 "yellow teleporter (247.5\xb0)"
6038 "mm_teleporter_yellow_13",
6040 "yellow teleporter (270\xb0)"
6043 "mm_teleporter_yellow_14",
6045 "yellow teleporter (292.5\xb0)"
6048 "mm_teleporter_yellow_15",
6050 "yellow teleporter (315\xb0)"
6053 "mm_teleporter_yellow_16",
6055 "yellow teleporter (337.5\xb0)"
6058 "mm_teleporter_green_1",
6060 "green teleporter (0\xb0)"
6063 "mm_teleporter_green_2",
6065 "green teleporter (22.5\xb0)"
6068 "mm_teleporter_green_3",
6070 "green teleporter (45\xb0)"
6073 "mm_teleporter_green_4",
6075 "green teleporter (67.5\xb0)"
6078 "mm_teleporter_green_5",
6080 "green teleporter (90\xb0)"
6083 "mm_teleporter_green_6",
6085 "green teleporter (112.5\xb0)"
6088 "mm_teleporter_green_7",
6090 "green teleporter (135\xb0)"
6093 "mm_teleporter_green_8",
6095 "green teleporter (157.5\xb0)"
6098 "mm_teleporter_green_9",
6100 "green teleporter (180\xb0)"
6103 "mm_teleporter_green_10",
6105 "green teleporter (202.5\xb0)"
6108 "mm_teleporter_green_11",
6110 "green teleporter (225\xb0)"
6113 "mm_teleporter_green_12",
6115 "green teleporter (247.5\xb0)"
6118 "mm_teleporter_green_13",
6120 "green teleporter (270\xb0)"
6123 "mm_teleporter_green_14",
6125 "green teleporter (292.5\xb0)"
6128 "mm_teleporter_green_15",
6130 "green teleporter (315\xb0)"
6133 "mm_teleporter_green_16",
6135 "green teleporter (337.5\xb0)"
6138 "mm_teleporter_blue_1",
6140 "blue teleporter (0\xb0)"
6143 "mm_teleporter_blue_2",
6145 "blue teleporter (22.5\xb0)"
6148 "mm_teleporter_blue_3",
6150 "blue teleporter (45\xb0)"
6153 "mm_teleporter_blue_4",
6155 "blue teleporter (67.5\xb0)"
6158 "mm_teleporter_blue_5",
6160 "blue teleporter (90\xb0)"
6163 "mm_teleporter_blue_6",
6165 "blue teleporter (112.5\xb0)"
6168 "mm_teleporter_blue_7",
6170 "blue teleporter (135\xb0)"
6173 "mm_teleporter_blue_8",
6175 "blue teleporter (157.5\xb0)"
6178 "mm_teleporter_blue_9",
6180 "blue teleporter (180\xb0)"
6183 "mm_teleporter_blue_10",
6185 "blue teleporter (202.5\xb0)"
6188 "mm_teleporter_blue_11",
6190 "blue teleporter (225\xb0)"
6193 "mm_teleporter_blue_12",
6195 "blue teleporter (247.5\xb0)"
6198 "mm_teleporter_blue_13",
6200 "blue teleporter (270\xb0)"
6203 "mm_teleporter_blue_14",
6205 "blue teleporter (292.5\xb0)"
6208 "mm_teleporter_blue_15",
6210 "blue teleporter (315\xb0)"
6213 "mm_teleporter_blue_16",
6215 "blue teleporter (337.5\xb0)"
6225 "pac man (MM style)"
6235 "steel wall (MM style)",
6240 "wooden wall (MM style)",
6265 "steel wall (DF style)",
6270 "wooden wall (DF style)",
6275 "spring (starts moving left)"
6280 "spring (starts moving right)"
6363 // --------------------------------------------------------------------------
6364 // "real" (and therefore drawable) runtime elements
6365 // --------------------------------------------------------------------------
6368 "dynabomb_player_1.active",
6373 "dynabomb_player_2.active",
6378 "dynabomb_player_3.active",
6383 "dynabomb_player_4.active",
6388 "sp_disk_red.active",
6393 "switchgate.opening",
6398 "switchgate.closing",
6423 "invisible_steelwall.active",
6428 "invisible_wall.active",
6433 "invisible_sand.active",
6438 "conveyor_belt_1_left.active",
6443 "conveyor_belt_1_middle.active",
6448 "conveyor_belt_1_right.active",
6453 "conveyor_belt_2_left.active",
6458 "conveyor_belt_2_middle.active",
6463 "conveyor_belt_2_right.active",
6468 "conveyor_belt_3_left.active",
6473 "conveyor_belt_3_middle.active",
6478 "conveyor_belt_3_right.active",
6483 "conveyor_belt_4_left.active",
6488 "conveyor_belt_4_middle.active",
6493 "conveyor_belt_4_right.active",
6508 "steel_exit.opening",
6513 "steel_exit.closing",
6528 "em_steel_exit.opening",
6533 "em_steel_exit.closing",
6553 "sp_terminal.active",
6558 "sp_buggy_base.activating",
6563 "sp_buggy_base.active",
6578 "quicksand.emptying",
6583 "quicksand_fast.emptying",
6588 "magic_wall.active",
6593 "bd_magic_wall.active",
6598 "dc_magic_wall.active",
6608 "bd_magic_wall_full",
6613 "dc_magic_wall_full",
6618 "magic_wall.emptying",
6623 "bd_magic_wall.emptying",
6628 "dc_magic_wall.emptying",
6638 "bd_magic_wall_dead",
6643 "dc_magic_wall_dead",
6649 "emc_fake_grass.active",
6654 "gate_1_gray.active",
6659 "gate_2_gray.active",
6664 "gate_3_gray.active",
6669 "gate_4_gray.active",
6674 "em_gate_1_gray.active",
6679 "em_gate_2_gray.active",
6684 "em_gate_3_gray.active",
6689 "em_gate_4_gray.active",
6694 "emc_gate_5_gray.active",
6699 "emc_gate_6_gray.active",
6704 "emc_gate_7_gray.active",
6709 "emc_gate_8_gray.active",
6714 "dc_gate_white_gray.active",
6719 "emc_dripper.active",
6724 "emc_spring_bumper.active",
6725 "emc_spring_bumper",
6739 "mm_gray_ball.opening",
6744 "mm_ice_wall.shrinking",
6749 "mm_amoeba_wall.growing",
6754 "mm_pacman.eating.right",
6756 "pac man (eating right)"
6759 "mm_pacman.eating.up",
6761 "pac man (eating up)"
6764 "mm_pacman.eating.left",
6766 "pac man (eating left)"
6769 "mm_pacman.eating.down",
6771 "pac man (eating down)"
6774 // --------------------------------------------------------------------------
6775 // "unreal" (and therefore not drawable) runtime elements
6776 // --------------------------------------------------------------------------
6804 "acid_splash_right",
6819 "expandable_wall.growing",
6824 "expandable_steelwall.growing",
6834 "player_is_leaving",
6839 "player_is_exploding_1",
6844 "player_is_exploding_2",
6849 "player_is_exploding_3",
6854 "player_is_exploding_4",
6859 "quicksand.filling",
6864 "quicksand_fast.filling",
6869 "magic_wall.filling",
6874 "bd_magic_wall.filling",
6879 "dc_magic_wall.filling",
6889 "diagonal.shrinking",
6899 // --------------------------------------------------------------------------
6900 // dummy elements (never used as game elements, only used as graphics)
6901 // --------------------------------------------------------------------------
6904 "steelwall_topleft",
6909 "steelwall_topright",
6914 "steelwall_bottomleft",
6919 "steelwall_bottomright",
6924 "steelwall_horizontal",
6929 "steelwall_vertical",
6934 "invisible_steelwall_topleft",
6939 "invisible_steelwall_topright",
6944 "invisible_steelwall_bottomleft",
6949 "invisible_steelwall_bottomright",
6954 "invisible_steelwall_horizontal",
6959 "invisible_steelwall_vertical",
6974 "dynabomb_player_1",
6979 "dynabomb_player_2",
6984 "dynabomb_player_3",
6989 "dynabomb_player_4",
6994 "shield_normal.active",
6999 "shield_deadly.active",
7014 "mm_lightball_blue",
7019 "mm_lightball_yellow",
7024 "mm_mask_mcduffin.right",
7029 "mm_mask_mcduffin.up",
7034 "mm_mask_mcduffin.left",
7039 "mm_mask_mcduffin.down",
7064 "mm_mask_rectangle",
7139 "internal_clipboard_custom",
7141 "empty custom element"
7144 "internal_clipboard_change",
7149 "internal_clipboard_group",
7151 "empty group element"
7159 "internal_cascade_bd",
7161 "show Boulder Dash elements"
7164 "internal_cascade_bd.active",
7166 "hide Boulder Dash elements"
7169 "internal_cascade_em",
7171 "show Emerald Mine elements"
7174 "internal_cascade_em.active",
7176 "hide Emerald Mine elements"
7179 "internal_cascade_emc",
7181 "show Emerald Mine Club elements"
7184 "internal_cascade_emc.active",
7186 "hide Emerald Mine Club elements"
7189 "internal_cascade_rnd",
7191 "show Rocks'n'Diamonds elements"
7194 "internal_cascade_rnd.active",
7196 "hide Rocks'n'Diamonds elements"
7199 "internal_cascade_sb",
7201 "show Sokoban elements"
7204 "internal_cascade_sb.active",
7206 "hide Sokoban elements"
7209 "internal_cascade_sp",
7211 "show Supaplex elements"
7214 "internal_cascade_sp.active",
7216 "hide Supaplex elements"
7219 "internal_cascade_dc",
7221 "show Diamond Caves II elements"
7224 "internal_cascade_dc.active",
7226 "hide Diamond Caves II elements"
7229 "internal_cascade_dx",
7231 "show DX Boulderdash elements"
7234 "internal_cascade_dx.active",
7236 "hide DX Boulderdash elements"
7239 "internal_cascade_mm",
7241 "show Mirror Magic elements"
7244 "internal_cascade_mm.active",
7246 "hide Mirror Magic elements"
7249 "internal_cascade_df",
7251 "show Deflektor elements"
7254 "internal_cascade_df.active",
7256 "hide Deflektor elements"
7259 "internal_cascade_chars",
7261 "show text elements"
7264 "internal_cascade_chars.active",
7266 "hide text elements"
7269 "internal_cascade_steel_chars",
7271 "show steel text elements"
7274 "internal_cascade_steel_chars.active",
7276 "hide steel text elements"
7279 "internal_cascade_ce",
7281 "show custom elements"
7284 "internal_cascade_ce.active",
7286 "hide custom elements"
7289 "internal_cascade_ge",
7291 "show group elements"
7294 "internal_cascade_ge.active",
7296 "hide group elements"
7299 "internal_cascade_es",
7301 "show empty space elements"
7304 "internal_cascade_es.active",
7306 "hide empty space elements"
7309 "internal_cascade_ref",
7311 "show reference elements"
7314 "internal_cascade_ref.active",
7316 "hide reference elements"
7319 "internal_cascade_user",
7321 "show user defined elements"
7324 "internal_cascade_user.active",
7326 "hide user defined elements"
7329 "internal_cascade_dynamic",
7331 "show elements used in this level"
7334 "internal_cascade_dynamic.active",
7336 "hide elements used in this level"
7339 // keyword to stop parser: "ELEMENT_INFO_END" <-- do not change!
7349 // ----------------------------------------------------------------------------
7350 // element action and direction definitions
7351 // ----------------------------------------------------------------------------
7353 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
7355 { ".[DEFAULT]", ACTION_DEFAULT, TRUE },
7356 { ".waiting", ACTION_WAITING, TRUE },
7357 { ".falling", ACTION_FALLING, TRUE },
7358 { ".moving", ACTION_MOVING, TRUE },
7359 { ".digging", ACTION_DIGGING, FALSE },
7360 { ".snapping", ACTION_SNAPPING, FALSE },
7361 { ".collecting", ACTION_COLLECTING, FALSE },
7362 { ".dropping", ACTION_DROPPING, FALSE },
7363 { ".pushing", ACTION_PUSHING, FALSE },
7364 { ".walking", ACTION_WALKING, FALSE },
7365 { ".passing", ACTION_PASSING, FALSE },
7366 { ".impact", ACTION_IMPACT, FALSE },
7367 { ".breaking", ACTION_BREAKING, FALSE },
7368 { ".activating", ACTION_ACTIVATING, FALSE },
7369 { ".deactivating", ACTION_DEACTIVATING, FALSE },
7370 { ".opening", ACTION_OPENING, FALSE },
7371 { ".closing", ACTION_CLOSING, FALSE },
7372 { ".attacking", ACTION_ATTACKING, TRUE },
7373 { ".growing", ACTION_GROWING, TRUE },
7374 { ".shrinking", ACTION_SHRINKING, FALSE },
7375 { ".active", ACTION_ACTIVE, TRUE },
7376 { ".filling", ACTION_FILLING, FALSE },
7377 { ".emptying", ACTION_EMPTYING, FALSE },
7378 { ".changing", ACTION_CHANGING, FALSE },
7379 { ".exploding", ACTION_EXPLODING, FALSE },
7380 { ".boring", ACTION_BORING, FALSE },
7381 { ".boring[1]", ACTION_BORING_1, FALSE },
7382 { ".boring[2]", ACTION_BORING_2, FALSE },
7383 { ".boring[3]", ACTION_BORING_3, FALSE },
7384 { ".boring[4]", ACTION_BORING_4, FALSE },
7385 { ".boring[5]", ACTION_BORING_5, FALSE },
7386 { ".boring[6]", ACTION_BORING_6, FALSE },
7387 { ".boring[7]", ACTION_BORING_7, FALSE },
7388 { ".boring[8]", ACTION_BORING_8, FALSE },
7389 { ".boring[9]", ACTION_BORING_9, FALSE },
7390 { ".boring[10]", ACTION_BORING_10, FALSE },
7391 { ".sleeping", ACTION_SLEEPING, FALSE },
7392 { ".sleeping[1]", ACTION_SLEEPING_1, FALSE },
7393 { ".sleeping[2]", ACTION_SLEEPING_2, FALSE },
7394 { ".sleeping[3]", ACTION_SLEEPING_3, FALSE },
7395 { ".awakening", ACTION_AWAKENING, FALSE },
7396 { ".dying", ACTION_DYING, FALSE },
7397 { ".turning", ACTION_TURNING, FALSE },
7398 { ".turning_from_left", ACTION_TURNING_FROM_LEFT, FALSE },
7399 { ".turning_from_right", ACTION_TURNING_FROM_RIGHT, FALSE },
7400 { ".turning_from_up", ACTION_TURNING_FROM_UP, FALSE },
7401 { ".turning_from_down", ACTION_TURNING_FROM_DOWN, FALSE },
7402 { ".smashed_by_rock", ACTION_SMASHED_BY_ROCK, FALSE },
7403 { ".smashed_by_spring", ACTION_SMASHED_BY_SPRING, FALSE },
7404 { ".eating", ACTION_EATING, FALSE },
7405 { ".twinkling", ACTION_TWINKLING, FALSE },
7406 { ".splashing", ACTION_SPLASHING, FALSE },
7407 { ".hitting", ACTION_HITTING, FALSE },
7408 { ".page[1]", ACTION_PAGE_1, FALSE },
7409 { ".page[2]", ACTION_PAGE_2, FALSE },
7410 { ".page[3]", ACTION_PAGE_3, FALSE },
7411 { ".page[4]", ACTION_PAGE_4, FALSE },
7412 { ".page[5]", ACTION_PAGE_5, FALSE },
7413 { ".page[6]", ACTION_PAGE_6, FALSE },
7414 { ".page[7]", ACTION_PAGE_7, FALSE },
7415 { ".page[8]", ACTION_PAGE_8, FALSE },
7416 { ".page[9]", ACTION_PAGE_9, FALSE },
7417 { ".page[10]", ACTION_PAGE_10, FALSE },
7418 { ".page[11]", ACTION_PAGE_11, FALSE },
7419 { ".page[12]", ACTION_PAGE_12, FALSE },
7420 { ".page[13]", ACTION_PAGE_13, FALSE },
7421 { ".page[14]", ACTION_PAGE_14, FALSE },
7422 { ".page[15]", ACTION_PAGE_15, FALSE },
7423 { ".page[16]", ACTION_PAGE_16, FALSE },
7424 { ".page[17]", ACTION_PAGE_17, FALSE },
7425 { ".page[18]", ACTION_PAGE_18, FALSE },
7426 { ".page[19]", ACTION_PAGE_19, FALSE },
7427 { ".page[20]", ACTION_PAGE_20, FALSE },
7428 { ".page[21]", ACTION_PAGE_21, FALSE },
7429 { ".page[22]", ACTION_PAGE_22, FALSE },
7430 { ".page[23]", ACTION_PAGE_23, FALSE },
7431 { ".page[24]", ACTION_PAGE_24, FALSE },
7432 { ".page[25]", ACTION_PAGE_25, FALSE },
7433 { ".page[26]", ACTION_PAGE_26, FALSE },
7434 { ".page[27]", ACTION_PAGE_27, FALSE },
7435 { ".page[28]", ACTION_PAGE_28, FALSE },
7436 { ".page[29]", ACTION_PAGE_29, FALSE },
7437 { ".page[30]", ACTION_PAGE_30, FALSE },
7438 { ".page[31]", ACTION_PAGE_31, FALSE },
7439 { ".page[32]", ACTION_PAGE_32, FALSE },
7440 { ".part_1", ACTION_PART_1, FALSE },
7441 { ".part_2", ACTION_PART_2, FALSE },
7442 { ".part_3", ACTION_PART_3, FALSE },
7443 { ".part_4", ACTION_PART_4, FALSE },
7444 { ".part_5", ACTION_PART_5, FALSE },
7445 { ".part_6", ACTION_PART_6, FALSE },
7446 { ".part_7", ACTION_PART_7, FALSE },
7447 { ".part_8", ACTION_PART_8, FALSE },
7448 { ".part_9", ACTION_PART_9, FALSE },
7449 { ".part_10", ACTION_PART_10, FALSE },
7450 { ".part_11", ACTION_PART_11, FALSE },
7451 { ".part_12", ACTION_PART_12, FALSE },
7452 { ".part_13", ACTION_PART_13, FALSE },
7453 { ".part_14", ACTION_PART_14, FALSE },
7454 { ".part_15", ACTION_PART_15, FALSE },
7455 { ".part_16", ACTION_PART_16, FALSE },
7456 { ".part_17", ACTION_PART_17, FALSE },
7457 { ".part_18", ACTION_PART_18, FALSE },
7458 { ".part_19", ACTION_PART_19, FALSE },
7459 { ".part_20", ACTION_PART_20, FALSE },
7460 { ".part_21", ACTION_PART_21, FALSE },
7461 { ".part_22", ACTION_PART_22, FALSE },
7462 { ".part_23", ACTION_PART_23, FALSE },
7463 { ".part_24", ACTION_PART_24, FALSE },
7464 { ".part_25", ACTION_PART_25, FALSE },
7465 { ".part_26", ACTION_PART_26, FALSE },
7466 { ".part_27", ACTION_PART_27, FALSE },
7467 { ".part_28", ACTION_PART_28, FALSE },
7468 { ".part_29", ACTION_PART_29, FALSE },
7469 { ".part_30", ACTION_PART_30, FALSE },
7470 { ".part_31", ACTION_PART_31, FALSE },
7471 { ".part_32", ACTION_PART_32, FALSE },
7472 { ".other", ACTION_OTHER, FALSE },
7474 // empty suffix always matches -- check as last entry in InitSoundInfo()
7475 { "", ACTION_DEFAULT, TRUE },
7480 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS_FULL + 1] =
7482 { ".left", MV_BIT_LEFT },
7483 { ".right", MV_BIT_RIGHT },
7484 { ".up", MV_BIT_UP },
7485 { ".down", MV_BIT_DOWN },
7486 { ".upleft", MV_BIT_UP },
7487 { ".upright", MV_BIT_RIGHT },
7488 { ".downleft", MV_BIT_LEFT },
7489 { ".downright", MV_BIT_DOWN },
7494 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1 + 1] =
7496 { ".[DEFAULT]", GFX_SPECIAL_ARG_DEFAULT, },
7497 { ".LOADING", GFX_SPECIAL_ARG_LOADING, },
7498 { ".TITLE_INITIAL", GFX_SPECIAL_ARG_TITLE_INITIAL, },
7499 { ".TITLE_INITIAL_1", GFX_SPECIAL_ARG_TITLE_INITIAL_1, },
7500 { ".TITLE_INITIAL_2", GFX_SPECIAL_ARG_TITLE_INITIAL_2, },
7501 { ".TITLE_INITIAL_3", GFX_SPECIAL_ARG_TITLE_INITIAL_3, },
7502 { ".TITLE_INITIAL_4", GFX_SPECIAL_ARG_TITLE_INITIAL_4, },
7503 { ".TITLE_INITIAL_5", GFX_SPECIAL_ARG_TITLE_INITIAL_5, },
7504 { ".TITLE", GFX_SPECIAL_ARG_TITLE, },
7505 { ".TITLE_1", GFX_SPECIAL_ARG_TITLE_1, },
7506 { ".TITLE_2", GFX_SPECIAL_ARG_TITLE_2, },
7507 { ".TITLE_3", GFX_SPECIAL_ARG_TITLE_3, },
7508 { ".TITLE_4", GFX_SPECIAL_ARG_TITLE_4, },
7509 { ".TITLE_5", GFX_SPECIAL_ARG_TITLE_5, },
7510 { ".MAIN", GFX_SPECIAL_ARG_MAIN, },
7511 { ".NAMES", GFX_SPECIAL_ARG_NAMES, },
7512 { ".LEVELS", GFX_SPECIAL_ARG_LEVELS },
7513 { ".LEVELNR", GFX_SPECIAL_ARG_LEVELNR },
7514 { ".SCORES", GFX_SPECIAL_ARG_SCORES, },
7515 { ".EDITOR", GFX_SPECIAL_ARG_EDITOR, },
7516 { ".INFO", GFX_SPECIAL_ARG_INFO, },
7517 { ".SETUP", GFX_SPECIAL_ARG_SETUP, },
7518 { ".PLAYING", GFX_SPECIAL_ARG_PLAYING, },
7519 { ".DOOR", GFX_SPECIAL_ARG_DOOR, },
7520 { ".TAPE", GFX_SPECIAL_ARG_TAPE, },
7521 { ".PANEL", GFX_SPECIAL_ARG_PANEL, },
7522 { ".PREVIEW", GFX_SPECIAL_ARG_PREVIEW, },
7523 { ".CRUMBLED", GFX_SPECIAL_ARG_CRUMBLED, },
7524 { ".MAINONLY", GFX_SPECIAL_ARG_MAINONLY, },
7525 { ".NAMESONLY", GFX_SPECIAL_ARG_NAMESONLY, },
7526 { ".TYPENAME", GFX_SPECIAL_ARG_TYPENAME, },
7527 { ".TYPENAMES", GFX_SPECIAL_ARG_TYPENAMES, },
7528 { ".SUBMENU", GFX_SPECIAL_ARG_SUBMENU, },
7529 { ".MENU", GFX_SPECIAL_ARG_MENU, },
7530 { ".TOONS", GFX_SPECIAL_ARG_TOONS, },
7531 { ".SCORESOLD", GFX_SPECIAL_ARG_SCORESOLD, },
7532 { ".SCORESNEW", GFX_SPECIAL_ARG_SCORESNEW, },
7533 { ".NO_TITLE", GFX_SPECIAL_ARG_NO_TITLE, },
7534 { ".FADING", GFX_SPECIAL_ARG_FADING, },
7535 { ".QUIT", GFX_SPECIAL_ARG_QUIT, },
7537 // empty suffix always matches -- check as last entry in InitMusicInfo()
7538 { "", GFX_SPECIAL_ARG_DEFAULT, },
7543 #include "conf_var.c" // include auto-generated data structure definitions
7546 // ----------------------------------------------------------------------------
7548 // ----------------------------------------------------------------------------
7550 // Important: When one entry is a prefix of another entry, the longer entry
7551 // must come first, because the dynamic configuration does prefix matching!
7552 // (These definitions must match the corresponding definitions in "main.h"!)
7554 struct FontInfo font_info[NUM_FONTS + 1] =
7556 { "font.initial_1" },
7557 { "font.initial_2" },
7558 { "font.initial_3" },
7559 { "font.initial_4" },
7562 { "font.menu_1.active" },
7563 { "font.menu_2.active" },
7566 { "font.text_1.active" },
7567 { "font.text_2.active" },
7568 { "font.text_3.active" },
7569 { "font.text_4.active" },
7574 { "font.envelope_1" },
7575 { "font.envelope_2" },
7576 { "font.envelope_3" },
7577 { "font.envelope_4" },
7579 { "font.input_1.active" },
7580 { "font.input_2.active" },
7583 { "font.option_off_narrow" },
7584 { "font.option_off" },
7585 { "font.option_on_narrow" },
7586 { "font.option_on" },
7589 { "font.value_old_narrow" },
7590 { "font.value_old" },
7591 { "font.value_narrow" },
7592 { "font.level_number.active" },
7593 { "font.level_number" },
7594 { "font.tape_recorder" },
7595 { "font.game_info" },
7596 { "font.info.elements" },
7597 { "font.info.levelset" },
7598 { "font.main.network_players" },
7603 struct GlobalAnimInfo global_anim_info[NUM_GLOBAL_ANIM_TOKENS + 1];
7605 // this contains predefined structure elements to init "global_anim_info"
7606 struct GlobalAnimNameInfo global_anim_name_info[NUM_GLOBAL_ANIM_TOKENS + 1] =
7608 // (real) graphic definitions used to define animation graphics
7609 { "gfx.global.anim_1", },
7610 { "gfx.global.anim_2", },
7611 { "gfx.global.anim_3", },
7612 { "gfx.global.anim_4", },
7613 { "gfx.global.anim_5", },
7614 { "gfx.global.anim_6", },
7615 { "gfx.global.anim_7", },
7616 { "gfx.global.anim_8", },
7617 { "gfx.global.anim_9", },
7618 { "gfx.global.anim_10", },
7619 { "gfx.global.anim_11", },
7620 { "gfx.global.anim_12", },
7621 { "gfx.global.anim_13", },
7622 { "gfx.global.anim_14", },
7623 { "gfx.global.anim_15", },
7624 { "gfx.global.anim_16", },
7625 { "gfx.global.anim_17", },
7626 { "gfx.global.anim_18", },
7627 { "gfx.global.anim_19", },
7628 { "gfx.global.anim_20", },
7629 { "gfx.global.anim_21", },
7630 { "gfx.global.anim_22", },
7631 { "gfx.global.anim_23", },
7632 { "gfx.global.anim_24", },
7633 { "gfx.global.anim_25", },
7634 { "gfx.global.anim_26", },
7635 { "gfx.global.anim_27", },
7636 { "gfx.global.anim_28", },
7637 { "gfx.global.anim_29", },
7638 { "gfx.global.anim_30", },
7639 { "gfx.global.anim_31", },
7640 { "gfx.global.anim_32", },
7642 // (dummy) graphic definitions used to define animation controls
7643 { "global.anim_1", },
7644 { "global.anim_2", },
7645 { "global.anim_3", },
7646 { "global.anim_4", },
7647 { "global.anim_5", },
7648 { "global.anim_6", },
7649 { "global.anim_7", },
7650 { "global.anim_8", },
7651 { "global.anim_9", },
7652 { "global.anim_10", },
7653 { "global.anim_11", },
7654 { "global.anim_12", },
7655 { "global.anim_13", },
7656 { "global.anim_14", },
7657 { "global.anim_15", },
7658 { "global.anim_16", },
7659 { "global.anim_17", },
7660 { "global.anim_18", },
7661 { "global.anim_19", },
7662 { "global.anim_20", },
7663 { "global.anim_21", },
7664 { "global.anim_22", },
7665 { "global.anim_23", },
7666 { "global.anim_24", },
7667 { "global.anim_25", },
7668 { "global.anim_26", },
7669 { "global.anim_27", },
7670 { "global.anim_28", },
7671 { "global.anim_29", },
7672 { "global.anim_30", },
7673 { "global.anim_31", },
7674 { "global.anim_32", },
7679 struct GlobalAnimEventInfo global_anim_event_info =
7685 // ----------------------------------------------------------------------------
7686 // music token prefix definitions
7687 // ----------------------------------------------------------------------------
7689 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
7691 { "background", TRUE },
7697 // ============================================================================
7699 // ============================================================================
7701 static void print_usage(void)
7704 "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n"
7707 " -b, --basepath DIRECTORY alternative base DIRECTORY\n"
7708 " -l, --level DIRECTORY alternative level DIRECTORY\n"
7709 " -g, --graphics DIRECTORY alternative graphics DIRECTORY\n"
7710 " -s, --sounds DIRECTORY alternative sounds DIRECTORY\n"
7711 " -m, --music DIRECTORY alternative music DIRECTORY\n"
7712 " --mytapes use private tapes for tape tests\n"
7713 " -n, --network network multiplayer game\n"
7714 " --serveronly only start network server\n"
7715 " -v, --verbose verbose mode\n"
7716 " -V, --version show program version\n"
7717 " --debug[=MODE] show (and limit) debug output\n"
7718 " -e, --execute COMMAND execute batch COMMAND\n"
7720 "Valid commands for '--execute' option:\n"
7721 " \"print graphicsinfo.conf\" print default graphics config\n"
7722 " \"print soundsinfo.conf\" print default sounds config\n"
7723 " \"print musicinfo.conf\" print default music config\n"
7724 " \"print editorsetup.conf\" print default editor config\n"
7725 " \"print helpanim.conf\" print default helpanim config\n"
7726 " \"print helptext.conf\" print default helptext config\n"
7727 " \"dump level FILE\" dump level data from FILE\n"
7728 " \"dump tape FILE\" dump tape data from FILE\n"
7729 " \"autoplay LEVELDIR [NR ...]\" play level tapes for LEVELDIR\n"
7730 " \"autoffwd LEVELDIR [NR ...]\" ffwd level tapes for LEVELDIR\n"
7731 " \"autowarp LEVELDIR [NR ...]\" warp level tapes for LEVELDIR\n"
7732 " \"autotest LEVELDIR [NR ...]\" test level tapes for LEVELDIR\n"
7733 " \"autofix LEVELDIR [NR ...]\" test and fix tapes for LEVELDIR\n"
7734 " \"patch tapes MODE LEVELDIR [NR]\" patch level tapes for LEVELDIR\n"
7735 " \"convert LEVELDIR [NR]\" convert levels in LEVELDIR\n"
7736 " \"create sketch images DIRECTORY\" write BMP images to DIRECTORY\n"
7737 " \"create collect image DIRECTORY\" write BMP image to DIRECTORY\n"
7739 program.command_basename);
7742 static void print_version(void)
7744 Print("%s", getProgramInitString());
7746 if (!strEqual(getProgramVersionString(), getProgramRealVersionString()))
7748 Print(" (%s %d.%d.%d.%d%s)",
7749 PROGRAM_TITLE_STRING,
7750 PROGRAM_VERSION_SUPER,
7751 PROGRAM_VERSION_MAJOR,
7752 PROGRAM_VERSION_MINOR,
7753 PROGRAM_VERSION_PATCH,
7754 PROGRAM_VERSION_EXTRA);
7761 SDL_version sdl_version;
7763 SDL_VERSION(&sdl_version);
7764 Print("- SDL %d.%d.%d\n",
7769 SDL_IMAGE_VERSION(&sdl_version);
7770 Print("- SDL_image %d.%d.%d\n",
7775 SDL_MIXER_VERSION(&sdl_version);
7776 Print("- SDL_mixer %d.%d.%d\n",
7781 SDL_NET_VERSION(&sdl_version);
7782 Print("- SDL_net %d.%d.%d\n",
7789 static void InitProgramConfig(char *command_filename)
7791 char *program_title = PROGRAM_TITLE_STRING;
7792 char *program_icon_file = PROGRAM_ICON_FILENAME;
7793 char *program_version = getProgramRealVersionString();
7794 char *config_filename = getProgramConfigFilename(command_filename);
7795 char *userdata_basename = getBaseNameNoSuffix(command_filename);
7796 char *userdata_subdir;
7797 #if defined(PLATFORM_UNIX)
7798 char *userdata_subdir_unix;
7801 // read default program config, if existing
7802 if (fileExists(config_filename))
7804 // if program config file exists, derive Unix user data directory from it
7805 // (but only if the program config file is not generic "setup.conf" file)
7806 if (!strEqual(getBaseNamePtr(config_filename), SETUP_FILENAME))
7808 userdata_basename = getBaseName(config_filename);
7810 if (strSuffix(userdata_basename, ".conf"))
7811 userdata_basename[strlen(userdata_basename) - 5] = '\0';
7814 LoadSetupFromFilename(config_filename);
7817 #if defined(PLATFORM_UNIX)
7818 // set user data directory for Linux/Unix (but not Mac OS X)
7819 userdata_subdir_unix = getStringCat2(".", userdata_basename);
7822 // set program title from potentially redefined program title
7823 if (setup.internal.program_title != NULL &&
7824 strlen(setup.internal.program_title) > 0)
7825 program_title = getStringCopy(setup.internal.program_title);
7827 // set program version from potentially redefined program version
7828 if (setup.internal.program_version != NULL &&
7829 strlen(setup.internal.program_version) > 0)
7830 program_version = getStringCopy(setup.internal.program_version);
7832 // set program icon file from potentially redefined program icon file
7833 if (setup.internal.program_icon_file != NULL &&
7834 strlen(setup.internal.program_icon_file) > 0)
7835 program_icon_file = getStringCopy(setup.internal.program_icon_file);
7837 #if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX)
7838 userdata_subdir = program_title;
7839 #elif defined(PLATFORM_UNIX)
7840 userdata_subdir = userdata_subdir_unix;
7842 userdata_subdir = USERDATA_DIRECTORY_OTHER;
7845 // set default window size (only relevant on program startup)
7846 if (setup.internal.default_window_width != 0 &&
7847 setup.internal.default_window_height != 0)
7849 WIN_XSIZE = setup.internal.default_window_width;
7850 WIN_YSIZE = setup.internal.default_window_height;
7853 InitProgramInfo(command_filename,
7861 GAME_VERSION_ACTUAL);
7864 int main(int argc, char *argv[])
7866 InitProgramConfig(argv[0]);
7868 InitWindowTitleFunction(getWindowTitleString);
7869 InitExitMessageFunction(DisplayExitMessage);
7870 InitExitFunction(CloseAllAndExit);
7871 InitPlatformDependentStuff();
7873 GetOptions(argc, argv, print_usage, print_version);
7879 return 0; // to keep compilers happy