aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scene.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-24 22:24:45 -0400
committerPaul Gilbert2015-03-24 22:24:45 -0400
commit03a969bd0f696f9a7fa0dc56c47c2b05d28a5a47 (patch)
treedd1a84a328984d0d53f598168371575e9b87cd29 /engines/sherlock/scene.h
parent97e58fb0171af885019d997493db33fab9af0091 (diff)
downloadscummvm-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.h6
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