diff options
author | Paul Gilbert | 2010-06-07 09:19:42 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-06-07 09:19:42 +0000 |
commit | 34f7c05e4dd0e7cd3f84576f57593d034f666d31 (patch) | |
tree | be457ad91a6ec54dc233a6db1981d9558498fcbf /engines/m4/animation.cpp | |
parent | 43ec405ffe08cef3168c9618be6169e6d81290f8 (diff) | |
download | scummvm-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/animation.cpp')
-rw-r--r-- | engines/m4/animation.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp index b372222bd0..1142ba48d1 100644 --- a/engines/m4/animation.cpp +++ b/engines/m4/animation.cpp @@ -39,6 +39,11 @@ MadsAnimation::MadsAnimation(MadsM4Engine *vm, MadsView *view): Animation(vm), _ _skipLoad = false; _unkIndex = -1; _messageCtr= 0; + _field12 = 0; + + _currentFrame = 0; + _oldFrameEntry = 0; + _nextFrameTimer = _madsVm->_currentTimer; } MadsAnimation::~MadsAnimation() { @@ -237,12 +242,14 @@ void MadsAnimation::load(const Common::String &filename, int abortTimers) { _messageCtr = 0; _skipLoad = true; +/* TODO: figure out extra stuff in this routine if (_field12) { _unkIndex = -1; int listIndex = _spriteListIndexes[_spriteListIndex]; SpriteAsset &spriteSet = _view->_spriteSlots.getSprite(listIndex); -warning("%d", spriteSet.getCount()); + ..?.. } +*/ // Initialise miscellaneous fields _currentFrame = 0; @@ -463,9 +470,6 @@ void MadsAnimation::loadInterface(M4Surface *&interfaceSurface, M4Surface *&dept MadsSceneResources sceneResources; sceneResources.load(_roomNumber, _interfaceFile.c_str(), 0, depthSurface, interfaceSurface); - // Rex only supports a single dialog draw style - assert(sceneResources.drawStyle == 2); - } else if (_animMode == 4) { // Load a scene interface interfaceSurface->madsLoadInterface(_interfaceFile); |