42 namespace DragonAge2 {
104 Event e(event, triggerer, owner);
130 Event e(event, triggerer, owner);
152 return retVal.
getInt() != 0;
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
VariableContainer & getEnvironment()
Return the script's environment variables.
const Common::UString & getScript() const
Common::UString getString(uint32 field, Common::Encoding encoding, const Common::UString &def="") const
Return a field string, read from the given encoding.
A class holding an UTF-8 string.
All currently known fields in V4.0/V4.1 GFFs.
An object containing scripts.
void enableEvents(bool enabled)
Enable/Disable the handling of all events.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
bool runScript(EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
An NCS, BioWare's NWN Compile Script.
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
Handling version V4.0/V4.1 of BioWare's GFFs (generic file format).
static const GFF4FieldNames kScriptFields[]
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
void enableEvent(EventType event, bool enabled)
Enable/Disable the handling of a specific event.
const Variable & run(Object *owner=0, Object *triggerer=0)
Run the current script, from start to finish.
Utility templates and functions.
EventType getType() const
bool empty() const
Is the string empty?
std::map< EventType, bool > _eventEnabled
static ScriptState getEmptyState()
Handling BioWare's NWN Compiled Scripts.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
static const char *const kScriptNames[]
void setVariable(const Common::UString &var, const Variable &value)
void clear()
Clear the string's contents.
EventType
Types for script events.
const Aurora::NWScript::ObjectReference & getTarget() const
void readScript(const Aurora::GFF3Struct &gff)