ScummVM API documentation
TwinE::TwinEConsole Class Reference
Inheritance diagram for TwinE::TwinEConsole:
GUI::Debugger

Public Member Functions

 TwinEConsole (TwinEEngine *engine)
 
bool exec (const char *file)
 
- Public Member Functions inherited from GUI::Debugger
int getCharsPerLine ()
 
int debugPrintf (MSVC_PRINTF const char *format,...) GCC_PRINTF(2
 
int void debugPrintColumns (const Common::StringArray &list)
 
virtual void onFrame ()
 
virtual void attach (const char *entry=nullptr)
 
bool isActive () const
 

Protected Member Functions

void preEnter () override
 
void postEnter () override
 
- Protected Member Functions inherited from GUI::Debugger
void registerVar (const Common::String &varname, byte *variable)
 
void registerVar (const Common::String &varname, int *variable)
 
void registerVar (const Common::String &varname, float *variable)
 
void registerVar (const Common::String &varname, bool *variable)
 
void registerVar (const Common::String &varname, int32 **variable, int arraySize)
 
void registerVar (const Common::String &varname, Common::String *variable)
 
void registerCmd (const Common::String &cmdname, Debuglet *debuglet)
 
void registerDefaultCmd (defaultCommand *defaultCommandProcessor)
 
void clearVars ()
 
void setPrompt (Common::String prompt)
 
void resetPrompt ()
 
virtual bool handleCommand (int argc, const char **argv, bool &keepRunning)
 
void detach ()
 
bool cmdExit (int argc, const char **argv)
 
bool cmdHelp (int argc, const char **argv)
 
bool cmdOpenLog (int argc, const char **argv)
 
bool cmdMd5 (int argc, const char **argv)
 
bool cmdMd5Mac (int argc, const char **argv)
 
bool cmdDebugLevel (int argc, const char **argv)
 
bool cmdDebugFlagsList (int argc, const char **argv)
 
bool cmdDebugFlagEnable (int argc, const char **argv)
 
bool cmdDebugFlagDisable (int argc, const char **argv)
 
bool cmdClearLog (int argc, const char **argv)
 
bool cmdExecFile (int argc, const char **argv)
 

Additional Inherited Members

- Protected Types inherited from GUI::Debugger
enum  VarType {
  DVAR_BYTE, DVAR_INT, DVAR_FLOAT, DVAR_BOOL,
  DVAR_INTARRAY, DVAR_STRING
}
 
typedef Common::Functor1< const char *, bool > defaultCommand
 
typedef Common::Functor2< int, const char **, bool > Debuglet
 
- Protected Attributes inherited from GUI::Debugger
PauseToken _debugPauseToken
 
GUI::ConsoleDialog_debuggerDialog
 

Member Function Documentation

◆ preEnter()

void TwinE::TwinEConsole::preEnter ( )
overrideprotectedvirtual

Hook for subclasses which is called just before enter() is run. A typical usage example is pausing music and sound effects.

The default implementation invokes Engine::pauseEngine(true).

Reimplemented from GUI::Debugger.

◆ postEnter()

void TwinE::TwinEConsole::postEnter ( )
overrideprotectedvirtual

Hook for subclasses which is called just after enter() was run. A typical usage example is resuming music and sound effects.

The default implementation invokes Engine::pauseEngine(false).

Reimplemented from GUI::Debugger.


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