aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/scumm.h
diff options
context:
space:
mode:
authorTobias Gunkel2012-01-29 17:03:37 +0100
committerTobias Gunkel2012-02-11 08:29:51 +0100
commitd4ddd2ca840fc91cd75cdb4545db30f2f0a78722 (patch)
treed104b7039a574f3a1e49953cccf4bcd56418923a /engines/scumm/scumm.h
parentf5faa4554defa2e220f3b0507c8fefb8f13182c6 (diff)
downloadscummvm-rg350-d4ddd2ca840fc91cd75cdb4545db30f2f0a78722.tar.gz
scummvm-rg350-d4ddd2ca840fc91cd75cdb4545db30f2f0a78722.tar.bz2
scummvm-rg350-d4ddd2ca840fc91cd75cdb4545db30f2f0a78722.zip
SCUMM: introduce constants for _userState for cleaner and easier to understand code
Diffstat (limited to 'engines/scumm/scumm.h')
-rw-r--r--engines/scumm/scumm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/scumm/scumm.h b/engines/scumm/scumm.h
index 042a3a5d47..fa04c5b616 100644
--- a/engines/scumm/scumm.h
+++ b/engines/scumm/scumm.h
@@ -303,6 +303,19 @@ struct SaveStateMetaInfos {
uint32 playtime;
};
+enum UserStates {
+ USERSTATE_SET_FREEZE = 0x01, // freeze scripts if USERSTATE_FREEZE_ON is set, unfreeze otherwise
+ USERSTATE_SET_CURSOR = 0x02, // shows cursor if USERSTATE_CURSOR_ON is set, hides it otherwise
+ USERSTATE_SET_IFACE = 0x04, // change user-interface (sentence-line, inventory, verb-area)
+ USERSTATE_FREEZE_ON = 0x08, // only interpreted if USERSTATE_SET_FREEZE is set
+ USERSTATE_CURSOR_ON = 0x10, // only interpreted if USERSTATE_SET_CURSOR is set
+ USERSTATE_IFACE_SENTENCE = 0x20, // only interpreted if USERSTATE_SET_IFACE is set
+ USERSTATE_IFACE_INVENTORY = 0x40, // only interpreted if USERSTATE_SET_IFACE is set
+ USERSTATE_IFACE_VERBS = 0x80 // only interpreted if USERSTATE_SET_IFACE is set
+};
+
+#define USERSTATE_IFACE_ALL (USERSTATE_IFACE_SENTENCE | USERSTATE_IFACE_INVENTORY | USERSTATE_IFACE_VERBS)
+
/**
* A list of resource types.
* WARNING: Do not change the order of these, as the savegame format relies