added definitions and macro for BD engine runtime elements
authorHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:39:32 +0000 (13:39 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:39:38 +0000 (13:39 +0200)
src/main.h

index 8ae91599a57a75c6d0802113e5373ddf1896d123..063ce800dd5f6bf6cb6c6c9e5dece794218336d0 100644 (file)
                                         (e) == EL_BD_CONVEYOR_DIR_SWITCH ||    \
                                         (e) == EL_BD_CONVEYOR_DIR_SWITCH_ACTIVE)
 
+#define IS_BD_RUNTIME_ELEMENT(e)       ((e) >= EL_BD_RUNTIME_START &&          \
+                                        (e) <= EL_BD_RUNTIME_END)
+
 #define IS_SOKOBAN_OBJECT_OR_FIELD(e)  ((e) == EL_SOKOBAN_OBJECT ||            \
                                         (e) == EL_SOKOBAN_FIELD_EMPTY ||       \
                                         (e) == EL_SOKOBAN_FIELD_FULL)
 #define EL_BD_NUT_BREAKING_4                   1486
 #define EL_BD_END                              EL_BD_NUT_BREAKING_4
 
+#define EL_BD_RUNTIME_START                    EL_BD_SAND_BALL_FALLING
+#define EL_BD_RUNTIME_END                      EL_BD_NUT_BREAKING_4
+
 #define NUM_FILE_ELEMENTS                      1487