xoreos
0.0.5
|
#include <container.h>
Public Member Functions | |
ScriptContainer () | |
~ScriptContainer () | |
const Common::UString & | getScript (Script script) const |
bool | hasScript (Script script) const |
bool | runScript (Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
Static Public Member Functions | |
static bool | runScript (const Common::UString &script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
static bool | runScript (const Common::UString &script, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
Protected Member Functions | |
void | clearScripts () |
void | readScripts (const Aurora::GFF3Struct &gff) |
void | readScripts (const ScriptContainer &container) |
Private Attributes | |
Common::UString | _scripts [kScriptMAX] |
Definition at line 47 of file container.h.
Engines::Jade::ScriptContainer::ScriptContainer | ( | ) |
Definition at line 70 of file container.cpp.
Engines::Jade::ScriptContainer::~ScriptContainer | ( | ) |
Definition at line 73 of file container.cpp.
|
protected |
Definition at line 86 of file container.cpp.
References _scripts, and Engines::Jade::kScriptMAX.
Referenced by readScripts().
const Common::UString & Engines::Jade::ScriptContainer::getScript | ( | Script | script | ) | const |
Definition at line 76 of file container.cpp.
References _scripts, and Engines::Jade::kScriptMAX.
Referenced by hasScript(), and runScript().
bool Engines::Jade::ScriptContainer::hasScript | ( | Script | script | ) | const |
Definition at line 82 of file container.cpp.
References Common::UString::empty(), and getScript().
Referenced by Engines::Jade::Object::click().
|
protected |
Definition at line 91 of file container.cpp.
References _scripts, ARRAYSIZE, clearScripts(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Aurora::GFF3Struct::hasField(), Engines::Jade::kScriptNames, Engines::Jade::ScriptName::name, and Engines::Jade::ScriptName::script.
Referenced by Engines::Jade::Area::loadARE(), Engines::Jade::Placeable::loadBlueprint(), Engines::Jade::Trigger::loadBlueprint(), and Engines::Jade::Creature::loadBlueprint().
|
protected |
Definition at line 105 of file container.cpp.
References _scripts, and Engines::Jade::kScriptMAX.
bool Engines::Jade::ScriptContainer::runScript | ( | Script | script, |
const Aurora::NWScript::ObjectReference | owner = Aurora::NWScript::ObjectReference() , |
||
const Aurora::NWScript::ObjectReference | triggerer = Aurora::NWScript::ObjectReference() |
||
) |
Definition at line 110 of file container.cpp.
References getScript().
Referenced by Engines::Jade::Object::click(), Engines::Jade::Placeable::close(), Engines::Jade::Module::handleActions(), Engines::Jade::Placeable::open(), and runScript().
|
static |
Definition at line 116 of file container.cpp.
References Aurora::NWScript::NCSFile::getEmptyState(), and runScript().
|
static |
Definition at line 123 of file container.cpp.
References Common::UString::c_str(), Common::UString::empty(), Common::exceptionDispatcherWarning(), Aurora::NWScript::Variable::getFloat(), Aurora::NWScript::Variable::getInt(), Aurora::NWScript::Variable::getType(), Aurora::NWScript::kTypeFloat, Aurora::NWScript::kTypeInt, and Aurora::NWScript::NCSFile::run().
|
private |
Definition at line 75 of file container.h.
Referenced by clearScripts(), getScript(), and readScripts().