xoreos  0.0.5
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Engines::DragonAge::Functions Class Reference

#include <functions.h>

Collaboration diagram for Engines::DragonAge::Functions:
Collaboration graph
[legend]

Classes

struct  FunctionDefaults
 
struct  FunctionPointer
 
struct  FunctionSignature
 

Public Member Functions

 Functions (Game &game)
 
 ~Functions ()
 

Private Types

typedef void(Functions::* funcPtr) (Aurora::NWScript::FunctionContext &ctx)
 

Private Member Functions

void registerFunctions ()
 
void jumpTo (DragonAge::Object *object, float x, float y, float z)
 
void unimplementedFunction (Aurora::NWScript::FunctionContext &ctx)
 
void abs (Aurora::NWScript::FunctionContext &ctx)
 
void fabs (Aurora::NWScript::FunctionContext &ctx)
 
void cos (Aurora::NWScript::FunctionContext &ctx)
 
void sin (Aurora::NWScript::FunctionContext &ctx)
 
void tan (Aurora::NWScript::FunctionContext &ctx)
 
void acos (Aurora::NWScript::FunctionContext &ctx)
 
void asin (Aurora::NWScript::FunctionContext &ctx)
 
void atan (Aurora::NWScript::FunctionContext &ctx)
 
void log (Aurora::NWScript::FunctionContext &ctx)
 
void pow (Aurora::NWScript::FunctionContext &ctx)
 
void sqrt (Aurora::NWScript::FunctionContext &ctx)
 
void random (Aurora::NWScript::FunctionContext &ctx)
 
void randomFloat (Aurora::NWScript::FunctionContext &ctx)
 
void intToFloat (Aurora::NWScript::FunctionContext &ctx)
 
void floatToInt (Aurora::NWScript::FunctionContext &ctx)
 
void vector (Aurora::NWScript::FunctionContext &ctx)
 
void isVectorEmpty (Aurora::NWScript::FunctionContext &ctx)
 
void getVectorMagnitude (Aurora::NWScript::FunctionContext &ctx)
 
void getVectorNormalize (Aurora::NWScript::FunctionContext &ctx)
 
void getArraySize (Aurora::NWScript::FunctionContext &ctx)
 
void printToLog (Aurora::NWScript::FunctionContext &ctx)
 
void printToLogAndFlush (Aurora::NWScript::FunctionContext &ctx)
 
void logTrace (Aurora::NWScript::FunctionContext &ctx)
 
void printWarning (Aurora::NWScript::FunctionContext &ctx)
 
void DEBUG_printToScreen (Aurora::NWScript::FunctionContext &ctx)
 
void printToLogWindow (Aurora::NWScript::FunctionContext &ctx)
 
void printInteger (Aurora::NWScript::FunctionContext &ctx)
 
void printFloat (Aurora::NWScript::FunctionContext &ctx)
 
void printString (Aurora::NWScript::FunctionContext &ctx)
 
void printObject (Aurora::NWScript::FunctionContext &ctx)
 
void printVector (Aurora::NWScript::FunctionContext &ctx)
 
void printResource (Aurora::NWScript::FunctionContext &ctx)
 
void intToString (Aurora::NWScript::FunctionContext &ctx)
 
void floatToString (Aurora::NWScript::FunctionContext &ctx)
 
void objectToString (Aurora::NWScript::FunctionContext &ctx)
 
void vectorToString (Aurora::NWScript::FunctionContext &ctx)
 
void resourceToString (Aurora::NWScript::FunctionContext &ctx)
 
void toString (Aurora::NWScript::FunctionContext &ctx)
 
void intToHexString (Aurora::NWScript::FunctionContext &ctx)
 
void stringToInt (Aurora::NWScript::FunctionContext &ctx)
 
void stringToFloat (Aurora::NWScript::FunctionContext &ctx)
 
void stringToVector (Aurora::NWScript::FunctionContext &ctx)
 
void charToInt (Aurora::NWScript::FunctionContext &ctx)
 
void intToChar (Aurora::NWScript::FunctionContext &ctx)
 
void isStringEmpty (Aurora::NWScript::FunctionContext &ctx)
 
void getStringLength (Aurora::NWScript::FunctionContext &ctx)
 
void stringUpperCase (Aurora::NWScript::FunctionContext &ctx)
 
void stringLowerCase (Aurora::NWScript::FunctionContext &ctx)
 
void stringRight (Aurora::NWScript::FunctionContext &ctx)
 
void stringLeft (Aurora::NWScript::FunctionContext &ctx)
 
void insertString (Aurora::NWScript::FunctionContext &ctx)
 
void subString (Aurora::NWScript::FunctionContext &ctx)
 
void findSubString (Aurora::NWScript::FunctionContext &ctx)
 
void getStringByStringId (Aurora::NWScript::FunctionContext &ctx)
 
void getTlkTableString (Aurora::NWScript::FunctionContext &ctx)
 
void getCurrentScriptName (Aurora::NWScript::FunctionContext &ctx)
 
void getCurrentScriptResource (Aurora::NWScript::FunctionContext &ctx)
 
void getModule (Aurora::NWScript::FunctionContext &ctx)
 
void getHero (Aurora::NWScript::FunctionContext &ctx)
 
void isObjectValid (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalInt (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalString (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalObject (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalResource (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalLocation (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalPlayer (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalEvent (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalCommand (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalEffect (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalItemProperty (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalInt (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalString (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalObject (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalResource (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalLocation (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalPlayer (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalEvent (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalCommand (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalEffect (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalItemProperty (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectType (Aurora::NWScript::FunctionContext &ctx)
 
void getTag (Aurora::NWScript::FunctionContext &ctx)
 
void getResRef (Aurora::NWScript::FunctionContext &ctx)
 
void getName (Aurora::NWScript::FunctionContext &ctx)
 
void setName (Aurora::NWScript::FunctionContext &ctx)
 
void getArea (Aurora::NWScript::FunctionContext &ctx)
 
void getPosition (Aurora::NWScript::FunctionContext &ctx)
 
void getDistanceBetween (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectByTag (Aurora::NWScript::FunctionContext &ctx)
 
void getNearestObject (Aurora::NWScript::FunctionContext &ctx)
 
void getNearestObjectByTag (Aurora::NWScript::FunctionContext &ctx)
 
void UT_getNearestObjectByTag (Aurora::NWScript::FunctionContext &ctx)
 
void isHero (Aurora::NWScript::FunctionContext &ctx)
 
void getCurrentEvent (Aurora::NWScript::FunctionContext &ctx)
 
void isEventValid (Aurora::NWScript::FunctionContext &ctx)
 
void getEventType (Aurora::NWScript::FunctionContext &ctx)
 
void getEventCreator (Aurora::NWScript::FunctionContext &ctx)
 
void getEventTarget (Aurora::NWScript::FunctionContext &ctx)
 
void setEventType (Aurora::NWScript::FunctionContext &ctx)
 
void setEventCreator (Aurora::NWScript::FunctionContext &ctx)
 
void handleEvent (Aurora::NWScript::FunctionContext &ctx)
 

Static Private Member Functions

static Common::UString formatFloat (float f, int width=18, int decimals=9)
 
static Aurora::NWScript::ObjectgetParamObject (const Aurora::NWScript::FunctionContext &ctx, size_t n)
 

Private Attributes

Game_game
 

Static Private Attributes

static const FunctionPointer kFunctionPointers []
 The table defining the name and function pointer of each engine function. More...
 
static const FunctionSignature kFunctionSignatures []
 The table defining the signature (return type and type of parameters) of each engine function. More...
 
static const FunctionDefaults kFunctionDefaults []
 The table defining the default values for the parameters of each engine function. More...
 

Detailed Description

Definition at line 44 of file functions.h.

Member Typedef Documentation

◆ funcPtr

typedef void(Functions::* Engines::DragonAge::Functions::funcPtr) (Aurora::NWScript::FunctionContext &ctx)
private

Definition at line 50 of file functions.h.

Constructor & Destructor Documentation

◆ Functions()

Engines::DragonAge::Functions::Functions ( Game game)

Definition at line 48 of file functions.cpp.

References registerFunctions().

Here is the call graph for this function:

◆ ~Functions()

Engines::DragonAge::Functions::~Functions ( )

Definition at line 52 of file functions.cpp.

References FunctionMan.

Member Function Documentation

◆ abs()

void Engines::DragonAge::Functions::abs ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 36 of file functions_math.cpp.

References ABS(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ acos()

void Engines::DragonAge::Functions::acos ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 56 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ asin()

void Engines::DragonAge::Functions::asin ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 60 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ atan()

void Engines::DragonAge::Functions::atan ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 64 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ charToInt()

void Engines::DragonAge::Functions::charToInt ( Aurora::NWScript::FunctionContext ctx)
private

◆ cos()

void Engines::DragonAge::Functions::cos ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 44 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ DEBUG_printToScreen()

void Engines::DragonAge::Functions::DEBUG_printToScreen ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 71 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ fabs()

void Engines::DragonAge::Functions::fabs ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 40 of file functions_math.cpp.

References ABS(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ findSubString()

void Engines::DragonAge::Functions::findSubString ( Aurora::NWScript::FunctionContext ctx)
private

◆ floatToInt()

void Engines::DragonAge::Functions::floatToInt ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 92 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ floatToString()

void Engines::DragonAge::Functions::floatToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 122 of file functions_string.cpp.

References formatFloat(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Referenced by toString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ formatFloat()

Common::UString Engines::DragonAge::Functions::formatFloat ( float  f,
int  width = 18,
int  decimals = 9 
)
staticprivate

Definition at line 97 of file functions.cpp.

References Common::UString::format().

Referenced by floatToString(), and printFloat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getArea()

void Engines::DragonAge::Functions::getArea ( Aurora::NWScript::FunctionContext ctx)
private

◆ getArraySize()

void Engines::DragonAge::Functions::getArraySize ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 127 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ getCurrentEvent()

void Engines::DragonAge::Functions::getCurrentEvent ( Aurora::NWScript::FunctionContext ctx)
private

◆ getCurrentScriptName()

void Engines::DragonAge::Functions::getCurrentScriptName ( Aurora::NWScript::FunctionContext ctx)
private

◆ getCurrentScriptResource()

void Engines::DragonAge::Functions::getCurrentScriptResource ( Aurora::NWScript::FunctionContext ctx)
private

◆ getDistanceBetween()

void Engines::DragonAge::Functions::getDistanceBetween ( Aurora::NWScript::FunctionContext ctx)
private

◆ getEventCreator()

void Engines::DragonAge::Functions::getEventCreator ( Aurora::NWScript::FunctionContext ctx)
private

◆ getEventTarget()

void Engines::DragonAge::Functions::getEventTarget ( Aurora::NWScript::FunctionContext ctx)
private

◆ getEventType()

void Engines::DragonAge::Functions::getEventType ( Aurora::NWScript::FunctionContext ctx)
private

◆ getHero()

void Engines::DragonAge::Functions::getHero ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalCommand()

void Engines::DragonAge::Functions::getLocalCommand ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalEffect()

void Engines::DragonAge::Functions::getLocalEffect ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalEvent()

void Engines::DragonAge::Functions::getLocalEvent ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalFloat()

void Engines::DragonAge::Functions::getLocalFloat ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalInt()

void Engines::DragonAge::Functions::getLocalInt ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalItemProperty()

void Engines::DragonAge::Functions::getLocalItemProperty ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalLocation()

void Engines::DragonAge::Functions::getLocalLocation ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalObject()

void Engines::DragonAge::Functions::getLocalObject ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalPlayer()

void Engines::DragonAge::Functions::getLocalPlayer ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalResource()

void Engines::DragonAge::Functions::getLocalResource ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalString()

void Engines::DragonAge::Functions::getLocalString ( Aurora::NWScript::FunctionContext ctx)
private

◆ getModule()

void Engines::DragonAge::Functions::getModule ( Aurora::NWScript::FunctionContext ctx)
private

◆ getName()

void Engines::DragonAge::Functions::getName ( Aurora::NWScript::FunctionContext ctx)
private

◆ getNearestObject()

void Engines::DragonAge::Functions::getNearestObject ( Aurora::NWScript::FunctionContext ctx)
private

◆ getNearestObjectByTag()

void Engines::DragonAge::Functions::getNearestObjectByTag ( Aurora::NWScript::FunctionContext ctx)
private

◆ getObjectByTag()

void Engines::DragonAge::Functions::getObjectByTag ( Aurora::NWScript::FunctionContext ctx)
private

◆ getObjectType()

void Engines::DragonAge::Functions::getObjectType ( Aurora::NWScript::FunctionContext ctx)
private

◆ getParamObject()

Aurora::NWScript::Object * Engines::DragonAge::Functions::getParamObject ( const Aurora::NWScript::FunctionContext ctx,
size_t  n 
)
staticprivate

◆ getPosition()

void Engines::DragonAge::Functions::getPosition ( Aurora::NWScript::FunctionContext ctx)
private

◆ getResRef()

void Engines::DragonAge::Functions::getResRef ( Aurora::NWScript::FunctionContext ctx)
private

◆ getStringByStringId()

void Engines::DragonAge::Functions::getStringByStringId ( Aurora::NWScript::FunctionContext ctx)
private

◆ getStringLength()

void Engines::DragonAge::Functions::getStringLength ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 252 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ getTag()

void Engines::DragonAge::Functions::getTag ( Aurora::NWScript::FunctionContext ctx)
private

◆ getTlkTableString()

void Engines::DragonAge::Functions::getTlkTableString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 357 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and TalkMan.

Here is the call graph for this function:

◆ getVectorMagnitude()

void Engines::DragonAge::Functions::getVectorMagnitude ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 111 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ getVectorNormalize()

void Engines::DragonAge::Functions::getVectorNormalize ( Aurora::NWScript::FunctionContext ctx)
private

◆ handleEvent()

void Engines::DragonAge::Functions::handleEvent ( Aurora::NWScript::FunctionContext ctx)
private

◆ insertString()

void Engines::DragonAge::Functions::insertString ( Aurora::NWScript::FunctionContext ctx)
private

◆ intToChar()

void Engines::DragonAge::Functions::intToChar ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 244 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ intToFloat()

void Engines::DragonAge::Functions::intToFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 88 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ intToHexString()

void Engines::DragonAge::Functions::intToHexString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 177 of file functions_string.cpp.

References Common::UString::format(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ intToString()

void Engines::DragonAge::Functions::intToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 118 of file functions_string.cpp.

References Common::composeString(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Referenced by toString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEventValid()

void Engines::DragonAge::Functions::isEventValid ( Aurora::NWScript::FunctionContext ctx)
private

◆ isHero()

void Engines::DragonAge::Functions::isHero ( Aurora::NWScript::FunctionContext ctx)
private

◆ isObjectValid()

void Engines::DragonAge::Functions::isObjectValid ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 51 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ isStringEmpty()

void Engines::DragonAge::Functions::isStringEmpty ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 248 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ isVectorEmpty()

void Engines::DragonAge::Functions::isVectorEmpty ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 102 of file functions_math.cpp.

References ABS(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and kEpsilon.

Here is the call graph for this function:

◆ jumpTo()

void Engines::DragonAge::Functions::jumpTo ( DragonAge::Object object,
float  x,
float  y,
float  z 
)
private

Definition at line 112 of file functions.cpp.

◆ log()

void Engines::DragonAge::Functions::log ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 68 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ logTrace()

void Engines::DragonAge::Functions::logTrace ( Aurora::NWScript::FunctionContext ctx)
private

◆ objectToString()

void Engines::DragonAge::Functions::objectToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 130 of file functions_string.cpp.

References Common::UString::format(), Aurora::NWScript::formatTag(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Referenced by toString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pow()

void Engines::DragonAge::Functions::pow ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 72 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ printFloat()

void Engines::DragonAge::Functions::printFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 84 of file functions_string.cpp.

References formatFloat(), Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printInteger()

void Engines::DragonAge::Functions::printInteger ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 80 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printObject()

void Engines::DragonAge::Functions::printObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 96 of file functions_string.cpp.

References Aurora::NWScript::formatTag(), Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printResource()

void Engines::DragonAge::Functions::printResource ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 112 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printString()

void Engines::DragonAge::Functions::printString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 92 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printToLog()

void Engines::DragonAge::Functions::printToLog ( Aurora::NWScript::FunctionContext ctx)
private

◆ printToLogAndFlush()

void Engines::DragonAge::Functions::printToLogAndFlush ( Aurora::NWScript::FunctionContext ctx)
private

◆ printToLogWindow()

void Engines::DragonAge::Functions::printToLogWindow ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 75 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printVector()

void Engines::DragonAge::Functions::printVector ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 103 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ printWarning()

void Engines::DragonAge::Functions::printWarning ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 67 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and status().

Here is the call graph for this function:

◆ random()

void Engines::DragonAge::Functions::random ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 80 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ randomFloat()

void Engines::DragonAge::Functions::randomFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 84 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ registerFunctions()

void Engines::DragonAge::Functions::registerFunctions ( )
private

◆ resourceToString()

void Engines::DragonAge::Functions::resourceToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 144 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ setEventCreator()

void Engines::DragonAge::Functions::setEventCreator ( Aurora::NWScript::FunctionContext ctx)
private

◆ setEventType()

void Engines::DragonAge::Functions::setEventType ( Aurora::NWScript::FunctionContext ctx)
private

◆ setLocalCommand()

void Engines::DragonAge::Functions::setLocalCommand ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 169 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalEffect()

void Engines::DragonAge::Functions::setLocalEffect ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 175 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalEvent()

void Engines::DragonAge::Functions::setLocalEvent ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 163 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalFloat()

void Engines::DragonAge::Functions::setLocalFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 127 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalInt()

void Engines::DragonAge::Functions::setLocalInt ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 121 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalItemProperty()

void Engines::DragonAge::Functions::setLocalItemProperty ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 181 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalLocation()

void Engines::DragonAge::Functions::setLocalLocation ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 151 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalObject()

void Engines::DragonAge::Functions::setLocalObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 139 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalPlayer()

void Engines::DragonAge::Functions::setLocalPlayer ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 157 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalResource()

void Engines::DragonAge::Functions::setLocalResource ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 145 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setLocalString()

void Engines::DragonAge::Functions::setLocalString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 133 of file functions_object.cpp.

References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().

Here is the call graph for this function:

◆ setName()

void Engines::DragonAge::Functions::setName ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 222 of file functions_object.cpp.

References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), and Engines::DragonAge::ObjectContainer::toObject().

Here is the call graph for this function:

◆ sin()

void Engines::DragonAge::Functions::sin ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 48 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ sqrt()

void Engines::DragonAge::Functions::sqrt ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 76 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ stringLeft()

void Engines::DragonAge::Functions::stringLeft ( Aurora::NWScript::FunctionContext ctx)
private

◆ stringLowerCase()

void Engines::DragonAge::Functions::stringLowerCase ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 260 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ stringRight()

void Engines::DragonAge::Functions::stringRight ( Aurora::NWScript::FunctionContext ctx)
private

◆ stringToFloat()

void Engines::DragonAge::Functions::stringToFloat ( Aurora::NWScript::FunctionContext ctx)
private

◆ stringToInt()

void Engines::DragonAge::Functions::stringToInt ( Aurora::NWScript::FunctionContext ctx)
private

◆ stringToVector()

void Engines::DragonAge::Functions::stringToVector ( Aurora::NWScript::FunctionContext ctx)
private

◆ stringUpperCase()

void Engines::DragonAge::Functions::stringUpperCase ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 256 of file functions_string.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ subString()

void Engines::DragonAge::Functions::subString ( Aurora::NWScript::FunctionContext ctx)
private

◆ tan()

void Engines::DragonAge::Functions::tan ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 52 of file functions_math.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ toString()

void Engines::DragonAge::Functions::toString ( Aurora::NWScript::FunctionContext ctx)
private

◆ unimplementedFunction()

void Engines::DragonAge::Functions::unimplementedFunction ( Aurora::NWScript::FunctionContext ctx)
private

◆ UT_getNearestObjectByTag()

void Engines::DragonAge::Functions::UT_getNearestObjectByTag ( Aurora::NWScript::FunctionContext ctx)
private

◆ vector()

void Engines::DragonAge::Functions::vector ( Aurora::NWScript::FunctionContext ctx)
private

◆ vectorToString()

void Engines::DragonAge::Functions::vectorToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 137 of file functions_string.cpp.

References Common::UString::format(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().

Referenced by toString().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _game

Game* Engines::DragonAge::Functions::_game
private

◆ kFunctionDefaults

const Functions::FunctionDefaults Engines::DragonAge::Functions::kFunctionDefaults
staticprivate

The table defining the default values for the parameters of each engine function.

Definition at line 71 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionPointers

const Functions::FunctionPointer Engines::DragonAge::Functions::kFunctionPointers
staticprivate

The table defining the name and function pointer of each engine function.

Definition at line 69 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionSignatures

const Functions::FunctionSignature Engines::DragonAge::Functions::kFunctionSignatures
staticprivate

The table defining the signature (return type and type of parameters) of each engine function.

Definition at line 70 of file functions.h.

Referenced by registerFunctions().


The documentation for this class was generated from the following files: