From f796fd6cf39c322b7482faee771be666c217480e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 14 Jul 2010 11:55:15 +0000 Subject: Preliminary implementation of lots of code related to player movement svn-id: r50882 --- engines/m4/mads_scene.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'engines/m4/mads_scene.h') diff --git a/engines/m4/mads_scene.h b/engines/m4/mads_scene.h index e671dfb194..5a8897802a 100644 --- a/engines/m4/mads_scene.h +++ b/engines/m4/mads_scene.h @@ -37,6 +37,13 @@ class MadsInterfaceView; #define DEPTH_BANDS_SIZE 15 +class SceneNode { +public: + Common::Point pt; + + void load(Common::SeekableReadStream *stream); +}; + class MadsSceneResources: public SceneResources { public: int _sceneId; @@ -44,7 +51,7 @@ public: int _depthStyle; int _width; int _height; - Common::Array _objects; + Common::Array _nodes; Common::Array _setNames; int _yBandsStart, _yBandsEnd; int _maxScale, _minScale; @@ -55,6 +62,7 @@ public: void load(int sceneId, const char *resName, int v0, M4Surface *depthSurface, M4Surface *surface); int bandsRange() const { return _yBandsEnd - _yBandsStart; } int scaleRange() const { return _maxScale - _minScale; } + void setRouteNode(int nodeIndex, const Common::Point &pt, M4Surface *depthSurface); }; enum MadsActionMode {ACTMODE_NONE = 0, ACTMODE_VERB = 1, ACTMODE_OBJECT = 3, ACTMODE_TALK = 6}; @@ -138,6 +146,8 @@ public: MadsSceneResources &getSceneResources() { return _sceneResources; } MadsAction &getAction() { return _action; } void setStatusText(const char *text) {}//***DEPRECATED*** + bool getDepthHighBit(const Common::Point &pt); + bool getDepthHighBits(const Common::Point &pt); }; #define CHEAT_SEQUENCE_MAX 8 -- cgit v1.2.3