22 #ifndef DIRECTOR_SCORE_H 23 #define DIRECTOR_SCORE_H 25 #include "director/cursor.h" 36 class ReadStreamEndian;
37 class MemoryReadStreamEndian;
38 class SeekableReadStreamEndian;
68 Movie *getMovie()
const {
return _movie; }
71 bool loadFrame(
int frame,
bool loadCast);
73 void updateFrame(
Frame *frame);
74 Frame *getFrameData(
int frameNum);
78 void loadSampleSounds(uint type);
80 static int compareLabels(
const void *a,
const void *b);
91 void setDelay(uint32 ticks);
93 void setCurrentFrame(uint16 frameId);
94 uint16 getCurrentFrameNum() {
return _curFrameNumber; }
95 int getNextFrame() {
return _nextFrame; }
96 uint16 getFramesNum() {
return _numFrames; }
98 void setPuppetTempo(int16 puppetTempo);
102 Channel *getChannelById(uint16
id);
103 Sprite *getSpriteById(uint16
id);
104 Sprite *getOriginalSpriteById(uint16
id);
106 void setSpriteCasts();
108 int getPreviousLabelNumber(
int referenceFrame);
109 int getCurrentLabelNumber();
110 int getNextLabelNumber(
int referenceFrame);
115 bool checkSpriteIntersection(uint16 spriteId,
Common::Point pos);
120 bool renderTransition(uint16 frameId, RenderMode mode);
121 void renderFrame(uint16 frameId, RenderMode mode = kRenderModeNormal);
122 void incrementFilmLoops();
123 void updateSprites(RenderMode mode = kRenderModeNormal);
124 bool renderPrePaletteCycle(RenderMode mode = kRenderModeNormal);
125 void setLastPalette();
126 bool isPaletteColorCycling();
127 void renderPaletteCycle(RenderMode mode = kRenderModeNormal);
128 void renderCursor(
Common::Point pos,
bool forceUpdate =
false);
129 void updateWidgets(
bool hasVideoPlayback);
131 void invalidateRectsForMember(
CastMember *member);
133 void playSoundChannel(
bool puppetOnly);
138 bool isWaitingForNextFrame();
139 void updateCurrentFrame();
140 void updateNextFrameTime();
142 void playQueuedSound();
148 bool processFrozenScripts(
bool recursion =
false,
int count = 0);
160 Frame *_currentFrame;
161 uint32 _curFrameNumber;
163 uint32 _framesVersion;
168 uint _firstFramePosition;
169 uint _framesStreamSize;
172 byte _currentFrameRate;
176 int _paletteTransitionIndex;
177 byte _paletteSnapshotBuffer[768];
179 PlayState _playState;
180 uint32 _nextFrameTime;
181 uint32 _nextFrameDelay;
184 int _waitForVideoChannel;
186 bool _waitForClickCursor;
189 bool _exitFrameCalled;
192 bool _skipTransition;
194 int _numChannelsDisplayed;
206 int _previousBuildBotBuild = -1;
Definition: memstream.h:103
Definition: atari-cursor.h:38
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: director.h:150
Definition: castmember.h:45