aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/object.h
diff options
context:
space:
mode:
authorMax Horn2006-10-29 14:45:31 +0000
committerMax Horn2006-10-29 14:45:31 +0000
commit46dc61163aa404b1ccc98c0c7c88902518387955 (patch)
tree1e62357a64be34d64ad89e0d94adad9373e686b0 /engines/scumm/object.h
parent41b4a34b5b7f9f91f25204503ea9b951cbfc5c26 (diff)
downloadscummvm-rg350-46dc61163aa404b1ccc98c0c7c88902518387955.tar.gz
scummvm-rg350-46dc61163aa404b1ccc98c0c7c88902518387955.tar.bz2
scummvm-rg350-46dc61163aa404b1ccc98c0c7c88902518387955.zip
Named / documented the V0-V2 object states (we should probably rename the corresponding opcodes here and in descumm to make reading script dumps easier)
svn-id: r24566
Diffstat (limited to 'engines/scumm/object.h')
-rw-r--r--engines/scumm/object.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/scumm/object.h b/engines/scumm/object.h
index d5d447dde4..c06689240c 100644
--- a/engines/scumm/object.h
+++ b/engines/scumm/object.h
@@ -34,6 +34,20 @@ enum ObjectClass {
kObjectClassUntouchable = 32
};
+enum ObjectStateV2 {
+ kObjectStatePickupable = 1,
+ kObjectStateUntouchable = 2,
+ kObjectStateLocked = 4,
+
+ // FIXME: Not quite sure how to name state 8. It seems to mark some kind
+ // of "activation state" for the given object. E.g. is a door open?
+ // Is a drawer extended? In addition it is used to toggle the look
+ // of objects that the user can "pick up" (i.e. it is set in
+ // o2_pickupObject together with kObjectStateUntouchable). So in a sense,
+ // it can also mean "invisible" in some situations.
+ kObjectState_08 = 8
+};
+
struct ObjectData {
uint32 OBIMoffset;
uint32 OBCDoffset;