diff options
author | Gregory Montoir | 2009-01-18 00:55:51 +0000 |
---|---|---|
committer | Gregory Montoir | 2009-01-18 00:55:51 +0000 |
commit | 8f85a81791307ae342daaad996eb36756c9c8465 (patch) | |
tree | 7e26434dcfe90e949449330e958541cdf1478a20 /engines/tucker/tucker.h | |
parent | c56faf3216ceab89d9bbe96c949e8af569d2231d (diff) | |
download | scummvm-rg350-8f85a81791307ae342daaad996eb36756c9c8465.tar.gz scummvm-rg350-8f85a81791307ae342daaad996eb36756c9c8465.tar.bz2 scummvm-rg350-8f85a81791307ae342daaad996eb36756c9c8465.zip |
splitted play/load class methods in introduction animation player
svn-id: r35887
Diffstat (limited to 'engines/tucker/tucker.h')
-rw-r--r-- | engines/tucker/tucker.h | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/engines/tucker/tucker.h b/engines/tucker/tucker.h index 1cd19c2753..9f46750551 100644 --- a/engines/tucker/tucker.h +++ b/engines/tucker/tucker.h @@ -855,6 +855,12 @@ public: kSequenceFrameTime = 55 }; + struct SequenceUpdateFunc { + int num; + void (AnimationSequencePlayer::*load)(); + void (AnimationSequencePlayer::*play)(); + }; + AnimationSequencePlayer(OSystem *system, Audio::Mixer *mixer, Common::EventManager *event, int num); ~AnimationSequencePlayer(); @@ -872,26 +878,35 @@ private: uint8 *loadPicture(const char *fileName); void openAnimation(int index, const char *fileName); void decodeNextAnimationFrame(int index); - void introSeq17_18(); - void introSeq19_20(); + void loadIntroSeq17_18(); + void playIntroSeq17_18(); + void loadIntroSeq19_20(); + void playIntroSeq19_20(); void displayLoadingScreen(); void initPicPart4(); void drawPicPart4(); - void introSeq3_4(); + void loadIntroSeq3_4(); + void playIntroSeq3_4(); void drawPic2Part10(); void drawPic1Part10(); - void introSeq9_10(); - void introSeq21_22(); - void introSeq13_14(); - void introSeq15_16(); - void introSeq27_28(); + void loadIntroSeq9_10(); + void playIntroSeq9_10(); + void loadIntroSeq21_22(); + void playIntroSeq21_22(); + void loadIntroSeq13_14(); + void playIntroSeq13_14(); + void loadIntroSeq15_16(); + void playIntroSeq15_16(); + void loadIntroSeq27_28(); + void playIntroSeq27_28(); OSystem *_system; Audio::Mixer *_mixer; Common::EventManager *_event; - bool _newSeq; int _seqNum, _currentSeqNum; + const SequenceUpdateFunc *_updateFunc; + int _updateFuncIndex; ::Graphics::FlicPlayer _flicPlayer[2]; uint8 _animationPalette[256 * 4], _paletteBuffer[256 * 4]; int _soundsList1Offset; |