ScummVM API documentation
Mohawk::MystScriptParser Class Referenceabstract
Inheritance diagram for Mohawk::MystScriptParser:
Mohawk::MystStacks::Channelwood Mohawk::MystStacks::Credits Mohawk::MystStacks::Dni Mohawk::MystStacks::Intro Mohawk::MystStacks::MakingOf Mohawk::MystStacks::Mechanical Mohawk::MystStacks::Menu Mohawk::MystStacks::Myst Mohawk::MystStacks::Selenitic Mohawk::MystStacks::Slides Mohawk::MystStacks::Stoneship

Public Member Functions

 MystScriptParser (MohawkEngine_Myst *vm, MystStack stackId)
 
void runScript (const MystScript &script, MystArea *invokingResource=nullptr)
 
void runOpcode (uint16 op, uint16 var=0, const ArgumentsArray &args=ArgumentsArray())
 
const Common::String getOpcodeDesc (uint16 op)
 
MystScript readScript (Common::SeekableReadStream *stream, MystScriptType type)
 
void setInvokingResource (MystArea *resource)
 
bool isScriptRunning () const
 
virtual void disablePersistentScripts ()=0
 
virtual void runPersistentScripts ()=0
 
virtual uint16 getVar (uint16 var)
 
virtual void toggleVar (uint16 var)
 
virtual bool setVarValue (uint16 var, uint16 value)
 
MystStack getStackId () const
 
virtual uint16 getMap ()
 
void showMap ()
 
void animatedUpdate (const ArgumentsArray &args, uint16 delay)
 
void soundWaitStop () const
 
void o_toggleVar (uint16 var, const ArgumentsArray &args)
 
void o_setVar (uint16 var, const ArgumentsArray &args)
 
void o_changeCardSwitch4 (uint16 var, const ArgumentsArray &args)
 
void o_changeCardSwitchLtR (uint16 var, const ArgumentsArray &args)
 
void o_changeCardSwitchRtL (uint16 var, const ArgumentsArray &args)
 
void o_takePage (uint16 var, const ArgumentsArray &args)
 
void o_redrawCard (uint16 var, const ArgumentsArray &args)
 
void o_goToDest (uint16 var, const ArgumentsArray &args)
 
void o_goToDestForward (uint16 var, const ArgumentsArray &args)
 
void o_goToDestRight (uint16 var, const ArgumentsArray &args)
 
void o_goToDestLeft (uint16 var, const ArgumentsArray &args)
 
void o_goToDestUp (uint16 var, const ArgumentsArray &args)
 
void o_triggerMovie (uint16 var, const ArgumentsArray &args)
 
void o_toggleVarNoRedraw (uint16 var, const ArgumentsArray &args)
 
void o_drawAreaState (uint16 var, const ArgumentsArray &args)
 
void o_redrawAreaForVar (uint16 var, const ArgumentsArray &args)
 
void o_changeCardDirectional (uint16 var, const ArgumentsArray &args)
 
void o_changeCardPush (uint16 var, const ArgumentsArray &args)
 
void o_changeCardPop (uint16 var, const ArgumentsArray &args)
 
void o_enableAreas (uint16 var, const ArgumentsArray &args)
 
void o_disableAreas (uint16 var, const ArgumentsArray &args)
 
void o_directionalUpdate (uint16 var, const ArgumentsArray &args)
 
void o_toggleAreasActivation (uint16 var, const ArgumentsArray &args)
 
void o_playSound (uint16 var, const ArgumentsArray &args)
 
void o_stopSoundBackground (uint16 var, const ArgumentsArray &args)
 
void o_playSoundBlocking (uint16 var, const ArgumentsArray &args)
 
void o_copyBackBufferToScreen (uint16 var, const ArgumentsArray &args)
 
void o_copyImageToBackBuffer (uint16 var, const ArgumentsArray &args)
 
void o_changeBackgroundSound (uint16 var, const ArgumentsArray &args)
 
void o_soundPlaySwitch (uint16 var, const ArgumentsArray &args)
 
void o_copyImageToScreen (uint16 var, const ArgumentsArray &args)
 
void o_soundResumeBackground (uint16 var, const ArgumentsArray &args)
 
void o_changeCard (uint16 var, const ArgumentsArray &args)
 
void o_drawImageChangeCard (uint16 var, const ArgumentsArray &args)
 
void o_changeMainCursor (uint16 var, const ArgumentsArray &args)
 
void o_hideCursor (uint16 var, const ArgumentsArray &args)
 
void o_showCursor (uint16 var, const ArgumentsArray &args)
 
void o_delay (uint16 var, const ArgumentsArray &args)
 
void o_changeStack (uint16 var, const ArgumentsArray &args)
 
void o_changeCardPlaySoundDirectional (uint16 var, const ArgumentsArray &args)
 
void o_directionalUpdatePlaySound (uint16 var, const ArgumentsArray &args)
 
void o_saveMainCursor (uint16 var, const ArgumentsArray &args)
 
void o_restoreMainCursor (uint16 var, const ArgumentsArray &args)
 
void o_soundWaitStop (uint16 var, const ArgumentsArray &args)
 
void o_exitMap (uint16 var, const ArgumentsArray &args)
 
void o_quit (uint16 var, const ArgumentsArray &args)
 
void NOP (uint16 var, const ArgumentsArray &args)
 

Protected Types

typedef Common::Functor2< uint16, const ArgumentsArray &, void > OpcodeProcMyst
 

Protected Member Functions

void registerOpcode (uint16 op, const char *name, OpcodeProcMyst *command)
 
void overrideOpcode (uint16 op, const char *name, OpcodeProcMyst *command)
 
void setupCommonOpcodes ()
 
template<class T >
T * getInvokingResource () const
 

Protected Attributes

MohawkEngine_Myst_vm
 
MystGameState::Globals_globals
 
uint16 _savedCardId
 
uint16 _savedMapCardId
 
uint16 _savedCursorId
 
int16 _tempVar
 
uint32 _startTime
 

Static Protected Attributes

static const MystStack _stackMap []
 
static const uint16 _startCard []
 

Member Function Documentation

◆ isScriptRunning()

bool Mohawk::MystScriptParser::isScriptRunning ( ) const

Is a script is running?

Allows to detect if some inner loop is running instead of the main loop.


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