ScummVM API documentation
Wintermute::ScScript Class Reference
Inheritance diagram for Wintermute::ScScript:
Wintermute::BaseClass Wintermute::DebuggableScript

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::TExternalFunctiongetExternal (char *name)
 
bool externalCall (ScStack *stack, ScStack *thisStack, ScScript::TExternalFunction *function)
 
- Public Member Functions inherited from Wintermute::BaseClass
bool setEditorProp (const Common::String &propName, const Common::String &propValue)
 
Common::String getEditorProp (const Common::String &propName, const Common::String &initVal=Common::String())
 
 BaseClass (TDynamicConstructor, TDynamicConstructor)
 
bool parseEditorProperty (char *buffer, bool complete=true)
 
virtual bool saveAsText (BaseDynamicBuffer *buffer, int indent=0)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

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
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame_gameRef
 

Protected Attributes

ScValue_operand
 
ScValue_reg1
 
- Protected Attributes inherited from Wintermute::BaseClass
Common::HashMap< Common::String, Common::String_editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

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