ScummVM API documentation
AGS3::ccInstance Struct Reference

Public Types

typedef std::unordered_map< int32_t, ScriptVariableScVarMap
 
typedef std::shared_ptr< ScVarMapPScVarMap
 

Public Member Functions

std::unique_ptr< ccInstanceFork ()
 
void Abort ()
 
void AbortAndDestroy ()
 
int CallScriptFunction (const char *funcname, int32_t num_params, const RuntimeScriptValue *params)
 
Shared::String GetCallStack (int max_lines=INT_MAX) const
 
void GetScriptPosition (ScriptPosition &script_pos) const
 
RuntimeScriptValue GetSymbolAddress (const char *symname) const
 
void DumpInstruction (const ScriptOperation &op) const
 
bool IsBeingRun () const
 
void NotifyAlive ()
 
bool ResolveScriptImports (const ccScript *scri)
 
bool ResolveImportFixups (const ccScript *scri)
 

Static Public Member Functions

static ccInstanceGetCurrentInstance (void)
 
static void FreeInstanceStack ()
 
static std::unique_ptr< ccInstanceCreateFromScript (PScript script)
 
static std::unique_ptr< ccInstanceCreateEx (PScript scri, const ccInstance *joined)
 
static void SetExecTimeout (unsigned sys_poll_ms, unsigned abort_ms, unsigned abort_loops)
 

Public Attributes

int32_t flags
 
PScVarMap globalvars
 
char * globaldata
 
int32_t globaldatasize
 
intptr_t * code
 
ccInstancerunningInst
 
int32_t codesize
 
char * strings
 
int32_t stringssize
 
RuntimeScriptValueexports
 
RuntimeScriptValuestack
 
int num_stackentries
 
char * stackdata
 
char * stackdata_ptr
 
int32_t stackdatasize
 
RuntimeScriptValue registers [CC_NUM_REGISTERS]
 
int32_t pc
 
int32_t line_number
 
PScript instanceof
 
int loadedInstanceId
 
int returnValue
 
int callStackSize
 
int32_t callStackLineNumber [128]
 
int32_t callStackAddr [128]
 
ccInstancecallStackCodeInst [128]
 
uint32_t * resolved_imports
 
int numimports
 
char * code_fixups
 

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