From dd9bf70761f2de9771912984209422f1f63bd3e8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 May 2010 07:20:40 +0000 Subject: Major work done on the animation and support classes to match the original svn-id: r49150 --- engines/m4/assets.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/m4/assets.h') diff --git a/engines/m4/assets.h b/engines/m4/assets.h index 7b0ce24dc4..cd0ae6ba78 100644 --- a/engines/m4/assets.h +++ b/engines/m4/assets.h @@ -113,6 +113,7 @@ public: int32 getFrameHeight(int index); int32 getMaxFrameWidth() const { return _maxWidth; } int32 getMaxFrameHeight() const { return _maxHeight; } + uint16 getAssetType() const { return _assetType; } M4Sprite *getFrame(int frameIndex); void loadStreamingFrame(M4Sprite *frame, int frameIndex, int destX, int destY); RGB8* getPalette() { return _palette; } @@ -123,6 +124,7 @@ public: int32 getFrameSize(int index); M4Sprite *operator[](int index) { return getFrame(index); } protected: + Common::SeekableReadStream *_stream; RGB8 _palette[256]; uint32 _colorCount; uint32 _srcSize; @@ -132,7 +134,10 @@ protected: Common::Array _frameOffsets; Common::Array _frames; uint32 _frameStartOffset; - Common::SeekableReadStream *_stream; + + // MADS sprite set fields + uint16 _assetType; + int32 parseSprite(bool isBigEndian = false); void loadFrameHeader(SpriteAssetFrame &frameHeader, bool isBigEndian = false); private: -- cgit v1.2.3