From 77a4227aa4915a860accdd761fb9695d390641dd Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 19 Mar 2015 23:31:28 -0400 Subject: SHERLOCK: Added loading of scene objects --- engines/sherlock/scene.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'engines/sherlock/scene.h') diff --git a/engines/sherlock/scene.h b/engines/sherlock/scene.h index f92dfccfad..e216c2bd9d 100644 --- a/engines/sherlock/scene.h +++ b/engines/sherlock/scene.h @@ -24,6 +24,9 @@ #define SHERLOCK_SCENE_H #include "common/scummsys.h" +#include "common/array.h" +#include "common/rect.h" +#include "sherlock/objects.h" #include "sherlock/resources.h" namespace Sherlock { @@ -32,11 +35,32 @@ namespace Sherlock { class SherlockEngine; +struct BgFileHeader { + int _numStructs; + int _numImages; + int _numcAnimations; + int _descSize; + int _seqSize; + int _fill; + + void synchronize(Common::SeekableReadStream &s); +}; + +struct BgfileheaderInfo { + int _fSize; // How long images are + int _maxFrames; // How many unique frames in object + Common::String _filename; // Filename of object + + void synchronize(Common::SeekableReadStream &s); +}; + class Scene { private: SherlockEngine *_vm; void loadScene(); + + void loadScene(const Common::String &filename); public: bool _stats[SCENES_COUNT][9]; bool _savedStats[SCENES_COUNT][9]; @@ -50,6 +74,17 @@ public: int _menuMode, _keyboardInput; int _oldKey, _help, _oldHelp; int _oldTemp, _temp; + bool _walkedInScene; + int _ongoingCans; + int _version; + bool _lzwMode; + int _invGraphicItems; + Common::String _comments; + Common::Array _descText; + Common::Array _roomBounds; + Common::Array _bgShapes; + Common::Array _cAnim; + Common::Array _sequenceBuffer; public: Scene(SherlockEngine *vm); ~Scene(); -- cgit v1.2.3