ScummVM API documentation
Ultima::Ultima4::DebuggerActions Class Referenceabstract

#include <debugger_actions.h>

Inheritance diagram for Ultima::Ultima4::DebuggerActions:
Ultima::Ultima4::Debugger

Public Member Functions

void summonCreature (const Common::String &name)
 
bool destroyAt (const Coords &coords)
 
Direction directionFromName (const Common::String &dirStr)
 
bool getChestTrapHandler (int player)
 
bool jimmyAt (const Coords &coords)
 
bool mixReagentsForSpellU4 (int spell)
 
bool mixReagentsForSpellU5 (int spell)
 
bool gameSpellMixHowMany (int spell, int num, Ingredients *ingredients)
 
bool openAt (const Coords &coords)
 
void gameCastSpell (uint spell, int caster, int param)
 
bool talkAt (const Coords &coords)
 

Protected Member Functions

virtual bool isDebuggerActive () const =0
 
virtual void print (const char *fmt,...)=0
 
virtual void printN (const char *fmt,...)=0
 
virtual void prompt ()=0
 
bool isCombat () const
 
int getCombatFocus () const
 

Detailed Description

This is a secondary class inherited by the Debugger class that contains various support methods for implementing the different actions players can take in the game

Member Function Documentation

◆ isDebuggerActive()

virtual bool Ultima::Ultima4::DebuggerActions::isDebuggerActive ( ) const
protectedpure virtual

Returns true if the debugger is active

Implemented in Ultima::Ultima4::Debugger.

◆ print()

virtual void Ultima::Ultima4::DebuggerActions::print ( const char *  fmt,
  ... 
)
protectedpure virtual

Prints a message to the console if it's active, or to the game screen if not

Implemented in Ultima::Ultima4::Debugger.

◆ printN()

virtual void Ultima::Ultima4::DebuggerActions::printN ( const char *  fmt,
  ... 
)
protectedpure virtual

Prints a message to the console if it's active, or to the game screen if not

Implemented in Ultima::Ultima4::Debugger.

◆ prompt()

virtual void Ultima::Ultima4::DebuggerActions::prompt ( )
protectedpure virtual

Prompts for input, but only if debugger isn't running

Implemented in Ultima::Ultima4::Debugger.

◆ isCombat()

bool Ultima::Ultima4::DebuggerActions::isCombat ( ) const
protected

Returns true if combat is currently active

◆ getCombatFocus()

int Ultima::Ultima4::DebuggerActions::getCombatFocus ( ) const
protected

Returns currently focused character in combat mode

◆ summonCreature()

void Ultima::Ultima4::DebuggerActions::summonCreature ( const Common::String name)

Summons a creature given by 'creatureName'. This can either be given as the creature's name, or the creature's id. Once it finds the creature to be summoned, it calls gameSpawnCreature() to spawn it.

◆ destroyAt()

bool Ultima::Ultima4::DebuggerActions::destroyAt ( const Coords coords)

Destroy object at a given co-ordinate

◆ directionFromName()

Direction Ultima::Ultima4::DebuggerActions::directionFromName ( const Common::String dirStr)

Returns a direction from a given string

◆ getChestTrapHandler()

bool Ultima::Ultima4::DebuggerActions::getChestTrapHandler ( int  player)

Called by getChest() to handle possible traps on chests

◆ jimmyAt()

bool Ultima::Ultima4::DebuggerActions::jimmyAt ( const Coords coords)

Attempts to jimmy a locked door at map coordinates x,y. The locked door is replaced by a permanent annotation of an unlocked door tile.

◆ mixReagentsForSpellU4()

bool Ultima::Ultima4::DebuggerActions::mixReagentsForSpellU4 ( int  spell)

Prompts for spell reagents to mix in the traditional Ultima IV style.

◆ mixReagentsForSpellU5()

bool Ultima::Ultima4::DebuggerActions::mixReagentsForSpellU5 ( int  spell)

Prompts for spell reagents to mix with an Ultima V-like menu.

◆ openAt()

bool Ultima::Ultima4::DebuggerActions::openAt ( const Coords coords)

Attempts to open a door at map coordinates x,y. The door is replaced by a temporary annotation of a floor tile for 4 turns.

◆ talkAt()

bool Ultima::Ultima4::DebuggerActions::talkAt ( const Coords coords)

Begins a conversation with the NPC at map coordinates x,y. If no NPC is present at that point, zero is returned.


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