ScummVM API documentation
Scumm::MortimerFlight Class Reference
Inheritance diagram for Scumm::MortimerFlight:
Scumm::MortimerCutscene Scumm::MortimerMovie Scumm::MortimerCastle

Classes

struct  Target
 

Public Types

enum  { kWidth = 384, kHeight = 288 }
 
enum  Weapon { kRevitascope, kSlimeGun }
 
enum  ShotResult { kMiss, kAnimalRescued, kHornetHit, kShellRestored }
 
- Public Types inherited from Scumm::MortimerMovie
enum  { kScreenWidth = 640, kScreenHeight = 480 }
 

Public Member Functions

 MortimerFlight (bool isDemo=true, bool keepProgress=false)
 
bool load (Common::SeekableReadStream &stream, bool interactive=true, bool continuation=false)
 
void clearProgress ()
 
void clearHostiles ()
 
void reset () override
 
bool advance (bool renderFrame=true) override
 
ShotResult shoot (const Common::Point &point)
 
bool hitsObstacle (const Common::Point &point) const
 
uint rescuedCount () const
 
uint rescuedSpecies () const
 
Weapon weapon () const
 
void resetWeapon ()
 
void setWeapon (Weapon weapon)
 
const Common::String & nextFlight () const
 
const Common::Array< Target > & targets () const
 
bool interactive () const
 
void setSteering (const Common::Point &point)
 
void setCollisionRadius (uint radius)
 
- Public Member Functions inherited from Scumm::MortimerCutscene
 MortimerCutscene (bool girl=false)
 
void reset () override
 
MortimerMovieContext & context ()
 
const MortimerMovieContext & context () const
 
- Public Member Functions inherited from Scumm::MortimerMovie
bool load (Common::SeekableReadStream &stream, bool doubled=true, bool continuation=false)
 
void setBackground (const byte *pixels)
 
const byte * pixels () const
 
const byte * palette () const
 
uint frame () const
 
uint frameCount () const
 
bool started () const
 
uint frameRate () const
 
const Common::Array< MortimerSound > & sounds () const
 
const Common::Array< Caption > & captions () const
 
bool soundEnabled (uint index) const
 
const Common::Array< byte > & cachedMovie () const
 
const Common::String & errorMessage () const
 

Protected Member Functions

void handleAction (const byte *data, uint32 size) override
 
- Protected Member Functions inherited from Scumm::MortimerCutscene
void handleAction (const byte *data, uint32 size) override
 
bool skipObject (uint16 a, uint16 b) const override
 
bool toggle (uint16 id) const
 
void setToggle (uint16 id, bool value)
 
- Protected Member Functions inherited from Scumm::MortimerMovie
void render ()
 

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