diff options
author | Paul Gilbert | 2015-04-11 23:42:11 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-04-11 23:42:11 -0500 |
commit | 461d5c64f27c2cf86890a9ba8d7df8a63f6278e7 (patch) | |
tree | 822e2908f74a2e360152da678ece4d9e4b352593 /engines/sherlock/objects.h | |
parent | 0f0321eb43fa321319805db8264601d0f2646282 (diff) | |
download | scummvm-rg350-461d5c64f27c2cf86890a9ba8d7df8a63f6278e7.tar.gz scummvm-rg350-461d5c64f27c2cf86890a9ba8d7df8a63f6278e7.tar.bz2 scummvm-rg350-461d5c64f27c2cf86890a9ba8d7df8a63f6278e7.zip |
SHERLOCK: Fixes for opening door
Diffstat (limited to 'engines/sherlock/objects.h')
-rw-r--r-- | engines/sherlock/objects.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h index 26ad1d3900..2c642b5a58 100644 --- a/engines/sherlock/objects.h +++ b/engines/sherlock/objects.h @@ -34,7 +34,7 @@ namespace Sherlock { class SherlockEngine; enum ObjectAllow { - ALLOW_MOVEMENT = 1, ALLOW_OPEN = 2, ALLOW_CLOSE = 4 + ALLOW_MOVE = 1, ALLOW_OPEN = 2, ALLOW_CLOSE = 4 }; enum SpriteType { @@ -122,6 +122,8 @@ public: int frameHeight() const { return _imageFrame ? _imageFrame->_frame.h : 0; } }; +enum { REVERSE_DIRECTION = 0x80 }; + struct ActionType { int8 _cAnimNum; uint8 _cAnimSpeed; // if high bit set, play in reverse @@ -198,13 +200,15 @@ public: ActionType _aMove; UseType _use[4]; + Object(); + void synchronize(Common::SeekableReadStream &s); void toggleHidden(); void checkObject(Object &o); - int checkNameForCodes(const Common::String &name, Common::StringArray *messages); + int checkNameForCodes(const Common::String &name, const char *const messages[]); void setFlagsAndToggles(); |