22 #ifndef GRIM_MOVIE_PLAYER_H 23 #define GRIM_MOVIE_PLAYER_H 25 #include "common/mutex.h" 26 #include "common/system.h" 28 #include "video/video_decoder.h" 69 virtual bool play(
const Common::String &filename,
bool looping,
int x,
int y,
bool start =
true,
bool showSubtitles =
false);
71 virtual void pause(
bool p);
72 virtual bool isPlaying() {
return !_videoFinished; }
73 virtual bool isUpdateNeeded() {
return _updateNeeded; }
75 virtual int getX() {
return _x; }
76 virtual int getY() {
return _y; }
77 virtual int getFrame() {
return _frame; }
78 virtual void clearUpdateNeeded() { _updateNeeded =
false; }
79 virtual int32 getMovieTime() {
return (int32)_movieTime; }
82 void drawMovieSubtitle();
92 static void timerCallback(
void *ptr);
virtual bool loadFile(const Common::String &filename)
Definition: savegame.h:33
virtual void postHandleFrame()
Definition: movie.h:124
virtual bool prepareFrame()
virtual void handleFrame()
Definition: movie.h:112
virtual void save(SaveGame *state)
Definition: movie.h:161
Definition: video_decoder.h:52
void saveState(SaveGame *state)
virtual void restore(SaveGame *state)
Definition: movie.h:170
virtual bool play(const Common::String &filename, bool looping, int x, int y, bool start=true, bool showSubtitles=false)