22 #ifndef MADS_ANIMATION_H 23 #define MADS_ANIMATION_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "mads/msurface.h" 28 #include "mads/scene_data.h" 29 #include "mads/font.h" 34 ANIMFLAG_LOAD_BACKGROUND = 0x0100,
35 ANIMFLAG_LOAD_BACKGROUND_ONLY = 0x0200,
37 ANIMFLAG_DITHER = 0x0001,
38 ANIMFLAG_CUSTOM_FONT = 0x2000,
39 ANIMFLAG_ANIMVIEW = 0x4000
43 ANIMBG_ROOM = 1, ANIMBG_FULL_SIZE = 2, ANIMBG_BLACK_SCREEN = 3,
55 byte _rgb1[3], _rgb2[3];
57 int _startFrame, _endFrame;
92 #define ANIM_SPAWN_COUNT 2 101 int _spawn[ANIM_SPAWN_COUNT];
102 int _spawnFrame[ANIM_SPAWN_COUNT];
114 int _spriteSetsCount;
115 int _miscEntriesCount;
116 int _frameEntriesCount;
153 uint32 _nextFrameTimer;
154 uint32 _nextScrollTimer;
159 int _palIndex1, _palIndex2;
160 TriggerMode _triggerMode;
167 void loadFrame(
int frameNumber);
180 bool hasScroll()
const;
193 int _dynamicHotspotIndex;
215 void startAnimation(
int endTrigger);
227 void setNextFrameTimer(uint32 newTimer);
228 uint32 getNextFrameTimer()
const {
return _nextFrameTimer; }
229 void setCurrentFrame(
int frameNumber);
230 int getCurrentFrame()
const {
return _currentFrame; }
232 bool freeFlag()
const {
return _freeFlag; }
233 int roomNumber()
const {
return _header._roomNumber; }
235 void resetSpriteSetsCount() { _header._spriteSetsCount = 0; }
237 SpriteAsset *getSpriteSet(
int idx) {
return _spriteSets[idx]; }
Definition: animation.h:94
Definition: animation.h:66
Definition: animation.h:50
Definition: msurface.h:184
void load(Common::SeekableReadStream *f)
Definition: scene_data.h:141
Definition: sprites.h:124
Definition: animation.h:78
Definition: msurface.h:172
Definition: animation.h:140