108 Event e(event, triggerer, owner);
134 Event e(event, triggerer, owner);
156 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.
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.
void enableEvent(EventType event, bool enabled)
Enable/Disable the handling of a specific event.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
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...
const Aurora::NWScript::ObjectReference & getTarget() const
std::map< EventType, bool > _eventEnabled
Handling version V4.0/V4.1 of BioWare's GFFs (generic file format).
Basic exceptions to throw.
static const char *const kScriptNames[]
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?
EventType getType() const
static ScriptState getEmptyState()
Handling BioWare's NWN Compiled Scripts.
Reference to an NWScript object.
An object containing scripts.
static const GFF4FieldNames kScriptFields[]
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
void readScript(const Aurora::GFF3Struct &gff)
void setVariable(const Common::UString &var, const Variable &value)
const Common::UString & getScript() const
void clear()
Clear the string's contents.
bool runScript(EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
void enableEvents(bool enabled)
Enable/Disable the handling of all events.
EventType
Types for script events.