28 #ifndef WINTERMUTE_SCVALUE_H 29 #define WINTERMUTE_SCVALUE_H 32 #include "engines/wintermute/base/base.h" 33 #include "engines/wintermute/persistent.h" 34 #include "engines/wintermute/base/scriptables/dcscript.h" 35 #include "common/str.h" 46 TValType getTypeTolerant();
47 void cleanup(
bool ignoreNatives =
false);
54 bool propExists(
const char *name);
55 void copy(
ScValue *orig,
bool copyWhole =
false);
56 void setStringVal(
const char *val);
58 bool getBool(
bool defaultVal =
false);
59 int getInt(
int defaultVal = 0);
60 double getFloat(
double defaultVal = 0.0f);
61 const char *getString();
64 bool deleteProp(
const char *name);
66 void CleanProps(
bool includingNatives);
67 void setBool(
bool val);
69 void setFloat(
double val);
70 void setString(
const char *val);
75 void setReference(
ScValue *val);
83 bool setProp(
const char *name,
ScValue *val,
bool copyWhole =
false,
bool setAsConst =
false);
84 ScValue *getProp(
const char *name);
101 Common::HashMap<Common::String, ScValue *>::iterator _valIter;
103 bool setProperty(
const char *propName, int32 value);
104 bool setProperty(
const char *propName,
const char *value);
105 bool setProperty(
const char *propName,
double value);
106 bool setProperty(
const char *propName,
bool value);
107 bool setProperty(
const char *propName);
Definition: base_game.h:76
Definition: script_value.h:42
Definition: base_dynamic_buffer.h:35
Definition: base_scriptable.h:41
Definition: achievements_tables.h:27