xoreos
0.0.5
|
#include <variablecontainer.h>
Public Member Functions | |
VariableContainer () | |
virtual | ~VariableContainer () |
bool | hasVariable (const Common::UString &var) const |
Variable & | getVariable (const Common::UString &var, Type type=kTypeVoid) |
const Variable & | getVariable (const Common::UString &var) const |
void | setVariable (const Common::UString &var, const Variable &value) |
void | removeVariable (const Common::UString &var) |
void | clearVariables () |
Private Types | |
typedef std::map< Common::UString, Variable > | VariableMap |
Private Attributes | |
VariableMap | _variables |
Definition at line 38 of file variablecontainer.h.
|
private |
Definition at line 54 of file variablecontainer.h.
Aurora::NWScript::VariableContainer::VariableContainer | ( | ) |
Definition at line 33 of file variablecontainer.cpp.
|
virtual |
Definition at line 36 of file variablecontainer.cpp.
void Aurora::NWScript::VariableContainer::clearVariables | ( | ) |
Definition at line 74 of file variablecontainer.cpp.
References _variables.
Referenced by Engines::NWN2::Campaign::unload(), and Engines::NWN::Module::unloadModule().
Variable & Aurora::NWScript::VariableContainer::getVariable | ( | const Common::UString & | var, |
Type | type = kTypeVoid |
||
) |
Definition at line 43 of file variablecontainer.cpp.
References _variables.
Referenced by Engines::DragonAge::Functions::getCurrentEvent(), Engines::DragonAge2::Functions::getCurrentEvent(), Engines::DragonAge2::Functions::getCurrentEventType(), Engines::NWN2::Functions::getGlobalBool(), Engines::Jade::Functions::getGlobalBool(), Engines::NWN2::Functions::getGlobalFloat(), Engines::Jade::Functions::getGlobalFloat(), Engines::Jade::Functions::getGlobalInt(), Engines::NWN2::Functions::getGlobalInt(), Engines::Jade::Functions::getGlobalString(), and Engines::NWN2::Functions::getGlobalString().
const Variable & Aurora::NWScript::VariableContainer::getVariable | ( | const Common::UString & | var | ) | const |
Definition at line 56 of file variablecontainer.cpp.
References _variables, and Common::UString::c_str().
bool Aurora::NWScript::VariableContainer::hasVariable | ( | const Common::UString & | var | ) | const |
Definition at line 39 of file variablecontainer.cpp.
References _variables.
Referenced by Engines::DragonAge::Functions::getCurrentEvent(), Engines::DragonAge2::Functions::getCurrentEvent(), and Engines::DragonAge2::Functions::getCurrentEventType().
void Aurora::NWScript::VariableContainer::removeVariable | ( | const Common::UString & | var | ) |
Definition at line 68 of file variablecontainer.cpp.
References _variables.
void Aurora::NWScript::VariableContainer::setVariable | ( | const Common::UString & | var, |
const Variable & | value | ||
) |
Definition at line 64 of file variablecontainer.cpp.
References _variables.
Referenced by Engines::NWN2::Object::readVarTable(), Engines::DragonAge::ScriptContainer::runScript(), Engines::DragonAge2::ScriptContainer::runScript(), Engines::NWN2::Functions::setGlobalBool(), Engines::Jade::Functions::setGlobalBool(), Engines::Jade::Functions::setGlobalFloat(), Engines::NWN2::Functions::setGlobalFloat(), Engines::NWN2::Functions::setGlobalInt(), Engines::Jade::Functions::setGlobalInt(), Engines::Jade::Functions::setGlobalString(), Engines::NWN2::Functions::setGlobalString(), Engines::Jade::Functions::setUserDefinedEventNumber(), and Engines::Jade::Functions::signalEvent().
|
private |
Definition at line 56 of file variablecontainer.h.
Referenced by clearVariables(), getVariable(), hasVariable(), removeVariable(), and setVariable().