Magic-number elimination.
[open-adventure.git] / advent.h
index 98a52d250e4f57376322a1ad7a365383f1e99d84..45b1c0c034256834de840433552860e28d1940e9 100644 (file)
--- a/advent.h
+++ b/advent.h
 #define STATE_FOUND    0         // After discovered, before messed with
 #define STATE_IN_CAVITY        1         // State value common to all gemstones
 
+/* Special fixed object-state values - integers > 0 are location */
+#define IS_FIXED -1
+#define IS_FREE 0
+
 /* Map a state property value to a negative range, where the object cannot be
  * picked up but the value can be recovered later.  Avoid colliding with -1,
  * which has its own meaning. */