From 5531cf9fd503c3e74b8a32f6b12f2243bac68c06 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 13 Jun 2015 21:07:50 -0400 Subject: SHERLOCK: Refactored walk data block to e a proper structure --- engines/sherlock/scene.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/scene.h') diff --git a/engines/sherlock/scene.h b/engines/sherlock/scene.h index 2cf8b803b4..799433fd53 100644 --- a/engines/sherlock/scene.h +++ b/engines/sherlock/scene.h @@ -131,6 +131,19 @@ public: void load(Common::SeekableReadStream &s); }; +class WalkArray : public Common::Array < Common::Point > { +public: + int _pointsCount; + int _fileOffset; + + WalkArray() : _pointsCount(0), _fileOffset(-1) {} + + /** + * Load data for the walk array entry + */ + void load(Common::SeekableReadStream &s, bool isRoseTattoo); +}; + class Scene { private: bool _loadingSavedGame; @@ -213,7 +226,7 @@ public: Common::Array _sequenceBuffer; Common::Array _images; int _walkDirectory[MAX_ZONES][MAX_ZONES]; - Common::Array _walkData; + Common::Array _walkPoints; Common::Array _exits; int _exitZone; SceneEntry _entrance; -- cgit v1.2.3