22 #ifndef TITANIC_MOVIE_H 23 #define TITANIC_MOVIE_H 25 #include "common/list.h" 26 #include "video/video_decoder.h" 27 #include "titanic/core/list.h" 28 #include "titanic/core/resource_key.h" 29 #include "titanic/support/avi_surface.h" 30 #include "titanic/support/movie_range_info.h" 48 void addToPlayingMovies();
72 virtual void play(uint flags,
CGameObject *obj) = 0;
77 virtual void play(uint startFrame, uint endFrame, uint flags,
CGameObject *obj) = 0;
82 virtual void play(uint startFrame, uint endFrame, uint initialFrame, uint flags,
CGameObject *obj) = 0;
89 virtual bool playCutscene(
const Rect &drawRect, uint startFrame, uint endFrame) = 0;
97 virtual void pause() = 0;
102 virtual void stop() = 0;
107 virtual void addEvent(
int frameNumber,
CGameObject *obj) = 0;
112 virtual void setFrame(uint frameNumber) = 0;
127 virtual void setSoundManager(
CSoundManager *soundManager) = 0;
132 virtual int getFrame()
const = 0;
137 virtual void setFrameRate(
double rate) = 0;
142 virtual void setPlaying(
bool playingFlag) = 0;
152 void removeFromPlayingMovies();
157 bool isActive()
const;
162 bool hasVideoFrame();
190 void play(uint startFrame, uint endFrame, uint flags,
CGameObject *obj)
override;
195 void play(uint startFrame, uint endFrame, uint initialFrame, uint flags,
CGameObject *obj)
override;
202 bool playCutscene(
const Rect &drawRect, uint startFrame, uint endFrame)
override;
210 void pause()
override;
215 void stop()
override;
220 void addEvent(
int eventId,
CGameObject *obj)
override;
225 void setFrame(uint frameNumber)
override;
235 int getFrame()
const override;
250 void setFrameRate(
double rate)
override;
255 void setPlaying(
bool playingFlag)
override;
Definition: managed_surface.h:51
Definition: resource_key.h:30
Definition: movie_range_info.h:76
Definition: game_object.h:79
Definition: sound_manager.h:42
Definition: avi_surface.h:99
Definition: video_surface.h:43
Definition: movie_event.h:56