22 #ifndef MADS_ANIMATION_H 23 #define MADS_ANIMATION_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "mads/nebular/core/msurface.h" 28 #include "mads/nebular/core/scene_data.h" 29 #include "mads/nebular/core/font.h" 35 ANIMFLAG_LOAD_BACKGROUND = 0x0100,
36 ANIMFLAG_LOAD_BACKGROUND_ONLY = 0x0200,
38 ANIMFLAG_DITHER = 0x0001,
39 ANIMFLAG_CUSTOM_FONT = 0x2000,
40 ANIMFLAG_ANIMVIEW = 0x4000
44 ANIMBG_ROOM = 1, ANIMBG_FULL_SIZE = 2, ANIMBG_BLACK_SCREEN = 3,
56 byte _rgb1[3], _rgb2[3];
58 int _startFrame, _endFrame;
93 #define ANIM_SPAWN_COUNT 2 102 int _spawn[ANIM_SPAWN_COUNT];
103 int _spawnFrame[ANIM_SPAWN_COUNT];
115 int _spriteSetsCount;
116 int _miscEntriesCount;
117 int _frameEntriesCount;
154 uint32 _nextFrameTimer;
155 uint32 _nextScrollTimer;
160 int _palIndex1, _palIndex2;
161 TriggerMode _triggerMode;
168 void loadFrame(
int frameNumber);
181 bool hasScroll()
const;
194 int _dynamicHotspotIndex;
217 void startAnimation(
int endTrigger);
229 void setNextFrameTimer(uint32 newTimer);
230 uint32 getNextFrameTimer()
const {
231 return _nextFrameTimer;
233 void setCurrentFrame(
int frameNumber);
234 int getCurrentFrame()
const {
235 return _currentFrame;
238 bool freeFlag()
const {
241 int roomNumber()
const {
242 return _header._roomNumber;
245 void resetSpriteSetsCount() {
246 _header._spriteSetsCount = 0;
250 return _spriteSets[idx];
Definition: msurface.h:203
Definition: animation.h:51
Definition: animation.h:141
Definition: animation.h:95
void load(Common::SeekableReadStream *f)
Definition: sound_manager.h:38
Definition: sprites.h:125
Definition: scene_data.h:149
Definition: msurface.h:188
Definition: animation.h:67
Definition: animation.h:79