diff options
author | Paul Gilbert | 2015-03-24 22:24:45 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-24 22:24:45 -0400 |
commit | 03a969bd0f696f9a7fa0dc56c47c2b05d28a5a47 (patch) | |
tree | dd1a84a328984d0d53f598168371575e9b87cd29 /engines/sherlock/scene.h | |
parent | 97e58fb0171af885019d997493db33fab9af0091 (diff) | |
download | scummvm-rg350-03a969bd0f696f9a7fa0dc56c47c2b05d28a5a47.tar.gz scummvm-rg350-03a969bd0f696f9a7fa0dc56c47c2b05d28a5a47.tar.bz2 scummvm-rg350-03a969bd0f696f9a7fa0dc56c47c2b05d28a5a47.zip |
SHERLOCK: Implementing walk code
Diffstat (limited to 'engines/sherlock/scene.h')
-rw-r--r-- | engines/sherlock/scene.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sherlock/scene.h b/engines/sherlock/scene.h index 1a9fe7b02c..1b3a730179 100644 --- a/engines/sherlock/scene.h +++ b/engines/sherlock/scene.h @@ -137,7 +137,7 @@ public: int _invGraphicItems; Common::String _comments; Common::Array<char> _descText; - Common::Array<Common::Rect> _bounds; + Common::Array<Common::Rect> _zones; Common::Array<Object> _bgShapes; Common::Array<CAnim> _cAnim; Common::Array<byte> _sequenceBuffer; @@ -179,6 +179,10 @@ public: int findBgShape(const Common::Rect &r); int checkForZones(const Common::Point &pt, int zoneType); + + int whichZone(const Common::Point &pt); + + int closestZone(const Common::Point &pt); }; } // End of namespace Sherlock |