ScummVM
Kyra::Debugger Class Reference

#include <debugger.h>

Inheritance diagram for Kyra::Debugger:
Collaboration diagram for Kyra::Debugger:

Public Member Functions

 Debugger (KyraEngine_v1 *vm)
 
virtual ~Debugger ()
 
virtual void initialize ()
 
- Public Member Functions inherited from GUI::Debugger
 Debugger ()
 
int getCharsPerLine ()
 
int debugPrintf (const char *format,...) GCC_PRINTF(2
 
int void debugPrintColumns (const Common::StringArray &list)
 
virtual void onFrame ()
 The onFrame() method should be invoked by the engine at regular intervals (usually once per main loop iteration) whenever the debugger is attached. More...
 
virtual void attach (const char *entry=0)
 'Attach' the debugger. More...
 
bool isActive () const
 Return true if the debugger is currently active (i.e. More...
 

Protected Member Functions

bool cmdSetScreenDebug (int argc, const char **argv)
 
bool cmdLoadPalette (int argc, const char **argv)
 
bool cmdShowFacings (int argc, const char **argv)
 
bool cmdGameSpeed (int argc, const char **argv)
 
bool cmdListFlags (int argc, const char **argv)
 
bool cmdToggleFlag (int argc, const char **argv)
 
bool cmdQueryFlag (int argc, const char **argv)
 
bool cmdListTimers (int argc, const char **argv)
 
bool cmdSetTimerCountdown (int argc, const char **argv)
 
- 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, 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)
 
virtual void preEnter ()
 Hook for subclasses which is called just before enter() is run. More...
 
virtual void postEnter ()
 Hook for subclasses which is called just after enter() was run. More...
 
void detach ()
 Subclasses should invoke the detach() method in their cmdFOO methods if that command will resume execution of the program (as opposed to executing, say, a "single step through code" command). More...
 
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)
 

Protected Attributes

KyraEngine_v1_vm
 

Additional Inherited Members

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

Detailed Description

Definition at line 35 of file debugger.h.

Constructor & Destructor Documentation

◆ Debugger()

Kyra::Debugger::Debugger ( KyraEngine_v1 vm)

Definition at line 36 of file debugger.cpp.

◆ ~Debugger()

virtual Kyra::Debugger::~Debugger ( )
inlinevirtual

Reimplemented from GUI::Debugger.

Definition at line 38 of file debugger.h.

Member Function Documentation

◆ cmdGameSpeed()

bool Kyra::Debugger::cmdGameSpeed ( int  argc,
const char **  argv 
)
protected

Definition at line 122 of file debugger.cpp.

◆ cmdListFlags()

bool Kyra::Debugger::cmdListFlags ( int  argc,
const char **  argv 
)
protected

Definition at line 139 of file debugger.cpp.

◆ cmdListTimers()

bool Kyra::Debugger::cmdListTimers ( int  argc,
const char **  argv 
)
protected

Definition at line 177 of file debugger.cpp.

◆ cmdLoadPalette()

bool Kyra::Debugger::cmdLoadPalette ( int  argc,
const char **  argv 
)
protected

Definition at line 68 of file debugger.cpp.

◆ cmdQueryFlag()

bool Kyra::Debugger::cmdQueryFlag ( int  argc,
const char **  argv 
)
protected

Definition at line 166 of file debugger.cpp.

◆ cmdSetScreenDebug()

bool Kyra::Debugger::cmdSetScreenDebug ( int  argc,
const char **  argv 
)
protected

Definition at line 53 of file debugger.cpp.

◆ cmdSetTimerCountdown()

bool Kyra::Debugger::cmdSetTimerCountdown ( int  argc,
const char **  argv 
)
protected

Definition at line 185 of file debugger.cpp.

◆ cmdShowFacings()

bool Kyra::Debugger::cmdShowFacings ( int  argc,
const char **  argv 
)
protected

Definition at line 112 of file debugger.cpp.

◆ cmdToggleFlag()

bool Kyra::Debugger::cmdToggleFlag ( int  argc,
const char **  argv 
)
protected

Definition at line 151 of file debugger.cpp.

◆ initialize()

void Kyra::Debugger::initialize ( )
virtual

Reimplemented in Kyra::Debugger_EoB, Kyra::Debugger_HoF, Kyra::Debugger_v2, and Kyra::Debugger_LoK.

Definition at line 40 of file debugger.cpp.

Member Data Documentation

◆ _vm

KyraEngine_v1* Kyra::Debugger::_vm
protected

Definition at line 43 of file debugger.h.


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