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;
36 boolean network_server = FALSE;
37 SDL_Thread *server_thread;
39 int key_joystick_mapping = 0;
41 short Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
42 short Last[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
43 short MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
44 short MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short ChangePage[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
48 short CustomValue[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
49 short Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
50 short Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
51 short StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
52 short Back[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
53 boolean Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
54 boolean Pushed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 short ChangeCount[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
56 short ChangeEvent[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
57 short WasJustMoving[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
58 short WasJustFalling[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short CheckCollision[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
60 short CheckImpact[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
61 short AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
62 short AmoebaCnt[MAX_NUM_AMOEBA];
63 short AmoebaCnt2[MAX_NUM_AMOEBA];
64 short ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
65 short ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
66 short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
67 int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
68 int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
70 int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
71 int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
72 int GfxElement[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 HiScore highscore[MAX_SCORE_ENTRIES];
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)",
6273 // --------------------------------------------------------------------------
6274 // "real" (and therefore drawable) runtime elements
6275 // --------------------------------------------------------------------------
6278 "dynabomb_player_1.active",
6283 "dynabomb_player_2.active",
6288 "dynabomb_player_3.active",
6293 "dynabomb_player_4.active",
6298 "sp_disk_red.active",
6303 "switchgate.opening",
6308 "switchgate.closing",
6333 "invisible_steelwall.active",
6338 "invisible_wall.active",
6343 "invisible_sand.active",
6348 "conveyor_belt_1_left.active",
6353 "conveyor_belt_1_middle.active",
6358 "conveyor_belt_1_right.active",
6363 "conveyor_belt_2_left.active",
6368 "conveyor_belt_2_middle.active",
6373 "conveyor_belt_2_right.active",
6378 "conveyor_belt_3_left.active",
6383 "conveyor_belt_3_middle.active",
6388 "conveyor_belt_3_right.active",
6393 "conveyor_belt_4_left.active",
6398 "conveyor_belt_4_middle.active",
6403 "conveyor_belt_4_right.active",
6418 "steel_exit.opening",
6423 "steel_exit.closing",
6438 "em_steel_exit.opening",
6443 "em_steel_exit.closing",
6463 "sp_terminal.active",
6468 "sp_buggy_base.activating",
6473 "sp_buggy_base.active",
6488 "quicksand.emptying",
6493 "quicksand_fast.emptying",
6498 "magic_wall.active",
6503 "bd_magic_wall.active",
6508 "dc_magic_wall.active",
6518 "bd_magic_wall_full",
6523 "dc_magic_wall_full",
6528 "magic_wall.emptying",
6533 "bd_magic_wall.emptying",
6538 "dc_magic_wall.emptying",
6548 "bd_magic_wall_dead",
6553 "dc_magic_wall_dead",
6559 "emc_fake_grass.active",
6564 "gate_1_gray.active",
6569 "gate_2_gray.active",
6574 "gate_3_gray.active",
6579 "gate_4_gray.active",
6584 "em_gate_1_gray.active",
6589 "em_gate_2_gray.active",
6594 "em_gate_3_gray.active",
6599 "em_gate_4_gray.active",
6604 "emc_gate_5_gray.active",
6609 "emc_gate_6_gray.active",
6614 "emc_gate_7_gray.active",
6619 "emc_gate_8_gray.active",
6624 "dc_gate_white_gray.active",
6629 "emc_dripper.active",
6634 "emc_spring_bumper.active",
6635 "emc_spring_bumper",
6649 "mm_gray_ball.opening",
6654 "mm_ice_wall.shrinking",
6659 "mm_amoeba_wall.growing",
6664 "mm_pacman.eating.right",
6666 "pac man (eating right)"
6669 "mm_pacman.eating.up",
6671 "pac man (eating up)"
6674 "mm_pacman.eating.left",
6676 "pac man (eating left)"
6679 "mm_pacman.eating.down",
6681 "pac man (eating down)"
6684 // --------------------------------------------------------------------------
6685 // "unreal" (and therefore not drawable) runtime elements
6686 // --------------------------------------------------------------------------
6714 "acid_splash_right",
6729 "expandable_wall.growing",
6734 "expandable_steelwall.growing",
6744 "player_is_leaving",
6749 "player_is_exploding_1",
6754 "player_is_exploding_2",
6759 "player_is_exploding_3",
6764 "player_is_exploding_4",
6769 "quicksand.filling",
6774 "quicksand_fast.filling",
6779 "magic_wall.filling",
6784 "bd_magic_wall.filling",
6789 "dc_magic_wall.filling",
6799 "diagonal.shrinking",
6809 // --------------------------------------------------------------------------
6810 // dummy elements (never used as game elements, only used as graphics)
6811 // --------------------------------------------------------------------------
6814 "steelwall_topleft",
6819 "steelwall_topright",
6824 "steelwall_bottomleft",
6829 "steelwall_bottomright",
6834 "steelwall_horizontal",
6839 "steelwall_vertical",
6844 "invisible_steelwall_topleft",
6849 "invisible_steelwall_topright",
6854 "invisible_steelwall_bottomleft",
6859 "invisible_steelwall_bottomright",
6864 "invisible_steelwall_horizontal",
6869 "invisible_steelwall_vertical",
6884 "dynabomb_player_1",
6889 "dynabomb_player_2",
6894 "dynabomb_player_3",
6899 "dynabomb_player_4",
6904 "shield_normal.active",
6909 "shield_deadly.active",
6924 "mm_lightball_blue",
6929 "mm_lightball_yellow",
6934 "mm_mask_mcduffin.right",
6939 "mm_mask_mcduffin.up",
6944 "mm_mask_mcduffin.left",
6949 "mm_mask_mcduffin.down",
6974 "mm_mask_rectangle",
7049 "internal_clipboard_custom",
7051 "empty custom element"
7054 "internal_clipboard_change",
7059 "internal_clipboard_group",
7061 "empty group element"
7069 "internal_cascade_bd",
7071 "show Boulder Dash elements"
7074 "internal_cascade_bd.active",
7076 "hide Boulder Dash elements"
7079 "internal_cascade_em",
7081 "show Emerald Mine elements"
7084 "internal_cascade_em.active",
7086 "hide Emerald Mine elements"
7089 "internal_cascade_emc",
7091 "show Emerald Mine Club elements"
7094 "internal_cascade_emc.active",
7096 "hide Emerald Mine Club elements"
7099 "internal_cascade_rnd",
7101 "show Rocks'n'Diamonds elements"
7104 "internal_cascade_rnd.active",
7106 "hide Rocks'n'Diamonds elements"
7109 "internal_cascade_sb",
7111 "show Sokoban elements"
7114 "internal_cascade_sb.active",
7116 "hide Sokoban elements"
7119 "internal_cascade_sp",
7121 "show Supaplex elements"
7124 "internal_cascade_sp.active",
7126 "hide Supaplex elements"
7129 "internal_cascade_dc",
7131 "show Diamond Caves II elements"
7134 "internal_cascade_dc.active",
7136 "hide Diamond Caves II elements"
7139 "internal_cascade_dx",
7141 "show DX Boulderdash elements"
7144 "internal_cascade_dx.active",
7146 "hide DX Boulderdash elements"
7149 "internal_cascade_mm",
7151 "show Mirror Magic elements"
7154 "internal_cascade_mm.active",
7156 "hide Mirror Magic elements"
7159 "internal_cascade_df",
7161 "show Deflektor elements"
7164 "internal_cascade_df.active",
7166 "hide Deflektor elements"
7169 "internal_cascade_chars",
7171 "show text elements"
7174 "internal_cascade_chars.active",
7176 "hide text elements"
7179 "internal_cascade_steel_chars",
7181 "show steel text elements"
7184 "internal_cascade_steel_chars.active",
7186 "hide steel text elements"
7189 "internal_cascade_ce",
7191 "show custom elements"
7194 "internal_cascade_ce.active",
7196 "hide custom elements"
7199 "internal_cascade_ge",
7201 "show group elements"
7204 "internal_cascade_ge.active",
7206 "hide group elements"
7209 "internal_cascade_ref",
7211 "show reference elements"
7214 "internal_cascade_ref.active",
7216 "hide reference elements"
7219 "internal_cascade_user",
7221 "show user defined elements"
7224 "internal_cascade_user.active",
7226 "hide user defined elements"
7229 "internal_cascade_dynamic",
7231 "show elements used in this level"
7234 "internal_cascade_dynamic.active",
7236 "hide elements used in this level"
7239 // keyword to stop parser: "ELEMENT_INFO_END" <-- do not change!
7249 // ----------------------------------------------------------------------------
7250 // element action and direction definitions
7251 // ----------------------------------------------------------------------------
7253 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
7255 { ".[DEFAULT]", ACTION_DEFAULT, TRUE },
7256 { ".waiting", ACTION_WAITING, TRUE },
7257 { ".falling", ACTION_FALLING, TRUE },
7258 { ".moving", ACTION_MOVING, TRUE },
7259 { ".digging", ACTION_DIGGING, FALSE },
7260 { ".snapping", ACTION_SNAPPING, FALSE },
7261 { ".collecting", ACTION_COLLECTING, FALSE },
7262 { ".dropping", ACTION_DROPPING, FALSE },
7263 { ".pushing", ACTION_PUSHING, FALSE },
7264 { ".walking", ACTION_WALKING, FALSE },
7265 { ".passing", ACTION_PASSING, FALSE },
7266 { ".impact", ACTION_IMPACT, FALSE },
7267 { ".breaking", ACTION_BREAKING, FALSE },
7268 { ".activating", ACTION_ACTIVATING, FALSE },
7269 { ".deactivating", ACTION_DEACTIVATING, FALSE },
7270 { ".opening", ACTION_OPENING, FALSE },
7271 { ".closing", ACTION_CLOSING, FALSE },
7272 { ".attacking", ACTION_ATTACKING, TRUE },
7273 { ".growing", ACTION_GROWING, TRUE },
7274 { ".shrinking", ACTION_SHRINKING, FALSE },
7275 { ".active", ACTION_ACTIVE, TRUE },
7276 { ".filling", ACTION_FILLING, FALSE },
7277 { ".emptying", ACTION_EMPTYING, FALSE },
7278 { ".changing", ACTION_CHANGING, FALSE },
7279 { ".exploding", ACTION_EXPLODING, FALSE },
7280 { ".boring", ACTION_BORING, FALSE },
7281 { ".boring[1]", ACTION_BORING_1, FALSE },
7282 { ".boring[2]", ACTION_BORING_2, FALSE },
7283 { ".boring[3]", ACTION_BORING_3, FALSE },
7284 { ".boring[4]", ACTION_BORING_4, FALSE },
7285 { ".boring[5]", ACTION_BORING_5, FALSE },
7286 { ".boring[6]", ACTION_BORING_6, FALSE },
7287 { ".boring[7]", ACTION_BORING_7, FALSE },
7288 { ".boring[8]", ACTION_BORING_8, FALSE },
7289 { ".boring[9]", ACTION_BORING_9, FALSE },
7290 { ".boring[10]", ACTION_BORING_10, FALSE },
7291 { ".sleeping", ACTION_SLEEPING, FALSE },
7292 { ".sleeping[1]", ACTION_SLEEPING_1, FALSE },
7293 { ".sleeping[2]", ACTION_SLEEPING_2, FALSE },
7294 { ".sleeping[3]", ACTION_SLEEPING_3, FALSE },
7295 { ".awakening", ACTION_AWAKENING, FALSE },
7296 { ".dying", ACTION_DYING, FALSE },
7297 { ".turning", ACTION_TURNING, FALSE },
7298 { ".turning_from_left", ACTION_TURNING_FROM_LEFT, FALSE },
7299 { ".turning_from_right", ACTION_TURNING_FROM_RIGHT, FALSE },
7300 { ".turning_from_up", ACTION_TURNING_FROM_UP, FALSE },
7301 { ".turning_from_down", ACTION_TURNING_FROM_DOWN, FALSE },
7302 { ".smashed_by_rock", ACTION_SMASHED_BY_ROCK, FALSE },
7303 { ".smashed_by_spring", ACTION_SMASHED_BY_SPRING, FALSE },
7304 { ".eating", ACTION_EATING, FALSE },
7305 { ".twinkling", ACTION_TWINKLING, FALSE },
7306 { ".splashing", ACTION_SPLASHING, FALSE },
7307 { ".hitting", ACTION_HITTING, FALSE },
7308 { ".page[1]", ACTION_PAGE_1, FALSE },
7309 { ".page[2]", ACTION_PAGE_2, FALSE },
7310 { ".page[3]", ACTION_PAGE_3, FALSE },
7311 { ".page[4]", ACTION_PAGE_4, FALSE },
7312 { ".page[5]", ACTION_PAGE_5, FALSE },
7313 { ".page[6]", ACTION_PAGE_6, FALSE },
7314 { ".page[7]", ACTION_PAGE_7, FALSE },
7315 { ".page[8]", ACTION_PAGE_8, FALSE },
7316 { ".page[9]", ACTION_PAGE_9, FALSE },
7317 { ".page[10]", ACTION_PAGE_10, FALSE },
7318 { ".page[11]", ACTION_PAGE_11, FALSE },
7319 { ".page[12]", ACTION_PAGE_12, FALSE },
7320 { ".page[13]", ACTION_PAGE_13, FALSE },
7321 { ".page[14]", ACTION_PAGE_14, FALSE },
7322 { ".page[15]", ACTION_PAGE_15, FALSE },
7323 { ".page[16]", ACTION_PAGE_16, FALSE },
7324 { ".page[17]", ACTION_PAGE_17, FALSE },
7325 { ".page[18]", ACTION_PAGE_18, FALSE },
7326 { ".page[19]", ACTION_PAGE_19, FALSE },
7327 { ".page[20]", ACTION_PAGE_20, FALSE },
7328 { ".page[21]", ACTION_PAGE_21, FALSE },
7329 { ".page[22]", ACTION_PAGE_22, FALSE },
7330 { ".page[23]", ACTION_PAGE_23, FALSE },
7331 { ".page[24]", ACTION_PAGE_24, FALSE },
7332 { ".page[25]", ACTION_PAGE_25, FALSE },
7333 { ".page[26]", ACTION_PAGE_26, FALSE },
7334 { ".page[27]", ACTION_PAGE_27, FALSE },
7335 { ".page[28]", ACTION_PAGE_28, FALSE },
7336 { ".page[29]", ACTION_PAGE_29, FALSE },
7337 { ".page[30]", ACTION_PAGE_30, FALSE },
7338 { ".page[31]", ACTION_PAGE_31, FALSE },
7339 { ".page[32]", ACTION_PAGE_32, FALSE },
7340 { ".part_1", ACTION_PART_1, FALSE },
7341 { ".part_2", ACTION_PART_2, FALSE },
7342 { ".part_3", ACTION_PART_3, FALSE },
7343 { ".part_4", ACTION_PART_4, FALSE },
7344 { ".part_5", ACTION_PART_5, FALSE },
7345 { ".part_6", ACTION_PART_6, FALSE },
7346 { ".part_7", ACTION_PART_7, FALSE },
7347 { ".part_8", ACTION_PART_8, FALSE },
7348 { ".part_9", ACTION_PART_9, FALSE },
7349 { ".part_10", ACTION_PART_10, FALSE },
7350 { ".part_11", ACTION_PART_11, FALSE },
7351 { ".part_12", ACTION_PART_12, FALSE },
7352 { ".part_13", ACTION_PART_13, FALSE },
7353 { ".part_14", ACTION_PART_14, FALSE },
7354 { ".part_15", ACTION_PART_15, FALSE },
7355 { ".part_16", ACTION_PART_16, FALSE },
7356 { ".part_17", ACTION_PART_17, FALSE },
7357 { ".part_18", ACTION_PART_18, FALSE },
7358 { ".part_19", ACTION_PART_19, FALSE },
7359 { ".part_20", ACTION_PART_20, FALSE },
7360 { ".part_21", ACTION_PART_21, FALSE },
7361 { ".part_22", ACTION_PART_22, FALSE },
7362 { ".part_23", ACTION_PART_23, FALSE },
7363 { ".part_24", ACTION_PART_24, FALSE },
7364 { ".part_25", ACTION_PART_25, FALSE },
7365 { ".part_26", ACTION_PART_26, FALSE },
7366 { ".part_27", ACTION_PART_27, FALSE },
7367 { ".part_28", ACTION_PART_28, FALSE },
7368 { ".part_29", ACTION_PART_29, FALSE },
7369 { ".part_30", ACTION_PART_30, FALSE },
7370 { ".part_31", ACTION_PART_31, FALSE },
7371 { ".part_32", ACTION_PART_32, FALSE },
7372 { ".other", ACTION_OTHER, FALSE },
7374 // empty suffix always matches -- check as last entry in InitSoundInfo()
7375 { "", ACTION_DEFAULT, TRUE },
7380 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS_FULL + 1] =
7382 { ".left", MV_BIT_LEFT },
7383 { ".right", MV_BIT_RIGHT },
7384 { ".up", MV_BIT_UP },
7385 { ".down", MV_BIT_DOWN },
7386 { ".upleft", MV_BIT_UP },
7387 { ".upright", MV_BIT_RIGHT },
7388 { ".downleft", MV_BIT_LEFT },
7389 { ".downright", MV_BIT_DOWN },
7394 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1 + 1] =
7396 { ".[DEFAULT]", GFX_SPECIAL_ARG_DEFAULT, },
7397 { ".LOADING", GFX_SPECIAL_ARG_LOADING, },
7398 { ".TITLE_INITIAL", GFX_SPECIAL_ARG_TITLE_INITIAL, },
7399 { ".TITLE_INITIAL_1", GFX_SPECIAL_ARG_TITLE_INITIAL_1, },
7400 { ".TITLE_INITIAL_2", GFX_SPECIAL_ARG_TITLE_INITIAL_2, },
7401 { ".TITLE_INITIAL_3", GFX_SPECIAL_ARG_TITLE_INITIAL_3, },
7402 { ".TITLE_INITIAL_4", GFX_SPECIAL_ARG_TITLE_INITIAL_4, },
7403 { ".TITLE_INITIAL_5", GFX_SPECIAL_ARG_TITLE_INITIAL_5, },
7404 { ".TITLE", GFX_SPECIAL_ARG_TITLE, },
7405 { ".TITLE_1", GFX_SPECIAL_ARG_TITLE_1, },
7406 { ".TITLE_2", GFX_SPECIAL_ARG_TITLE_2, },
7407 { ".TITLE_3", GFX_SPECIAL_ARG_TITLE_3, },
7408 { ".TITLE_4", GFX_SPECIAL_ARG_TITLE_4, },
7409 { ".TITLE_5", GFX_SPECIAL_ARG_TITLE_5, },
7410 { ".MAIN", GFX_SPECIAL_ARG_MAIN, },
7411 { ".LEVELS", GFX_SPECIAL_ARG_LEVELS },
7412 { ".LEVELNR", GFX_SPECIAL_ARG_LEVELNR },
7413 { ".SCORES", GFX_SPECIAL_ARG_SCORES, },
7414 { ".EDITOR", GFX_SPECIAL_ARG_EDITOR, },
7415 { ".INFO", GFX_SPECIAL_ARG_INFO, },
7416 { ".SETUP", GFX_SPECIAL_ARG_SETUP, },
7417 { ".PLAYING", GFX_SPECIAL_ARG_PLAYING, },
7418 { ".DOOR", GFX_SPECIAL_ARG_DOOR, },
7419 { ".TAPE", GFX_SPECIAL_ARG_TAPE, },
7420 { ".PANEL", GFX_SPECIAL_ARG_PANEL, },
7421 { ".PREVIEW", GFX_SPECIAL_ARG_PREVIEW, },
7422 { ".CRUMBLED", GFX_SPECIAL_ARG_CRUMBLED, },
7423 { ".MAINONLY", GFX_SPECIAL_ARG_MAINONLY, },
7424 { ".TYPENAME", GFX_SPECIAL_ARG_TYPENAME, },
7425 { ".SUBMENU", GFX_SPECIAL_ARG_SUBMENU, },
7426 { ".MENU", GFX_SPECIAL_ARG_MENU, },
7427 { ".TOONS", GFX_SPECIAL_ARG_TOONS, },
7428 { ".SCORESOLD", GFX_SPECIAL_ARG_SCORESOLD, },
7429 { ".SCORESNEW", GFX_SPECIAL_ARG_SCORESNEW, },
7430 { ".NO_TITLE", GFX_SPECIAL_ARG_NO_TITLE, },
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 // ----------------------------------------------------------------------------
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" },
7495 { "font.main.network_players" },
7500 struct GlobalAnimInfo global_anim_info[NUM_GLOBAL_ANIM_TOKENS + 1];
7502 // this contains predefined structure elements to init "global_anim_info"
7503 struct GlobalAnimNameInfo global_anim_name_info[NUM_GLOBAL_ANIM_TOKENS + 1] =
7505 // (real) graphic definitions used to define animation graphics
7506 { "gfx.global.anim_1", },
7507 { "gfx.global.anim_2", },
7508 { "gfx.global.anim_3", },
7509 { "gfx.global.anim_4", },
7510 { "gfx.global.anim_5", },
7511 { "gfx.global.anim_6", },
7512 { "gfx.global.anim_7", },
7513 { "gfx.global.anim_8", },
7514 { "gfx.global.anim_9", },
7515 { "gfx.global.anim_10", },
7516 { "gfx.global.anim_11", },
7517 { "gfx.global.anim_12", },
7518 { "gfx.global.anim_13", },
7519 { "gfx.global.anim_14", },
7520 { "gfx.global.anim_15", },
7521 { "gfx.global.anim_16", },
7522 { "gfx.global.anim_17", },
7523 { "gfx.global.anim_18", },
7524 { "gfx.global.anim_19", },
7525 { "gfx.global.anim_20", },
7526 { "gfx.global.anim_21", },
7527 { "gfx.global.anim_22", },
7528 { "gfx.global.anim_23", },
7529 { "gfx.global.anim_24", },
7530 { "gfx.global.anim_25", },
7531 { "gfx.global.anim_26", },
7532 { "gfx.global.anim_27", },
7533 { "gfx.global.anim_28", },
7534 { "gfx.global.anim_29", },
7535 { "gfx.global.anim_30", },
7536 { "gfx.global.anim_31", },
7537 { "gfx.global.anim_32", },
7539 // (dummy) graphic definitions used to define animation controls
7540 { "global.anim_1", },
7541 { "global.anim_2", },
7542 { "global.anim_3", },
7543 { "global.anim_4", },
7544 { "global.anim_5", },
7545 { "global.anim_6", },
7546 { "global.anim_7", },
7547 { "global.anim_8", },
7548 { "global.anim_9", },
7549 { "global.anim_10", },
7550 { "global.anim_11", },
7551 { "global.anim_12", },
7552 { "global.anim_13", },
7553 { "global.anim_14", },
7554 { "global.anim_15", },
7555 { "global.anim_16", },
7556 { "global.anim_17", },
7557 { "global.anim_18", },
7558 { "global.anim_19", },
7559 { "global.anim_20", },
7560 { "global.anim_21", },
7561 { "global.anim_22", },
7562 { "global.anim_23", },
7563 { "global.anim_24", },
7564 { "global.anim_25", },
7565 { "global.anim_26", },
7566 { "global.anim_27", },
7567 { "global.anim_28", },
7568 { "global.anim_29", },
7569 { "global.anim_30", },
7570 { "global.anim_31", },
7571 { "global.anim_32", },
7576 struct GlobalAnimEventInfo global_anim_event_info =
7582 // ----------------------------------------------------------------------------
7583 // music token prefix definitions
7584 // ----------------------------------------------------------------------------
7586 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
7588 { "background", TRUE },
7594 // ============================================================================
7596 // ============================================================================
7598 static void print_usage(void)
7601 "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n"
7604 " -b, --basepath DIRECTORY alternative base DIRECTORY\n"
7605 " -l, --level DIRECTORY alternative level DIRECTORY\n"
7606 " -g, --graphics DIRECTORY alternative graphics DIRECTORY\n"
7607 " -s, --sounds DIRECTORY alternative sounds DIRECTORY\n"
7608 " -m, --music DIRECTORY alternative music DIRECTORY\n"
7609 " --mytapes use private tapes for tape tests\n"
7610 " -n, --network network multiplayer game\n"
7611 " --serveronly only start network server\n"
7612 " -v, --verbose verbose mode\n"
7613 " -V, --version show program version\n"
7614 " --debug display debugging information\n"
7615 " -e, --execute COMMAND execute batch COMMAND\n"
7617 "Valid commands for '--execute' option:\n"
7618 " \"print graphicsinfo.conf\" print default graphics config\n"
7619 " \"print soundsinfo.conf\" print default sounds config\n"
7620 " \"print musicinfo.conf\" print default music config\n"
7621 " \"print editorsetup.conf\" print default editor config\n"
7622 " \"print helpanim.conf\" print default helpanim config\n"
7623 " \"print helptext.conf\" print default helptext config\n"
7624 " \"dump level FILE\" dump level data from FILE\n"
7625 " \"dump tape FILE\" dump tape data from FILE\n"
7626 " \"autotest LEVELDIR [NR ...]\" test level tapes for LEVELDIR\n"
7627 " \"autoplay LEVELDIR [NR ...]\" play level tapes for LEVELDIR\n"
7628 " \"autoffwd LEVELDIR [NR ...]\" ffwd level tapes for LEVELDIR\n"
7629 " \"autowarp LEVELDIR [NR ...]\" warp level tapes for LEVELDIR\n"
7630 " \"convert LEVELDIR [NR]\" convert levels in LEVELDIR\n"
7631 " \"create images DIRECTORY\" write BMP images to DIRECTORY\n"
7632 " \"create CE image DIRECTORY\" write BMP image to DIRECTORY\n"
7634 program.command_basename);
7637 static void print_version(void)
7639 Print("%s", getProgramInitString());
7641 if (!strEqual(getProgramVersionString(), getProgramRealVersionString()))
7643 Print(" (%s %d.%d.%d.%d%s)",
7644 PROGRAM_TITLE_STRING,
7645 PROGRAM_VERSION_SUPER,
7646 PROGRAM_VERSION_MAJOR,
7647 PROGRAM_VERSION_MINOR,
7648 PROGRAM_VERSION_PATCH,
7649 PROGRAM_VERSION_EXTRA);
7656 SDL_version sdl_version;
7658 SDL_VERSION(&sdl_version);
7659 Print("- SDL %d.%d.%d\n",
7664 SDL_IMAGE_VERSION(&sdl_version);
7665 Print("- SDL_image %d.%d.%d\n",
7670 SDL_MIXER_VERSION(&sdl_version);
7671 Print("- SDL_mixer %d.%d.%d\n",
7676 SDL_NET_VERSION(&sdl_version);
7677 Print("- SDL_net %d.%d.%d\n",
7684 static void InitProgramConfig(char *command_filename)
7686 char *program_title = PROGRAM_TITLE_STRING;
7687 char *program_icon_file = PROGRAM_ICON_FILENAME;
7688 char *program_version = getProgramRealVersionString();
7689 char *config_filename = getProgramConfigFilename(command_filename);
7690 char *userdata_basename = getBaseNameNoSuffix(command_filename);
7691 char *userdata_subdir;
7692 #if defined(PLATFORM_UNIX)
7693 char *userdata_subdir_unix;
7696 // read default program config, if existing
7697 if (fileExists(config_filename))
7699 // if program config file exists, derive Unix user data directory from it
7700 // (but only if the program config file is not generic "setup.conf" file)
7701 if (!strEqual(getBaseNamePtr(config_filename), SETUP_FILENAME))
7703 userdata_basename = getBaseName(config_filename);
7705 if (strSuffix(userdata_basename, ".conf"))
7706 userdata_basename[strlen(userdata_basename) - 5] = '\0';
7709 LoadSetupFromFilename(config_filename);
7712 #if defined(PLATFORM_UNIX)
7713 // set user data directory for Linux/Unix (but not Mac OS X)
7714 userdata_subdir_unix = getStringCat2(".", userdata_basename);
7717 // set program title from potentially redefined program title
7718 if (setup.internal.program_title != NULL &&
7719 strlen(setup.internal.program_title) > 0)
7720 program_title = getStringCopy(setup.internal.program_title);
7722 // set program version from potentially redefined program version
7723 if (setup.internal.program_version != NULL &&
7724 strlen(setup.internal.program_version) > 0)
7725 program_version = getStringCopy(setup.internal.program_version);
7727 // set program icon file from potentially redefined program icon file
7728 if (setup.internal.program_icon_file != NULL &&
7729 strlen(setup.internal.program_icon_file) > 0)
7730 program_icon_file = getStringCopy(setup.internal.program_icon_file);
7732 #if defined(PLATFORM_WIN32) || defined(PLATFORM_MACOSX)
7733 userdata_subdir = program_title;
7734 #elif defined(PLATFORM_UNIX)
7735 userdata_subdir = userdata_subdir_unix;
7737 userdata_subdir = USERDATA_DIRECTORY_OTHER;
7740 // set default window size (only relevant on program startup)
7741 if (setup.internal.default_window_width != 0 &&
7742 setup.internal.default_window_height != 0)
7744 WIN_XSIZE = setup.internal.default_window_width;
7745 WIN_YSIZE = setup.internal.default_window_height;
7748 InitProgramInfo(command_filename,
7756 GAME_VERSION_ACTUAL);
7759 int main(int argc, char *argv[])
7761 InitProgramConfig(argv[0]);
7763 InitWindowTitleFunction(getWindowTitleString);
7764 InitExitMessageFunction(DisplayExitMessage);
7765 InitExitFunction(CloseAllAndExit);
7766 InitPlatformDependentStuff();
7768 GetOptions(argc, argv, print_usage, print_version);
7774 return 0; // to keep compilers happy