ScummVM API documentation
MM::MM1::Console Class Reference
Inheritance diagram for MM::MM1::Console:
GUI::Debugger MM::MM1::Game::SpellCasting

Protected Member Functions

bool cmdDumpMap (int argc, const char **argv)
 
bool cmdDumpMonsters (int argc, const char **argv)
 
bool cmdDumpItems (int argc, const char **argv)
 
bool cmdMapString (int argc, const char **argv)
 
bool cmdIntangible (int argc, const char **argv)
 
bool cmdMap (int argc, const char **argv)
 
bool cmdPos (int argc, const char **argv)
 
bool cmdCast (int argc, const char **argv)
 
bool cmdSpellsAll (int argc, const char **argv)
 
bool cmdEncounter (int argc, const char **argv)
 
bool cmdEncounters (int argc, const char **argv)
 
bool cmdSpecials (int argc, const char **argv)
 
bool cmdSpecial (int argc, const char **argv)
 
bool cmdView (int argc, const char **argv)
 
bool cmdDumpRoster (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, 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 void preEnter ()
 
virtual void postEnter ()
 
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)
 
- Protected Member Functions inherited from MM::MM1::Game::SpellCasting
bool isInCombat () const
 

Additional Inherited Members

- 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
 
- Public Member Functions inherited from MM::MM1::Game::SpellCasting
void setSpell (const Character *chr, int lvl, int num)
 
void setSpell (int spellIndex, int requiredSp, int requiredGems)
 
bool hasCharTarget () const
 
bool canCast () const
 
bool isMagicAllowed () const
 
SpellState getSpellState () const
 
Common::String getSpellError () const
 
- Static Public Member Functions inherited from MM::MM1::Game::SpellCasting
static int getSpellIndex (const Character *chr, int lvl, int num)
 
static void getSpellLevelNum (int spellIndex, int &lvl, int &num)
 
- 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
 
- Protected Attributes inherited from MM::MM1::Game::SpellCasting
int _spellIndex = 0
 
int _requiredSp = 0
 
int _requiredGems = 0
 
SpellState _spellState = SS_OK
 

Member Function Documentation

◆ cmdDumpMap()

bool MM::MM1::Console::cmdDumpMap ( int  argc,
const char **  argv 
)
protected

Used to dump a map's code and data

◆ cmdDumpMonsters()

bool MM::MM1::Console::cmdDumpMonsters ( int  argc,
const char **  argv 
)
protected

Dumps the monster list

◆ cmdDumpItems()

bool MM::MM1::Console::cmdDumpItems ( int  argc,
const char **  argv 
)
protected

Dumps the item list

◆ cmdMapString()

bool MM::MM1::Console::cmdMapString ( int  argc,
const char **  argv 
)
protected

Prints a string from within a map's data segment

◆ cmdIntangible()

bool MM::MM1::Console::cmdIntangible ( int  argc,
const char **  argv 
)
protected

Toggles intangible mode, allowing walking through walls

◆ cmdMap()

bool MM::MM1::Console::cmdMap ( int  argc,
const char **  argv 
)
protected

Jumps to a given map, and optionally a given position

◆ cmdPos()

bool MM::MM1::Console::cmdPos ( int  argc,
const char **  argv 
)
protected

Changes the party's position in the current map

◆ cmdCast()

bool MM::MM1::Console::cmdCast ( int  argc,
const char **  argv 
)
protected

Casts a spell

◆ cmdSpellsAll()

bool MM::MM1::Console::cmdSpellsAll ( int  argc,
const char **  argv 
)
protected

Enables/disables casting any spell

◆ cmdEncounter()

bool MM::MM1::Console::cmdEncounter ( int  argc,
const char **  argv 
)
protected

Trigger an encounter

◆ cmdEncounters()

bool MM::MM1::Console::cmdEncounters ( int  argc,
const char **  argv 
)
protected

Turns encounters on or off

◆ cmdSpecials()

bool MM::MM1::Console::cmdSpecials ( int  argc,
const char **  argv 
)
protected

List the special cells in the current map

◆ cmdSpecial()

bool MM::MM1::Console::cmdSpecial ( int  argc,
const char **  argv 
)
protected

Trigger a special in the current map

◆ cmdView()

bool MM::MM1::Console::cmdView ( int  argc,
const char **  argv 
)
protected

Add a specific view

◆ cmdDumpRoster()

bool MM::MM1::Console::cmdDumpRoster ( int  argc,
const char **  argv 
)
protected

Dump the roster in the original roster.dat format


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