ScummVM API documentation
MADS::Phantom::GamePhantom Class Reference
Inheritance diagram for MADS::Phantom::GamePhantom:
MADS::Game

Public Member Functions

Globalsglobals () override
 
void doObjectAction () override
 
void unhandledAction () override
 
void step () override
 
void synchronize (Common::Serializer &s, bool phase1) override
 
void setupCatacombs ()
 
void enterCatacombs (bool val)
 
void initCatacombs ()
 
void moveCatacombs (int dir)
 
int exitCatacombs (int dir)
 
void newCatacombRoom (int fromRoom, int fromExit)
 
- Public Member Functions inherited from MADS::Game
void run ()
 
uint32 getQuotesSize ()
 
const Common::StringgetQuote (uint32 index)
 
void splitQuote (const Common::String &source, Common::String &line1, Common::String &line2)
 
Common::StringArray getMessage (uint32 id)
 
virtual void setNaughtyMode (bool naughtyMode)
 
virtual bool getNaughtyMode () const
 
void clearQuotes ()
 
void loadQuoteRange (int startNum, int endNum)
 
void loadQuoteSet (...)
 
void loadQuote (int quoteNum)
 
void handleKeypress (const Common::KeyState &kbd)
 
void handleAction (const Common::CustomEventType &action)
 
void loadGame (int slotNumber)
 
void saveGame (int slotNumber, const Common::String &saveName)
 
void writeSavegameHeader (Common::OutSaveFile *out, MADSSavegameHeader &header)
 
void createThumbnail ()
 
void syncTimers (SyncType slaveType, int slaveId, SyncType masterType, int masterId)
 
void camInitDefault ()
 
void camSetSpeed ()
 
void camUpdate ()
 

Public Attributes

PhantomGlobals _globals
 
Difficulty _difficulty
 
- Public Attributes inherited from MADS::Game
Player _player
 
ScreenObjects _screenObjects
 
int _sectionNumber
 
int _priorSectionNumber
 
int _currentSectionNumber
 
InventoryObjects _objects
 
SectionHandler_sectionHandler
 
VisitedScenes _visitedScenes
 
Scene _scene
 
KernelMode _kernelMode
 
int _trigger
 
ScreenTransition _fx
 
TriggerMode _triggerMode
 
TriggerMode _triggerSetupMode
 
uint32 _priorFrameTimer
 
Common::Path _aaName
 
int _winStatus
 
int _widepipeCtr
 
int _loadGameSlot
 
int _panningSpeed
 
Camera _camX
 
Camera _camY
 

Protected Member Functions

 GamePhantom (MADSEngine *vm)
 
void startGame () override
 
void initializeGlobals () override
 
void setSectionHandler () override
 
void checkShowDialog () override
 
- Protected Member Functions inherited from MADS::Game
 Game (MADSEngine *vm)
 
void initSection (int sectionNumber)
 

Additional Inherited Members

- Static Public Member Functions inherited from MADS::Game
static Gameinit (MADSEngine *vm)
 
static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, MADSSavegameHeader &header, bool skipThumbnail=true)
 
- Protected Attributes inherited from MADS::Game
MADSEngine_vm
 
MSurface_surface
 
int _statusFlag
 
Common::StringArray _quotes
 
bool _quoteEmergency
 
bool _vocabEmergency
 
bool _anyEmergency
 
int _lastSave
 
Common::String _saveName
 
Common::InSaveFile_saveFile
 
Graphics::Surface_saveThumb
 

Member Function Documentation

◆ startGame()

void MADS::Phantom::GamePhantom::startGame ( )
overrideprotectedvirtual

Perform any game-specifcic startup

Implements MADS::Game.

◆ initializeGlobals()

void MADS::Phantom::GamePhantom::initializeGlobals ( )
overrideprotectedvirtual

Initializes global variables for a new game

Implements MADS::Game.

◆ setSectionHandler()

void MADS::Phantom::GamePhantom::setSectionHandler ( )
overrideprotectedvirtual

Set up the section handler specific to each section

Implements MADS::Game.

◆ checkShowDialog()

void MADS::Phantom::GamePhantom::checkShowDialog ( )
overrideprotectedvirtual

Checks for whether to show a dialog

Implements MADS::Game.

◆ globals()

Globals& MADS::Phantom::GamePhantom::globals ( )
inlineoverridevirtual

Returns the globals for the game

Implements MADS::Game.

◆ doObjectAction()

void MADS::Phantom::GamePhantom::doObjectAction ( )
overridevirtual

Standard object handling across the game

Implements MADS::Game.

◆ unhandledAction()

void MADS::Phantom::GamePhantom::unhandledAction ( )
overridevirtual

Fallback handler for any action that isn't explicitly handled

Implements MADS::Game.

◆ step()

void MADS::Phantom::GamePhantom::step ( )
overridevirtual

Global game step

Implements MADS::Game.

◆ synchronize()

void MADS::Phantom::GamePhantom::synchronize ( Common::Serializer s,
bool  phase1 
)
overridevirtual

Synchronize the game data

Parameters
sSerializer
phase1If true, it's synchronizing the basic scene information

Reimplemented from MADS::Game.


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