aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_anim.h
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-07 09:19:42 +0000
committerPaul Gilbert2010-06-07 09:19:42 +0000
commit34f7c05e4dd0e7cd3f84576f57593d034f666d31 (patch)
treebe457ad91a6ec54dc233a6db1981d9558498fcbf /engines/m4/mads_anim.h
parent43ec405ffe08cef3168c9618be6169e6d81290f8 (diff)
downloadscummvm-rg350-34f7c05e4dd0e7cd3f84576f57593d034f666d31.tar.gz
scummvm-rg350-34f7c05e4dd0e7cd3f84576f57593d034f666d31.tar.bz2
scummvm-rg350-34f7c05e4dd0e7cd3f84576f57593d034f666d31.zip
Initial conversion of the AnimviewView class to use the expanded MadsAnimation class, rather than the older AAFile skeleton class
svn-id: r49478
Diffstat (limited to 'engines/m4/mads_anim.h')
-rw-r--r--engines/m4/mads_anim.h39
1 files changed, 5 insertions, 34 deletions
diff --git a/engines/m4/mads_anim.h b/engines/m4/mads_anim.h
index 680c5ff901..8c4a5e6fb7 100644
--- a/engines/m4/mads_anim.h
+++ b/engines/m4/mads_anim.h
@@ -28,24 +28,12 @@
#include "m4/viewmgr.h"
#include "m4/compression.h"
+#include "m4/animation.h"
#include "common/str-array.h"
namespace M4 {
-enum SceneTransition {
- kTransitionNone = 0,
- kTransitionFadeIn = 1,
- kTransitionFadeIn2 = 2,
- kTransitionBoxInBottomLeft = 3,
- kTransitionBoxInBottomRight = 4,
- kTransitionBoxInTopLeft = 5,
- kTransitionBoxInTopRight = 6,
- kTransitionPanLeftToRight = 7,
- kTransitionPanRightToLeft = 8,
- kTransitionCircleIn = 9
-};
-
typedef void (*TextviewCallback)(MadsM4Engine *vm);
class TextviewView : public View {
@@ -89,36 +77,19 @@ public:
typedef void (*AnimviewCallback)(MadsM4Engine *vm);
-class AAFile : public MadsPack {
-public:
- AAFile(const char *resourceName, MadsM4Engine* vm);
-
- uint16 seriesCount;
- uint16 frameCount;
- uint16 frameEntryCount;
- uint8 flags;
- uint16 roomNumber;
- uint16 frameTicks;
- Common::StringArray filenames;
- Common::String lbmFilename;
- Common::String spritesFilename;
- Common::String soundName;
- Common::String fontResource;
-};
-
-enum AAFlags {AA_HAS_FONT = 0x20, AA_HAS_SOUND = 0x8000};
-
-class AnimviewView : public View {
+class AnimviewView : public View, MadsView {
private:
char _resourceName[80];
Common::SeekableReadStream *_script;
uint32 _previousUpdate;
char _currentLine[80];
- M4Surface _bgSurface;
+ M4Surface _backgroundSurface;
+ M4Surface _codeSurface;
AnimviewCallback _callback;
bool _soundDriverLoaded;
RGBList *_palData;
int _transition;
+ MadsAnimation *_activeAnimation;
void reset();
void readNextCommand();