Public Member Functions | |
| SpaceBarEngine (OSystem *syst, const ADGameDescription *gameDesc) | |
| void | initializePath (const Common::FSNode &gamePath) override |
| Graphics::Screen * | getScreen () const override |
| bool | shouldQuit () const override |
| bool | canLoadGameStateCurrently (Common::U32String *msg=nullptr) override |
| bool | canSaveGameStateCurrently (Common::U32String *msg=nullptr) override |
| Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override |
| Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave, SpaceBar::StBagelSave &saveData) |
| Common::Error | loadGameState (int slot) override |
| Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave=false) override |
| Common::Error | loadGameStream (Common::SeekableReadStream *stream) override |
Public Member Functions inherited from Bagel::BagelEngine | |
| BagelEngine (OSystem *syst, const ADGameDescription *gameDesc) | |
| uint32 | getFeatures () const |
| Common::String | getGameId () const |
| bool | isSpaceBar () const |
| Common::Platform | getPlatform () const |
| bool | isDemo () const |
| bool | isMazeODoomDemo () const |
| uint32 | getRandomNumber (uint maxNum=0x7fffffff) |
| bool | hasFeature (EngineFeature f) const override |
| SaveStateList | listSaves () const |
| bool | savesExist () const |
| void | errorDialog (const char *msg) const |
| void | enableKeymapper (bool enabled) |
Public Member Functions inherited from Engine | |
| MetaEngine * | getMetaEngine () const |
| void | setMetaEngine (MetaEngine *metaEngine) |
| PauseToken | pauseEngine () |
| bool | isPaused () const |
| void | openMainMenuDialog () |
| uint32 | getTotalPlayTime () const |
| void | setTotalPlayTime (uint32 time=0) |
| Common::TimerManager * | getTimerManager () |
| Common::EventManager * | getEventManager () |
| Common::SaveFileManager * | getSaveFileManager () |
| bool | existExtractedCDAudioFiles (uint track=1) |
| bool | isDataAndCDAudioReadFromSameCD () |
| void | warnMissingExtractedCDAudio () |
| void | handleAutoSave () |
| void | saveAutosaveIfEnabled () |
| virtual bool | canSaveAutosaveCurrently () |
| virtual int | getAutosaveSlot () const |
| virtual bool | gameTypeHasAddOns () const |
| virtual bool | dirCanBeGameAddOn (const Common::FSDirectory &dir) const |
| virtual bool | dirMustBeGameAddOn (const Common::FSDirectory &dir) const |
| Common::ErrorCode | updateAddOns (const MetaEngine *metaEngine) const |
| Engine (OSystem *syst) | |
| virtual | ~Engine () |
| virtual void | errorString (const char *buf_input, char *buf_output, int buf_output_size) |
| virtual GUI::Debugger * | getDebugger () final |
| void | setDebugger (GUI::Debugger *debugger) |
| GUI::Debugger * | getOrCreateDebugger () |
| bool | enhancementEnabled (int32 cls) |
| virtual void | syncSoundSettings () |
| virtual void | applyGameSettings () |
| virtual void | flipMute () |
| virtual Common::String | getSaveStateName (int slot) const |
| void | setGameToLoadSlot (int slot) |
| bool | saveGameDialog () |
| bool | loadGameDialog () |
Public Member Functions inherited from Bagel::SpaceBar::CBagel | |
| CBagel (const BagelReg *gameReg) | |
| void | registerGame (const BagelReg *gameReg) |
| ErrorCode | runApp () override |
| ErrorCode | setOption (const char *section, const char *option, const char *stringValue) |
| ErrorCode | setOption (const char *section, const char *option, int intValue) |
| ErrorCode | getOption (const char *section, const char *option, char *stringValue, const char *defaultValue, uint32 size) |
| ErrorCode | getOption (const char *section, const char *option, int *intValue, int defaultValue) |
| ErrorCode | getOption (const char *section, const char *option, bool *boolValue, int defaultValue) |
| void | setAppName (const char *newAppName) override |
| CBagMasterWin * | getMasterWnd () const |
| int | getChromaColor () |
| ErrorCode | verifyCDInDrive (int diskId, const char *waveFile) |
Public Member Functions inherited from Bagel::SpaceBar::CBofOptions | |
| CBofOptions (const char *pszOptionsFile=nullptr) | |
| Loads specified .INI file which contains user options. More... | |
| virtual | ~CBofOptions () |
| ErrorCode | commit () |
| ErrorCode | loadOptionFile (const char *pszFile) |
| Loads and builds Option list. More... | |
| const char * | getFileName () const |
| ErrorCode | writeSetting (const char *pszSection, const char *pszOption, const char *pszValue) |
| ErrorCode | writeSetting (const char *pszSection, const char *pszOption, int nValue) |
| ErrorCode | readSetting (const char *section, const char *option, char *stringValue, const char *defaultValue, uint32 nSize) |
| ErrorCode | readSetting (const char *section, const char *option, int *nValue, int defaultValue) |
| ErrorCode | readSetting (const char *section, const char *option, bool *boolValue, bool defaultValue) |
| ErrorCode | load () |
| void | release () |
Public Member Functions inherited from Bagel::CBofObject | |
| virtual void | DeleteObject () |
Public Member Functions inherited from Bagel::SpaceBar::CBofApp | |
| CBofApp (const char *pszAppName) | |
| ErrorCode | preInit () |
| void | postShutDown () |
| const char * | getAppName () const |
| void | setMainWindow (CBofWindow *pWnd) |
| CBofWindow * | getMainWindow () const |
| CBofWindow * | getActualWindow () const |
| void | setPalette (CBofPalette *pPalette) |
| CBofPalette * | getPalette () const |
| int | screenWidth () const |
| int | screenHeight () const |
| int | screenDepth () const |
| CBofCursor | getDefaultCursor () const |
| void | setDefaultCursor (CBofCursor &cCursor) |
| void | addCursor (CBofCursor &cCursor) |
| void | delCursor (int nIndex) |
| CBofCursor | getCursor (int nIndex) |
| int | getNumberOfCursors () const |
| void | setCaptureControl (CBofWindow *ctl) |
| CBofWindow * | getCaptureControl () const |
| void | setFocusControl (CBofWindow *ctl) |
| CBofWindow * | getFocusControl () const |
| bool | consolePlayVideo (const Common::Path &path) |
Public Member Functions inherited from Bagel::CBofError | |
| void | reportError (ErrorCode errCode, const char *format,...) |
| bool | errorOccurred () const |
| ErrorCode | getErrorCode () const |
| void | clearError () |
Public Attributes | |
| CBetArea | g_cBetAreas [BIBBLE_NUM_BET_AREAS] |
| const CBofRect | viewPortRect = CBofRect(80, 10, 559, 369) |
| CBofRect | viewRect |
| Graphics::Screen * | _screen = nullptr |
Public Attributes inherited from Bagel::BagelEngine | |
| bool | _useOriginalSaveLoad = false |
| SpaceBar::CBagMasterWin * | _masterWin = nullptr |
| CBofPoint | g_cInitLoc |
| bool | g_bUseInitLoc = false |
| bool | g_getVilVarsFl = true |
| MusicPlayer * | _midi = nullptr |
Public Attributes inherited from Engine | |
| OSystem * | _system |
| Audio::Mixer * | _mixer |
Protected Member Functions | |
| Common::Error | run () override |
| ErrorCode | initialize () override |
| ErrorCode | shutdown () override |
| void | pauseEngineIntern (bool pause) override |
Protected Member Functions inherited from Engine | |
| virtual int | runDialog (GUI::Dialog &dialog) |
| void | defaultSyncSoundSettings () |
Protected Member Functions inherited from Bagel::SpaceBar::CBagel | |
| ErrorCode | initLocalFilePaths () |
Protected Member Functions inherited from Bagel::SpaceBar::CBofApp | |
| void | StartupCode () |
| void | ShutDownCode () |
Protected Member Functions inherited from Bagel::CBofError | |
| virtual void | bofMessageBox (const Common::String &content, const Common::String &title) |
Additional Inherited Members | |
Public Types inherited from Engine | |
| enum | EngineFeature { kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime, kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride } |
Static Public Member Functions inherited from Engine | |
| static void | quitGame () |
| static bool | shouldQuit () |
| static bool | warnUserAboutUnsupportedGame (Common::String msg=Common::String()) |
| static bool | warnUserAboutUnsupportedAddOn (Common::String addOnName) |
| static void | errorAddingAddOnWithoutBaseGame (Common::String addOnName, Common::String gameId) |
| static void | errorUnsupportedGame (Common::String extraMsg) |
Static Public Member Functions inherited from Bagel::SpaceBar::CBagel | |
| static CBagel * | getBagApp () |
| static void | showNextCDDialog (CBofWindow *parentWin, int diskId) |
| static CBofVHashTable< CBofString, 131 > * | getCacheFileList () |
Static Public Member Functions inherited from Bagel::CBofObject | |
| static bool | isValidObject (const CBofObject *pObject) |
Static Public Member Functions inherited from Bagel::SpaceBar::CBofApp | |
| static uint32 | getMachineSpeed () |
| static CBofApp * | getApp () |
Static Public Member Functions inherited from Bagel::CBofError | |
| static void | fatalError (ErrorCode errCode, const char *format,...) |
| static void | initialize () |
| static int | getErrorCount () |
Protected Attributes inherited from Engine | |
| Common::TimerManager * | _timer |
| Common::EventManager * | _eventMan |
| Common::SaveFileManager * | _saveFileMan |
| GUI::Dialog * | _mainMenuDialog |
| const Common::String | _targetName |
| int32 | _activeEnhancements = kEnhGameBreakingBugFixes |
Protected Attributes inherited from Bagel::SpaceBar::CBagel | |
| const BagelReg * | _gameReg = nullptr |
| int | _numRetries = 20 |
| int | _installCode = 0 |
Protected Attributes inherited from Bagel::SpaceBar::CBofOptions | |
| char | _szFileName [MAX_FNAME] |
| COption * | _pOptionList |
| bool | _bDirty |
Protected Attributes inherited from Bagel::SpaceBar::CBofApp | |
| char | _szAppName [128] = { 0 } |
| CBofList< CBofCursor > | _cCursorList |
| CBofCursor | _cDefaultCursor |
| CBofWindow * | _pMainWnd = nullptr |
| CBofPalette * | _pPalette = nullptr |
| CBofPalette * | _pDefPalette = nullptr |
| int | _nScreenDX = 0 |
| int | _nScreenDY = 0 |
| int | _nColorDepth = 0 |
| int | _nIterations = 1 |
Protected Attributes inherited from Bagel::CBofError | |
| ErrorCode | _errCode |
Static Protected Attributes inherited from Bagel::SpaceBar::CBofApp | |
| static CBofApp * | _pBofApp |
Static Protected Attributes inherited from Bagel::CBofError | |
| static int | _count |
|
overrideprotectedvirtual |
Initialize the engine and start its main loop.
Implements Engine.
|
overrideprotectedvirtual |
Initializes BAGEL, checks system resources, etc...
Reimplemented from Bagel::SpaceBar::CBagel.
|
overrideprotectedvirtual |
Performs cleanup and destruction of Bagel object
Reimplemented from Bagel::SpaceBar::CBagel.
|
overrideprotectedvirtual |
Pause all internal timers.
Reimplemented from Engine.
|
overridevirtual |
Initialize SearchMan according to the game path.
By default, this adds the directory in non-flat mode with a depth of 4 as priority 0 to SearchMan.
| gamePath | The base directory of the game data. |
Reimplemented from Engine.
|
overridevirtual |
Indicate whether a game state can be loaded.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Indicate whether a game state can be saved.
| msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Save a game state
Reimplemented from Engine.
|
overridevirtual |
Load a game state
Reimplemented from Engine.
|
overridevirtual |
Handles saving the game
Reimplemented from Engine.
|
overridevirtual |
Handles loading a savegame
Reimplemented from Engine.