aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/map.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-01-11 18:29:36 -0500
committerPaul Gilbert2015-01-11 18:29:36 -0500
commit892a504009e0d7d6d6304d485bf2fad9519781e9 (patch)
treec93772ef32327ee6cf0c1e054b65089950748d22 /engines/xeen/map.h
parent4745bfe182fa0824aee2525ff196d93060c2cd0c (diff)
downloadscummvm-rg350-892a504009e0d7d6d6304d485bf2fad9519781e9.tar.gz
scummvm-rg350-892a504009e0d7d6d6304d485bf2fad9519781e9.tar.bz2
scummvm-rg350-892a504009e0d7d6d6304d485bf2fad9519781e9.zip
XEEN: Implemented loading of object animation data
Diffstat (limited to 'engines/xeen/map.h')
-rw-r--r--engines/xeen/map.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/engines/xeen/map.h b/engines/xeen/map.h
index d26dffff82..228dfb8e22 100644
--- a/engines/xeen/map.h
+++ b/engines/xeen/map.h
@@ -311,13 +311,36 @@ public:
void synchronize(Common::SeekableReadStream &s);
};
+struct AnimationFrame {
+ int _front, _left, _back, _right;
+
+ AnimationFrame(): _front(0), _left(0), _back(0), _right(0) {}
+
+ void synchronize(Common::SeekableReadStream &s);
+};
+
+struct AnimationEntry {
+ AnimationFrame _frame1;
+ AnimationFrame _flipped;
+ AnimationFrame _frame2;
+
+ void synchronize(Common::SeekableReadStream &s);
+};
+
+class AnimationInfo : public Common::Array<AnimationEntry> {
+public:
+ void synchronize(Common::SeekableReadStream &s);
+
+ void load(const Common::String &name);
+};
+
class Map {
private:
XeenEngine *_vm;
MazeData _mazeData[9];
Common::String _mazeName;
HeadData _headData;
- SpriteResource _objPicSprites;
+ AnimationInfo _animationInfo;
MonsterData _monsterData;
SpriteResource _wallPicSprites;
int _townPortalSide;