ScummVM API documentation
Sci::Object Class Reference
Inheritance diagram for Sci::Object:
Common::Serializable

Public Member Functions

Objectoperator= (const Object &other)
 
reg_t getSpeciesSelector () const
 
void setSpeciesSelector (reg_t value)
 
reg_t getSuperClassSelector () const
 
void setSuperClassSelector (reg_t value)
 
reg_t getInfoSelector () const
 
void setInfoSelector (reg_t info)
 
reg_t getNameSelector () const
 
reg_t getPropDictSelector () const
 
void setPropDictSelector (reg_t value)
 
reg_t getClassScriptSelector () const
 
void setClassScriptSelector (reg_t value)
 
Selector getVarSelector (uint16 i) const
 
reg_t getFunction (const uint16 index) const
 
Selector getFuncSelector (const uint16 index) const
 
int funcSelectorPosition (Selector sel) const
 
int locateVarSelector (SegManager *segMan, Selector slc) const
 
bool isClass () const
 
const ObjectgetClass (SegManager *segMan) const
 
void markAsFreed ()
 
bool isFreed () const
 
uint getVarCount () const
 
void init (const Script &owner, reg_t obj_pos, bool initVariables=true)
 
reg_t getVariable (uint var) const
 
reg_tgetVariableRef (uint var)
 
uint16 getMethodCount () const
 
reg_t getPos () const
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 
void cloneFromObject (const Object *obj)
 
bool relocateSci0Sci21 (SegmentId segment, int location, uint32 heapOffset)
 
int propertyOffsetToId (SegManager *segMan, int propertyOffset) const
 
void initSpecies (SegManager *segMan, reg_t addr, bool applyScriptPatches)
 
void initSuperClass (SegManager *segMan, reg_t addr, bool applyScriptPatches)
 
bool initBaseObject (SegManager *segMan, reg_t addr, bool doInitSuperClass=true, bool applyScriptPatches=true)
 

Member Function Documentation

◆ getFunction()

reg_t Sci::Object::getFunction ( const uint16  index) const
inline
Returns
A pointer to the code for the method at the given index.

◆ getFuncSelector()

Selector Sci::Object::getFuncSelector ( const uint16  index) const
inline
Returns
The selector for the method at the given index.

◆ funcSelectorPosition()

int Sci::Object::funcSelectorPosition ( Selector  sel) const
inline

Determines if this object is a class and explicitly defines the selector as a funcselector. Does NOT say anything about the object's superclasses, i.e. failure may be returned even if one of the superclasses defines the funcselector

◆ locateVarSelector()

int Sci::Object::locateVarSelector ( SegManager segMan,
Selector  slc 
) const

Determines if the object explicitly defines slc as a varselector. Returns -1 if not found.


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