22 #ifndef TRECISION_ANIMMANAGER_H 23 #define TRECISION_ANIMMANAGER_H 25 #include "trecision/fastfile.h" 26 #include "trecision/struct.h" 31 #define MAXACTIVEANIM 3 35 #define SMKANIM_ICON 2 36 #define SMKANIM_LOOP 4 41 kSmackerBackground = 0,
46 class TrecisionEngine;
47 class NightlongVideoDecoder;
58 uint16 _playingAnims[MAXACTIVEANIM];
62 bool _bgAnimRestarted;
66 void toggleMuteBgAnim(uint16 animation);
67 void closeSmk(
int slot);
71 void refreshSmkAnim(uint16 animation);
72 void handleEndOfVideo(
int animation,
int slot);
73 bool shouldShowAnim(
int animation,
Common::Rect curRect);
75 void drawSmkBackgroundFrame(
int animation);
76 void drawSmkIconFrame(uint16 startIcon, uint16 iconNum);
77 void drawSmkActionFrame();
83 SAnim _animTab[MAXANIM];
85 void smkGoto(
int slot,
int frame);
86 void smkToggleAudio(
int slot,
bool on);
87 void smkToggleTrackAudio(
int slot,
int track,
bool on);
88 int16 smkCurFrame(
int slot);
89 void smkStop(uint16 slot);
90 void refreshActionAnimation() { refreshSmkAnim(_playingAnims[kSmackerAction]); }
91 bool isActionActive()
const {
return _playingAnims[kSmackerAction] != 0; }
92 void playMovie(
const Common::Path &filename,
int startFrame = 0,
int endFrame = -1,
bool singleChoice =
false);
93 void startFullMotion();
94 void stopFullMotion();
96 void refreshAnim(
int box);
97 void startSmkAnim(uint16 animation);
98 void stopAllSmkAnims();
Definition: fastfile.h:38
Definition: trecision.h:112
Definition: serializer.h:79
Definition: animmanager.h:49