added several new event types that can trigger global animations
[rocksndiamonds.git] / src / libgame / system.h
index 50dc573630763b6f3459a795a7f1b72e1898a217..8bcafb8269c1517ecaf30a8734f9db2668059351 100644 (file)
 #define STYLE_DEFAULT          STYLE_NONE
 
 // values for special global animation events
+#define ANIM_EVENT_UNDEFINED   -1
 #define ANIM_EVENT_NONE                0
 #define ANIM_EVENT_SELF                (1 << 16)
 #define ANIM_EVENT_ANY         (1 << 17)
-
+#define ANIM_EVENT_CLICK       (1 << 18)
+#define ANIM_EVENT_INIT                (1 << 19)
+#define ANIM_EVENT_START       (1 << 20)
+#define ANIM_EVENT_END         (1 << 21)
+#define ANIM_EVENT_POST                (1 << 22)
+
+// anim number: bits 0-7
+// part number: bits 8-15
 #define ANIM_EVENT_ANIM_BIT    0
 #define ANIM_EVENT_PART_BIT    8