Public Member Functions | |
void | run () |
uint32 | getQuotesSize () |
const Common::String & | getQuote (uint32 index) |
void | splitQuote (const Common::String &source, Common::String &line1, Common::String &line2) |
Common::StringArray | getMessage (uint32 id) |
virtual Globals & | globals ()=0 |
virtual void | doObjectAction ()=0 |
virtual void | unhandledAction ()=0 |
virtual void | step ()=0 |
virtual void | synchronize (Common::Serializer &s, bool phase1) |
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 () |
Static Public Member Functions | |
static Game * | init (MADSEngine *vm) |
static WARN_UNUSED_RESULT bool | readSavegameHeader (Common::InSaveFile *in, MADSSavegameHeader &header, bool skipThumbnail=true) |
Public Attributes | |
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 | |
Game (MADSEngine *vm) | |
void | initSection (int sectionNumber) |
Virtual Method list | |
virtual void | startGame ()=0 |
virtual void | initializeGlobals ()=0 |
virtual void | setSectionHandler ()=0 |
virtual void | checkShowDialog ()=0 |
Protected Attributes | |
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 |
|
protected |
Constructor
|
protected |
Initializes the current section number of the game
|
protectedpure virtual |
Perform any game-specifcic startup
Implemented in MADS::Nebular::GameNebular.
|
protectedpure virtual |
Initializes global variables for a new game
Implemented in MADS::Nebular::GameNebular.
|
protectedpure virtual |
Set up the section handler specific to each section
Implemented in MADS::Nebular::GameNebular.
|
protectedpure virtual |
Checks for whether to show a dialog
Implemented in MADS::Nebular::GameNebular.
void MADS::Game::run | ( | ) |
Main outer loop for the game
|
inline |
Return the number of quotes
|
inline |
Get a specific quote string
void MADS::Game::splitQuote | ( | const Common::String & | source, |
Common::String & | line1, | ||
Common::String & | line2 | ||
) |
Split a quote into two lines for display on-screen
|
pure virtual |
Returns the globals for the game
Implemented in MADS::Nebular::GameNebular.
|
pure virtual |
Standard object handling across the game
Implemented in MADS::Nebular::GameNebular.
|
pure virtual |
Fallback handler for any action that isn't explicitly handled
Implemented in MADS::Nebular::GameNebular.
|
pure virtual |
Global game step
Implemented in MADS::Nebular::GameNebular.
|
virtual |
Synchronize the game data
s | Serializer |
phase1 | If true, it's synchronizing the basic scene information |
Reimplemented in MADS::Nebular::GameNebular.
void MADS::Game::handleKeypress | ( | const Common::KeyState & | kbd | ) |
Handle a keyboard event
void MADS::Game::handleAction | ( | const Common::CustomEventType & | action | ) |
Handle an action
void MADS::Game::loadGame | ( | int | slotNumber | ) |
Starts a savegame loading.
void MADS::Game::saveGame | ( | int | slotNumber, |
const Common::String & | saveName | ||
) |
Save the current game
void MADS::Game::writeSavegameHeader | ( | Common::OutSaveFile * | out, |
MADSSavegameHeader & | header | ||
) |
Write out a savegame header
|
static |
Read in a savegame header
void MADS::Game::createThumbnail | ( | ) |
Creates a temporary thumbnail for use in saving games