ScummVM API documentation
Alg::Game Class Referenceabstract
Inheritance diagram for Alg::Game:
Alg::GameBountyHunter Alg::GameCrimePatrol Alg::GameDrugWars Alg::GameJohnnyRock Alg::GameMaddog Alg::GameMaddog2 Alg::GameSpacePirates

Public Member Functions

 Game (AlgEngine *vm)
 
virtual void init ()
 
virtual Common::Error run ()
 
virtual bool saveState (Common::OutSaveFile *outSaveFile)=0
 
virtual bool loadState (Common::InSaveFile *inSaveFile)=0
 
bool debug_dumpLibFile ()
 

Public Attributes

bool _debug_drawRects = false
 
bool _debug_godMode = false
 
bool _debug_unlimitedAmmo = false
 

Protected Member Functions

void shutdown ()
 
bool pollEvents ()
 
void loadLibArchive (const Common::Path &path)
 
Audio::SeekableAudioStreamloadSoundFile (const Common::Path &path)
 
void playSound (Audio::SeekableAudioStream *stream)
 
bool loadScene (Scene *scene)
 
virtual void updateScreen ()
 
uint32 getMsTime ()
 
bool fired (Common::Point *point)
 
RectcheckZone (Zone *zone, Common::Point *point)
 
uint32 getFrame (Scene *scene)
 
int8 skipToNewScene (Scene *scene)
 
virtual void debug_drawZoneRects ()
 
void zoneGlobalHit (Common::Point *point)
 
void rectHitDoNothing (Rect *rect)
 
void rectNewScene (Rect *rect)
 
void scenePsoDrawRct (Scene *scene)
 
void scenePsoPause (Scene *scene)
 
void scenePsoDrawRctFadeIn (Scene *scene)
 
void scenePsoFadeIn (Scene *scene)
 
void scenePsoPauseFadeIn (Scene *scene)
 
void scenePsoPreRead (Scene *scene)
 
void scenePsoPausePreRead (Scene *scene)
 
void sceneIsoDoNothing (Scene *scene)
 
void sceneIsoStartGame (Scene *scene)
 
void sceneIsoPause (Scene *scene)
 
void sceneNxtscnDoNothing (Scene *scene)
 
void sceneDefaultNxtscn (Scene *scene)
 
void sceneSmDonothing (Scene *scene)
 
void sceneNxtfrm (Scene *scene)
 

Protected Attributes

AlgEngine_vm = nullptr
 
AlgVideoDecoder_videoDecoder = nullptr
 
SceneInfo_sceneInfo = nullptr
 
Common::RandomSource_rnd = nullptr
 
Common::File _libFile
 
Common::HashMap< Common::String, uint32 > _libFileEntries
 
uint8 * _palette = nullptr
 
bool _paletteDirty = false
 
Graphics::Surface_background = nullptr
 
Graphics::Surface_screen = nullptr
 
Audio::SoundHandle _sfxAudioHandle
 
Zone_menuZone = nullptr
 
Zone_subMenuZone = nullptr
 
bool _leftDown = false
 
bool _rightDown = false
 
Common::Point _mousePos
 
const uint32 _pauseDiffScale [3] = {0x10000, 0x8000, 0x4000}
 
const uint32 _rectDiffScale [3] = {0x10000, 0x0C000, 0x8000}
 
bool _buttonDown = false
 
bool _fired = 0
 
uint32 _currentFrame = 0
 
bool _gameInProgress = false
 
bool _hadPause = false
 
bool _inMenu = false
 
uint32 _pauseTime = 0
 
bool _sceneSkipped = false
 
uint32 _videoFrameSkip = 3
 
uint32 _nextFrameTime = 0
 
uint16 _videoPosX = 0
 
uint16 _videoPosY = 0
 
Common::String _curScene
 
Common::String _startScene
 

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