77 assert((script >= 0) && (script <
kScriptMAX));
135 return retVal.
getInt() != 0;
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
An object containing scripts.
A class holding an UTF-8 string.
static const ScriptName kScriptNames[]
bool hasField(const Common::UString &field) const
Does this specific field exist?
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
void readScripts(const Aurora::GFF3Struct &gff)
bool hasScript(Script script) const
An NCS, BioWare's NWN Compile Script.
const Common::UString & getScript(Script script) const
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
bool runScript(Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
const Variable & run(Object *owner=0, Object *triggerer=0)
Run the current script, from start to finish.
Utility templates and functions.
bool empty() const
Is the string empty?
static ScriptState getEmptyState()
Handling BioWare's NWN Compiled Scripts.
const GFF3Struct & getStruct(const Common::UString &field) const
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Common::UString _scripts[kScriptMAX]