Public Member Functions | |
CBagel (const BagelReg *gameReg) | |
void | registerGame (const BagelReg *gameReg) |
ErrorCode | initialize () override |
ErrorCode | runApp () override |
ErrorCode | shutdown () 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::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::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 () |
Static Public Member Functions | |
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::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 Member Functions | |
ErrorCode | initLocalFilePaths () |
Protected Member Functions inherited from Bagel::CBofApp | |
void | StartupCode () |
void | ShutDownCode () |
virtual bool | shouldQuit () const =0 |
Protected Member Functions inherited from Bagel::CBofError | |
virtual void | bofMessageBox (const Common::String &content, const Common::String &title) |
Protected Attributes | |
const BagelReg * | _gameReg = nullptr |
int | _numRetries = 20 |
int | _installCode = 0 |
Protected Attributes inherited from Bagel::CBofOptions | |
char | _szFileName [MAX_FNAME] |
COption * | _pOptionList |
bool | _bDirty |
Protected Attributes inherited from Bagel::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 |
Additional Inherited Members | |
Static Protected Attributes inherited from Bagel::CBofApp | |
static CBofApp * | _pBofApp |
Static Protected Attributes inherited from Bagel::CBofError | |
static int | _count |
void Bagel::CBagel::registerGame | ( | const BagelReg * | gameReg | ) |
Registers game information for this game object
gameReg | Game registration info |
|
overridevirtual |
Initializes BAGEL, checks system resources, etc...
Reimplemented from Bagel::CBofApp.
Reimplemented in Bagel::SpaceBar::SpaceBarEngine.
|
overridevirtual |
Provides main message loop (MainEventLoop)
Reimplemented from Bagel::CBofApp.
|
overridevirtual |
Performs cleanup and destruction of Bagel object
Reimplemented from Bagel::CBofApp.
Reimplemented in Bagel::SpaceBar::SpaceBarEngine.
ErrorCode Bagel::CBagel::setOption | ( | const char * | section, |
const char * | option, | ||
const char * | stringValue | ||
) |
Sets specified user option in associated .INI file
section | .INI section to write to |
option | Option to add/update |
stringValue | New value of option |
ErrorCode Bagel::CBagel::setOption | ( | const char * | section, |
const char * | option, | ||
int | intValue | ||
) |
Sets specified user option in associated .INI file
section | .INI section to write to |
option | Option to add/update |
intValue | New value of option |
ErrorCode Bagel::CBagel::getOption | ( | const char * | section, |
const char * | option, | ||
char * | stringValue, | ||
const char * | defaultValue, | ||
uint32 | size | ||
) |
Gets specified user option from associated .INI file
section | .INI section to read from |
option | Option to retrieve |
stringValue | Buffer to hold value |
defaultValue | Default value if option not found |
size | Length of the stringValue buffer |
ErrorCode Bagel::CBagel::getOption | ( | const char * | section, |
const char * | option, | ||
int * | intValue, | ||
int | defaultValue | ||
) |
Gets specified user option from associated .INI file
section | .INI section to read from |
option | Option to retrieve |
intValue | Buffer to hold value |
defaultValue | Default value if option not found |
ErrorCode Bagel::CBagel::getOption | ( | const char * | section, |
const char * | option, | ||
bool * | boolValue, | ||
int | defaultValue | ||
) |
Gets specified user option from associated .INI file
section | .INI section to read from |
option | Option to retrieve |
boolValue | Buffer to hold value |
defaultValue | Default value if option not found |
ErrorCode Bagel::CBagel::verifyCDInDrive | ( | int | diskId, |
const char * | waveFile | ||
) |
Checks to make sure the Game CD is in the drive
diskId | Disk number |
waveFile | Filename |
|
protected |
initialize full path names to files stored on local disk