28 #include <boost/bind.hpp> 67 assert((fSig.
id ==
id) && (fDef.
id ==
id));
88 FunctionMan.registerFunction(fPtr.
name,
id, boost::bind(f,
this, _1), signature, defaults);
113 object->setPosition(x, y, z);
std::vector< class Variable > Parameters
A class holding an UTF-8 string.
Common::UString formatType(Type type)
Construct a string describing this variable type.
Aurora::NWScript::Type returnType
void unimplementedFunction(Aurora::NWScript::FunctionContext &ctx)
A container of Dragon Age: Origins objects.
Object * getCaller() const
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
Aurora::NWScript::Type parameters[8]
The NWScript function manager.
static const FunctionPointer kFunctionPointers[]
The table defining the name and function pointer of each engine function.
const Aurora::NWScript::Variable * defaults[7]
ObjectType getType() const
Return the exact type of the object.
const char * c_str() const
Return the (utf8 encoded) string data.
The context handling the gameplay in Dragon Age: Origins.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
Tables defining the engine functions in Dragon Age: Origins.
static DragonAge::Object * toObject(::Aurora::NWScript::Object *object)
static Common::UString formatFloat(float f, int width=18, int decimals=9)
std::vector< Type > Signature
const Common::UString & getName() const
void(Functions::* funcPtr)(Aurora::NWScript::FunctionContext &ctx)
void warning(const char *s,...)
An object in a Dragon Age: Origins area.
Basic Dragon Age: Origins type definitions.
Dragon Age: Origins engine functions.
Common::UString formatParams(const FunctionContext &ctx)
Construct a string describing parameters of this function.
static const FunctionSignature kFunctionSignatures[]
The table defining the signature (return type and type of parameters) of each engine function...
void jumpTo(DragonAge::Object *object, float x, float y, float z)
NWScript utility functions.
Fake value to describe the calling object in a script.
static const FunctionDefaults kFunctionDefaults[]
The table defining the default values for the parameters of each engine function. ...