ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <script.h>

Inheritance diagram for Wintermute::ScScript:
Collaboration diagram for Wintermute::ScScript:

List of all members.

Classes

struct  TEventPos
struct  TExternalFunction
struct  TFunctionPos
struct  TMethodPos
struct  TScriptHeader

Public Member Functions

bool finishThreads ()
bool copyParameters (ScStack *stack)
void afterLoad ()
bool resume ()
bool pause ()
bool canHandleEvent (const Common::String &eventName) const
bool canHandleMethod (const Common::String &methodName) const
bool createThread (ScScript *original, uint32 initIP, const Common::String &eventName)
bool createMethodThread (ScScript *original, const Common::String &methodName)
ScScriptinvokeEventHandler (const Common::String &eventName, bool unbreakable=false)
void runtimeError (const char *fmt,...)
bool run ()
bool finish (bool includingThreads=false)
bool sleep (uint32 duration)
bool waitForExclusive (BaseObject *object)
bool waitFor (BaseObject *object)
ScValuegetVar (char *name)
uint32 getFuncPos (const Common::String &name)
uint32 getEventPos (const Common::String &name) const
uint32 getMethodPos (const Common::String &name) const
virtual bool executeInstruction ()
char * getString ()
uint32 getDWORD ()
double getFloat ()
void cleanup ()
bool create (const char *filename, byte *buffer, uint32 size, BaseScriptHolder *owner)
 ScScript (BaseGame *inGame, ScEngine *engine)
 ~ScScript () override
ScScript::TExternalFunctiongetExternal (char *name)
bool externalCall (ScStack *stack, ScStack *thisStack, ScScript::TExternalFunction *function)

Public Attributes

BaseArray< int > _breakpoints
bool _tracingMode
ScScript_parentScript
bool _unbreakable
bool _freezable
uint32 _timeSlice
uint32 _waitTime
bool _waitFrozen
BaseObject_waitObject
ScScript_waitScript
TScriptState _state
TScriptState _origState
TScriptHeader _header
ScStack_callStack
ScStack_thisStack
ScStack_scopeStack
ScStack_stack
ScValue_globals
ScEngine_engine
int32 _currentLine
uint32 _iP
Common::SeekableReadStream_scriptStream
char * _filename
bool _thread
bool _methodThread
char * _threadEvent
BaseScriptHolder_owner

Protected Attributes

ScValue_operand
ScValue_reg1

Private Member Functions

void readHeader ()
bool initScript ()
bool initTables ()
virtual void preInstHook (uint32 inst)
virtual void postInstHook (uint32 inst)

Private Attributes

uint32 _bufferSize
byte_buffer
char ** _symbols
uint32 _numSymbols
TFunctionPos_functions
TMethodPos_methods
TEventPos_events
uint32 _numExternals
TExternalFunction_externals
uint32 _numFunctions
uint32 _numMethods
uint32 _numEvents

Detailed Description

Definition at line 45 of file script.h.


Constructor & Destructor Documentation

Wintermute::ScScript::ScScript ( BaseGame inGame,
ScEngine engine 
)

Definition at line 52 of file script.cpp.

Wintermute::ScScript::~ScScript (  )  [override]

Definition at line 115 of file script.cpp.


Member Function Documentation

void Wintermute::ScScript::afterLoad (  ) 

Definition at line 1517 of file script.cpp.

bool Wintermute::ScScript::canHandleEvent ( const Common::String eventName  )  const

Definition at line 1422 of file script.cpp.

bool Wintermute::ScScript::canHandleMethod ( const Common::String methodName  )  const

Definition at line 1428 of file script.cpp.

void Wintermute::ScScript::cleanup (  ) 

Definition at line 397 of file script.cpp.

bool Wintermute::ScScript::copyParameters ( ScStack stack  ) 

Definition at line 1489 of file script.cpp.

bool Wintermute::ScScript::create ( const char *  filename,
byte buffer,
uint32  size,
BaseScriptHolder owner 
)

Definition at line 253 of file script.cpp.

bool Wintermute::ScScript::createMethodThread ( ScScript original,
const Common::String methodName 
)

Definition at line 343 of file script.cpp.

bool Wintermute::ScScript::createThread ( ScScript original,
uint32  initIP,
const Common::String eventName 
)

Definition at line 291 of file script.cpp.

bool Wintermute::ScScript::executeInstruction (  )  [virtual]

Definition at line 560 of file script.cpp.

bool Wintermute::ScScript::externalCall ( ScStack stack,
ScStack thisStack,
ScScript::TExternalFunction function 
)

Definition at line 1474 of file script.cpp.

bool Wintermute::ScScript::finish ( bool  includingThreads = false  ) 

Definition at line 1271 of file script.cpp.

bool Wintermute::ScScript::finishThreads (  ) 

Definition at line 1506 of file script.cpp.

uint32 Wintermute::ScScript::getDWORD (  ) 

Definition at line 484 of file script.cpp.

uint32 Wintermute::ScScript::getEventPos ( const Common::String name  )  const

Definition at line 1411 of file script.cpp.

ScScript::TExternalFunction * Wintermute::ScScript::getExternal ( char *  name  ) 

Definition at line 1463 of file script.cpp.

double Wintermute::ScScript::getFloat (  ) 

Definition at line 493 of file script.cpp.

uint32 Wintermute::ScScript::getFuncPos ( const Common::String name  ) 

Definition at line 1166 of file script.cpp.

uint32 Wintermute::ScScript::getMethodPos ( const Common::String name  )  const

Definition at line 1177 of file script.cpp.

char * Wintermute::ScScript::getString (  ) 

Definition at line 514 of file script.cpp.

ScValue * Wintermute::ScScript::getVar ( char *  name  ) 

Definition at line 1188 of file script.cpp.

bool Wintermute::ScScript::initScript (  )  [private]

Definition at line 135 of file script.cpp.

bool Wintermute::ScScript::initTables (  )  [private]

Definition at line 178 of file script.cpp.

ScScript * Wintermute::ScScript::invokeEventHandler ( const Common::String eventName,
bool  unbreakable = false 
)

Definition at line 1377 of file script.cpp.

bool Wintermute::ScScript::pause (  ) 

Definition at line 1434 of file script.cpp.

void Wintermute::ScScript::postInstHook ( uint32  inst  )  [private, virtual]

Reimplemented in Wintermute::DebuggableScript.

Definition at line 1538 of file script.cpp.

void Wintermute::ScScript::preInstHook ( uint32  inst  )  [private, virtual]

Reimplemented in Wintermute::DebuggableScript.

Definition at line 1536 of file script.cpp.

void Wintermute::ScScript::readHeader (  )  [private]

Definition at line 119 of file script.cpp.

bool Wintermute::ScScript::resume (  ) 

Definition at line 1452 of file script.cpp.

bool Wintermute::ScScript::run (  ) 

Definition at line 1285 of file script.cpp.

void Wintermute::ScScript::runtimeError ( const char *  fmt,
  ... 
)

Definition at line 1292 of file script.cpp.

bool Wintermute::ScScript::sleep ( uint32  duration  ) 

Definition at line 1252 of file script.cpp.

bool Wintermute::ScScript::waitFor ( BaseObject object  ) 

Definition at line 1232 of file script.cpp.

bool Wintermute::ScScript::waitForExclusive ( BaseObject object  ) 

Definition at line 1245 of file script.cpp.


Member Data Documentation

Definition at line 47 of file script.h.

Definition at line 141 of file script.h.

Definition at line 140 of file script.h.

Definition at line 124 of file script.h.

Reimplemented in Wintermute::DebuggableScript.

Definition at line 129 of file script.h.

Definition at line 158 of file script.h.

Definition at line 160 of file script.h.

Definition at line 146 of file script.h.

Definition at line 60 of file script.h.

Definition at line 156 of file script.h.

Definition at line 128 of file script.h.

Definition at line 137 of file script.h.

Definition at line 157 of file script.h.

Definition at line 148 of file script.h.

Definition at line 163 of file script.h.

Definition at line 159 of file script.h.

Definition at line 161 of file script.h.

Definition at line 162 of file script.h.

Definition at line 155 of file script.h.

Definition at line 57 of file script.h.

Definition at line 58 of file script.h.

Definition at line 126 of file script.h.

Definition at line 127 of file script.h.

Definition at line 154 of file script.h.

Definition at line 125 of file script.h.

Definition at line 147 of file script.h.

Definition at line 149 of file script.h.

Definition at line 68 of file script.h.

Definition at line 48 of file script.h.

Definition at line 51 of file script.h.

Definition at line 77 of file script.h.

Definition at line 79 of file script.h.

Definition at line 76 of file script.h.


The documentation for this class was generated from the following files:
  • engines/wintermute/base/scriptables/script.h
  • engines/wintermute/base/scriptables/script.cpp


Generated on Sat Sep 26 2020 05:04:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge