129 if (!
object || !moveTo)
135 jumpTo(
object, moveTo->getArea(), x, y, z);
142 if (!
object || !moveTo)
148 jumpTo(
object, moveTo->getArea(), x, y, z);
160 if (!
object || !moveTo)
164 moveTo->getPosition(x, y, z);
166 jumpTo(
object, moveTo->getArea(), x, y, z);
173 if (!
object || !moveTo)
177 moveTo->getPosition(x, y, z);
179 jumpTo(
object, moveTo->getArea(), x, y, z);
void actionMoveToObject(Aurora::NWScript::FunctionContext &ctx)
#define ResMan
Shortcut for accessing the sound manager.
void actionDoCommand(Aurora::NWScript::FunctionContext &ctx)
void unimplementedFunction(Aurora::NWScript::FunctionContext &ctx)
The context handling the gameplay in Neverwinter Nights 2.
Object * getTriggerer() const
static NWN2::Object * toObject(::Aurora::NWScript::Object *object)
Common::UString formatTag(const Object *object)
Construct a string with the tag of this object.
A class holding an UTF-8 string.
void actionOpenDoor(Aurora::NWScript::FunctionContext &ctx)
Context of an NWScript function.
void delayScript(const Common::UString &script, const Aurora::NWScript::ScriptState &state, Aurora::NWScript::Object *owner, Aurora::NWScript::Object *triggerer, uint32 delay)
void truncate(const iterator &it)
Object * getCaller() const
An object within a NWN2 area.
void jumpTo(NWN2::Object *object, Area *area, float x, float y, float z)
An NCS, BioWare's NWN Compile Script.
void actionJumpToObject(Aurora::NWScript::FunctionContext &ctx)
Exception that provides a stack of explanations.
void actionMoveToLocation(Aurora::NWScript::FunctionContext &ctx)
void getPosition(float &x, float &y, float &z) const
Return the location's position.
void exceptionDispatcherWarning(const char *s,...)
Exception dispatcher that prints the exception as a warning, and adds another reason on top...
bool open(Object *opener)
The opener object opens this door.
The context needed to run a Neverwinter Nights 2 module.
void executeScript(Aurora::NWScript::FunctionContext &ctx)
Basic exceptions to throw.
Neverwinter Nights 2 engine functions.
A creature in a Neverwinter Nights 2 area.
const char * c_str() const
Return the (utf8 encoded) string data.
A container of Neverwinter Nights 2 objects.
void actionSpeakString(Aurora::NWScript::FunctionContext &ctx)
const Variable & run(Object *owner=0, Object *triggerer=0)
Run the current script, from start to finish.
Basic Neverwinter Nights 2 type definitions.
void speakString(const Common::UString &string, uint32 volume)
Speak the specified string.
static Location * toLocation(Aurora::NWScript::EngineType *engineType)
void actionCloseDoor(Aurora::NWScript::FunctionContext &ctx)
const Common::UString & getScriptName() const
bool empty() const
Is the string empty?
VariableContainer * getCurrentEnvironment() const
void actionJumpToLocation(Aurora::NWScript::FunctionContext &ctx)
Handling BioWare's NWN Compiled Scripts.
Basic type definitions to handle files used in BioWare's Aurora engine.
Script, NWScript bytecode.
A door in a Neverwinter Nights 2 area.
static Door * toDoor(Aurora::NWScript::Object *object)
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
bool close(Object *closer)
The closer object closes this door.
Module & getModule()
Return the module context.
void delayCommand(Aurora::NWScript::FunctionContext &ctx)
NWScript utility functions.
The global resource manager for Aurora resources.
void setEnvironment(const VariableContainer &env)
Overwrite the environment.
void assignCommand(Aurora::NWScript::FunctionContext &ctx)