ScummVM API documentation
Wintermute::ScValue Class Reference
Inheritance diagram for Wintermute::ScValue:
Wintermute::BaseClass

Public Member Functions

TValType getTypeTolerant ()
 
void cleanup (bool ignoreNatives=false)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
void setValue (ScValue *val)
 
bool propExists (const char *name)
 
void copy (ScValue *orig, bool copyWhole=false)
 
void setStringVal (const char *val)
 
TValType getType ()
 
bool getBool (bool defaultVal=false)
 
int getInt (int defaultVal=0)
 
double getFloat (double defaultVal=0.0f)
 
const char * getString ()
 
void * getMemBuffer ()
 
BaseScriptablegetNative ()
 
bool deleteProp (const char *name)
 
void deleteProps ()
 
void CleanProps (bool includingNatives)
 
void setBool (bool val)
 
void setInt (int val)
 
void setFloat (double val)
 
void setString (const char *val)
 
void setString (const Common::String &val)
 
void setNULL ()
 
void setNative (BaseScriptable *val, bool persistent=false)
 
void setObject ()
 
void setReference (ScValue *val)
 
bool isNULL ()
 
bool isNative ()
 
bool isString ()
 
bool isBool ()
 
bool isFloat ()
 
bool isInt ()
 
bool isObject ()
 
bool setProp (const char *name, ScValue *val, bool copyWhole=false, bool setAsConst=false)
 
ScValuegetProp (const char *name)
 
 ScValue (BaseGame *inGame)
 
 ScValue (BaseGame *inGame, bool Val)
 
 ScValue (BaseGame *inGame, int32 Val)
 
 ScValue (BaseGame *inGame, double Val)
 
 ScValue (BaseGame *inGame, const char *Val)
 
bool setProperty (const char *propName, int32 value)
 
bool setProperty (const char *propName, const char *value)
 
bool setProperty (const char *propName, double value)
 
bool setProperty (const char *propName, bool value)
 
bool setProperty (const char *propName)
 
- 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)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Static Public Member Functions

static int compare (ScValue *val1, ScValue *val2)
 
static int compareStrict (ScValue *val1, ScValue *val2)
 

Public Attributes

bool _isConstVar
 
bool _persistent
 
BaseScriptable_valNative
 
ScValue_valRef
 
TValType _type
 
Common::HashMap< Common::String, ScValue * > _valObject
 
Common::HashMap< Common::String, ScValue * >::iterator _valIter
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame_gameRef
 

Additional Inherited Members

- 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: