ScummVM API documentation
Grim::SmushPlayer Class Reference
Inheritance diagram for Grim::SmushPlayer:
Grim::MoviePlayer

Public Member Functions

 SmushPlayer (bool demo)
 
void restore (SaveGame *state) override
 
- Public Member Functions inherited from Grim::MoviePlayer
virtual bool play (const Common::String &filename, bool looping, int x, int y, bool start=true, bool showSubtitles=false)
 
virtual void stop ()
 
virtual void pause (bool p)
 
virtual bool isPlaying ()
 
virtual bool isUpdateNeeded ()
 
virtual Graphics::SurfacegetDstSurface ()
 
virtual const byte * getDstPalette ()
 
virtual int getX ()
 
virtual int getY ()
 
virtual int getFrame ()
 
virtual void clearUpdateNeeded ()
 
virtual int32 getMovieTime ()
 
void drawMovieSubtitle ()
 
void saveState (SaveGame *state)
 
void restoreState (SaveGame *state)
 

Additional Inherited Members

- Protected Member Functions inherited from Grim::MoviePlayer
virtual bool prepareFrame ()
 
virtual void deinit ()
 
virtual void save (SaveGame *state)
 
- Static Protected Member Functions inherited from Grim::MoviePlayer
static void timerCallback (void *ptr)
 
- Protected Attributes inherited from Grim::MoviePlayer
Common::String _fname
 
Common::Mutex _frameMutex
 
Video::VideoDecoder_videoDecoder
 
const Graphics::Surface_internalSurface
 
Graphics::Surface_externalSurface
 
const byte * _internalPalette
 
byte * _externalPalette
 
int32 _frame
 
bool _updateNeeded
 
bool _showSubtitles
 
float _movieTime
 
int _channels
 
int _freq
 
bool _videoFinished
 
bool _videoPause
 
bool _videoLooping
 
bool _timerStarted
 
int _x
 
int _y
 

Member Function Documentation

◆ restore()

void Grim::SmushPlayer::restore ( SaveGame state)
overridevirtual

Restores subclass related state of the video to a savegame The base implementation of this does nothing, but it can be overridden by subclasses.

Parameters
stateThe state to restore from

Reimplemented from Grim::MoviePlayer.


The documentation for this class was generated from the following file: