ScummVM API documentation
Saga::ScriptThread Class Reference

Public Types

enum  { THREAD_STACK_SIZE = 256 }
 

Public Member Functions

byte * baseAddress (byte addrMode)
 
int16 stackTop ()
 
uint pushedSize ()
 
void push (int16 value)
 
int16 pop ()
 
void wait (int waitType)
 
void waitWalk (void *threadObj)
 
void waitDelay (int sleepTime)
 
void waitFrames (int frames)
 

Public Attributes

Common::Array< int16 > _stackBuf
 
uint16 _stackTopIndex = 0
 
uint16 _frameIndex = 0
 
uint16 _threadVars [kThreadVarMax]
 
byte * _moduleBase = 0
 
uint16 _moduleBaseSize = 0
 
byte * _commonBase = nullptr
 
byte * _staticBase = nullptr
 
VoiceLUT_voiceLUT = nullptr
 
StringsTable_strings = nullptr
 
int _flags = 0
 
int _waitType = 0
 
uint _sleepTime = 0
 
void * _threadObj = nullptr
 
int16 _returnValue = 0
 
uint16 _instructionOffset = 0
 
int32 _frameWait = 0
 

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