ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <script_value.h>

Inheritance diagram for Wintermute::ScValue:
Collaboration diagram for Wintermute::ScValue:

List of all members.

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)
 ~ScValue () override
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)

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

Private Attributes

bool _valBool
int32 _valInt
double _valFloat
char * _valString

Detailed Description

Definition at line 43 of file script_value.h.


Constructor & Destructor Documentation

Wintermute::ScValue::ScValue ( BaseGame inGame  ) 

Definition at line 46 of file script_value.cpp.

Wintermute::ScValue::ScValue ( BaseGame inGame,
bool  Val 
)

Definition at line 61 of file script_value.cpp.

Wintermute::ScValue::ScValue ( BaseGame inGame,
int32  Val 
)

Definition at line 76 of file script_value.cpp.

Wintermute::ScValue::ScValue ( BaseGame inGame,
double  Val 
)

Definition at line 91 of file script_value.cpp.

Wintermute::ScValue::ScValue ( BaseGame inGame,
const char *  Val 
)

Definition at line 106 of file script_value.cpp.

Wintermute::ScValue::~ScValue (  )  [override]

Definition at line 155 of file script_value.cpp.


Member Function Documentation

void Wintermute::ScValue::CleanProps ( bool  includingNatives  ) 

Definition at line 285 of file script_value.cpp.

void Wintermute::ScValue::cleanup ( bool  ignoreNatives = false  ) 

Definition at line 122 of file script_value.cpp.

int Wintermute::ScValue::compare ( ScValue val1,
ScValue val2 
) [static]

Definition at line 902 of file script_value.cpp.

int Wintermute::ScValue::compareStrict ( ScValue val1,
ScValue val2 
) [static]

Definition at line 956 of file script_value.cpp.

void Wintermute::ScValue::copy ( ScValue orig,
bool  copyWhole = false 
)

!!! ref->native++

Definition at line 708 of file script_value.cpp.

bool Wintermute::ScValue::deleteProp ( const char *  name  ) 

Definition at line 195 of file script_value.cpp.

void Wintermute::ScValue::deleteProps (  ) 

Definition at line 274 of file script_value.cpp.

bool Wintermute::ScValue::getBool ( bool  defaultVal = false  ) 

Definition at line 540 of file script_value.cpp.

double Wintermute::ScValue::getFloat ( double  defaultVal = 0.0f  ) 

Definition at line 596 of file script_value.cpp.

int Wintermute::ScValue::getInt ( int  defaultVal = 0  ) 

Definition at line 568 of file script_value.cpp.

void * Wintermute::ScValue::getMemBuffer (  ) 

Definition at line 623 of file script_value.cpp.

BaseScriptable * Wintermute::ScValue::getNative (  ) 

Definition at line 688 of file script_value.cpp.

ScValue * Wintermute::ScValue::getProp ( const char *  name  ) 

Definition at line 161 of file script_value.cpp.

const char * Wintermute::ScValue::getString (  ) 

Definition at line 637 of file script_value.cpp.

TValType Wintermute::ScValue::getType (  ) 

Definition at line 702 of file script_value.cpp.

TValType Wintermute::ScValue::getTypeTolerant (  ) 

Definition at line 366 of file script_value.cpp.

bool Wintermute::ScValue::isBool (  ) 

Definition at line 346 of file script_value.cpp.

bool Wintermute::ScValue::isFloat (  ) 

Definition at line 326 of file script_value.cpp.

bool Wintermute::ScValue::isInt (  ) 

Definition at line 336 of file script_value.cpp.

bool Wintermute::ScValue::isNative (  ) 

Definition at line 306 of file script_value.cpp.

bool Wintermute::ScValue::isNULL (  ) 

Definition at line 296 of file script_value.cpp.

bool Wintermute::ScValue::isObject (  ) 

Definition at line 356 of file script_value.cpp.

bool Wintermute::ScValue::isString (  ) 

Definition at line 316 of file script_value.cpp.

bool Wintermute::ScValue::propExists ( const char *  name  ) 

Definition at line 263 of file script_value.cpp.

bool Wintermute::ScValue::saveAsText ( BaseDynamicBuffer buffer,
int  indent 
) [override, virtual]

Reimplemented from Wintermute::BaseClass.

Definition at line 886 of file script_value.cpp.

void Wintermute::ScValue::setBool ( bool  val  ) 

Definition at line 376 of file script_value.cpp.

void Wintermute::ScValue::setFloat ( double  val  ) 

Definition at line 410 of file script_value.cpp.

void Wintermute::ScValue::setInt ( int  val  ) 

Definition at line 393 of file script_value.cpp.

void Wintermute::ScValue::setNative ( BaseScriptable val,
bool  persistent = false 
)

Definition at line 490 of file script_value.cpp.

void Wintermute::ScValue::setNULL (  ) 

Definition at line 470 of file script_value.cpp.

void Wintermute::ScValue::setObject (  ) 

Definition at line 521 of file script_value.cpp.

bool Wintermute::ScValue::setProp ( const char *  name,
ScValue val,
bool  copyWhole = false,
bool  setAsConst = false 
)

Definition at line 212 of file script_value.cpp.

bool Wintermute::ScValue::setProperty ( const char *  propName  ) 

Definition at line 999 of file script_value.cpp.

bool Wintermute::ScValue::setProperty ( const char *  propName,
double  value 
)

Definition at line 981 of file script_value.cpp.

bool Wintermute::ScValue::setProperty ( const char *  propName,
bool  value 
)

Definition at line 990 of file script_value.cpp.

bool Wintermute::ScValue::setProperty ( const char *  propName,
int32  value 
)

Definition at line 965 of file script_value.cpp.

bool Wintermute::ScValue::setProperty ( const char *  propName,
const char *  value 
)

Definition at line 973 of file script_value.cpp.

void Wintermute::ScValue::setReference ( ScValue val  ) 

Definition at line 533 of file script_value.cpp.

void Wintermute::ScValue::setString ( const char *  val  ) 

Definition at line 427 of file script_value.cpp.

void Wintermute::ScValue::setString ( const Common::String val  ) 

Definition at line 446 of file script_value.cpp.

void Wintermute::ScValue::setStringVal ( const char *  val  ) 

Definition at line 451 of file script_value.cpp.

void Wintermute::ScValue::setValue ( ScValue val  ) 

Definition at line 757 of file script_value.cpp.


Member Data Documentation

Definition at line 51 of file script_value.h.

Definition at line 54 of file script_value.h.

Definition at line 89 of file script_value.h.

Definition at line 91 of file script_value.h.

Definition at line 90 of file script_value.h.

Definition at line 87 of file script_value.h.

Definition at line 92 of file script_value.h.


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


Generated on Sat Sep 26 2020 05:04:15 for ResidualVM by doxygen 1.7.1
curved edge   curved edge