22 #ifndef NANCY_MISC_SPECIALEFFECT_H 23 #define NANCY_MISC_SPECIALEFFECT_H 25 #include "engines/nancy/time.h" 26 #include "engines/nancy/renderobject.h" 36 static const byte kBlackout = 1;
37 static const byte kCrossDissolve = 2;
38 static const byte kThroughBlack = 3;
40 SpecialEffect(byte type, uint16 fadeToBlackTime, uint16 frameTime) :
43 _fadeToBlackTime(fadeToBlackTime),
44 _frameTime(frameTime) {}
49 _totalTime(totalTime),
50 _fadeToBlackTime(fadeToBlackTime),
55 void updateGraphics()
override;
58 void afterSceneChange();
61 bool isInitialized()
const {
return _initialized; }
64 bool _initialized =
false;
66 uint32 _nextFrameTime = 0;
67 uint32 _fadeToBlackEndTime = 0;
73 uint16 _fadeToBlackTime = 0;
74 uint32 _frameTime = 0;
75 uint32 _totalTime = 0;
78 int _currentFrame = 0;
80 uint32 _startTime = 0;
81 bool _throughBlackStarted2nd =
false;
87 #endif // NANCY_MISC_SPECIALEFFECT_H Definition: managed_surface.h:51
Definition: specialeffect.h:34
Definition: renderobject.h:36
Definition: actionmanager.h:32