ScummVM API documentation
Director::ScriptContext Class Reference
Inheritance diagram for Director::ScriptContext:
Director::Object< ScriptContext > Director::AbstractObject

Public Member Functions

 ScriptContext (Common::String name, ScriptType type=kNoneScript, int id=0)
 
 ScriptContext (const ScriptContext &sc)
 
bool isFactory () const
 
void setFactory (bool flag)
 
void setOnlyInLctxContexts ()
 
bool getOnlyInLctxContexts ()
 
Common::String asString () override
 
Symbol getMethod (const Common::String &methodName) override
 
bool hasProp (const Common::String &propName) override
 
Datum getProp (const Common::String &propName) override
 
Common::String getPropAt (uint32 index) override
 
uint32 getPropCount () override
 
bool setProp (const Common::String &propName, const Datum &value, bool force=false) override
 
Symbol define (const Common::String &name, ScriptData *code, Common::Array< Common::String > *argNames, Common::Array< Common::String > *varNames)
 
Common::String formatFunctionList (const char *prefix)
 
- Public Member Functions inherited from Director::Object< ScriptContext >
Common::String getName () const override
 
ObjectType getObjType () const override
 
bool isDisposed () const override
 
int * getRefCount () const override
 
void incRefCount () override
 
virtual void decRefCount () override
 
int getInheritanceLevel () const override
 
void setName (const Common::String &name) override
 
void dispose () override
 
Common::String asString () override
 
AbstractObjectclone () override
 
Symbol getMethod (const Common::String &methodName) override
 
bool hasProp (const Common::String &propName) override
 
Datum getProp (const Common::String &propName) override
 
Common::String getPropAt (uint32 index) override
 
uint32 getPropCount () override
 
bool setProp (const Common::String &propName, const Datum &value, bool force=false) override
 
bool hasField (int field) override
 
Datum getField (int field) override
 
bool setField (int field, const Datum &value) override
 

Public Attributes

ScriptType _scriptType
 
int _id
 
Common::Array< Common::String_functionNames
 
Common::HashMap< Common::String, Common::Array< uint32 > > _functionByteOffsets
 
SymbolHash _functionHandlers
 
Common::HashMap< uint32, Symbol_eventHandlers
 
Common::Array< Datum_constants
 
Common::HashMap< uint32, Datum_objArray
 
MethodHash _methodNames
 
Common::SharedPtr< Node_assemblyAST
 
- Public Attributes inherited from Director::Object< ScriptContext >
int * _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from Director::Object< ScriptContext >
static void initMethods (const MethodProto protos[])
 
static void cleanupMethods ()
 
- Protected Member Functions inherited from Director::Object< ScriptContext >
 Object (Common::String objName)
 
 Object (const Object &obj)
 
- Protected Attributes inherited from Director::Object< ScriptContext >
Common::String _name
 
ObjectType _objType
 
bool _disposed
 
int _inheritanceLevel
 
- Static Protected Attributes inherited from Director::Object< ScriptContext >
static SymbolHash_methods
 

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