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::Jade::Functions Class Reference

#include <functions.h>

Collaboration diagram for Engines::Jade::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 (Jade::Object *object, Area *area, float x, float y, float z)
 
const Aurora::TwoDAFilefindTable (int32 nr)
 
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 d2 (Aurora::NWScript::FunctionContext &ctx)
 
void d3 (Aurora::NWScript::FunctionContext &ctx)
 
void d4 (Aurora::NWScript::FunctionContext &ctx)
 
void d6 (Aurora::NWScript::FunctionContext &ctx)
 
void d8 (Aurora::NWScript::FunctionContext &ctx)
 
void d10 (Aurora::NWScript::FunctionContext &ctx)
 
void d12 (Aurora::NWScript::FunctionContext &ctx)
 
void d20 (Aurora::NWScript::FunctionContext &ctx)
 
void d100 (Aurora::NWScript::FunctionContext &ctx)
 
void intToFloat (Aurora::NWScript::FunctionContext &ctx)
 
void floatToInt (Aurora::NWScript::FunctionContext &ctx)
 
void vector (Aurora::NWScript::FunctionContext &ctx)
 
void vectorMagnitude (Aurora::NWScript::FunctionContext &ctx)
 
void vectorNormalize (Aurora::NWScript::FunctionContext &ctx)
 
void writeTimestampedLogEntry (Aurora::NWScript::FunctionContext &ctx)
 
void sendMessageToPC (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 intToString (Aurora::NWScript::FunctionContext &ctx)
 
void floatToString (Aurora::NWScript::FunctionContext &ctx)
 
void objectToString (Aurora::NWScript::FunctionContext &ctx)
 
void intToHexString (Aurora::NWScript::FunctionContext &ctx)
 
void stringToInt (Aurora::NWScript::FunctionContext &ctx)
 
void stringToFloat (Aurora::NWScript::FunctionContext &ctx)
 
void getStringLength (Aurora::NWScript::FunctionContext &ctx)
 
void getStringUpperCase (Aurora::NWScript::FunctionContext &ctx)
 
void getStringLowerCase (Aurora::NWScript::FunctionContext &ctx)
 
void getStringRight (Aurora::NWScript::FunctionContext &ctx)
 
void getStringLeft (Aurora::NWScript::FunctionContext &ctx)
 
void insertString (Aurora::NWScript::FunctionContext &ctx)
 
void getSubString (Aurora::NWScript::FunctionContext &ctx)
 
void findSubString (Aurora::NWScript::FunctionContext &ctx)
 
void getStringByStrRef (Aurora::NWScript::FunctionContext &ctx)
 
void setCustomToken (Aurora::NWScript::FunctionContext &ctx)
 
void getGlobalInt (Aurora::NWScript::FunctionContext &ctx)
 
void getGlobalBool (Aurora::NWScript::FunctionContext &ctx)
 
void getGlobalString (Aurora::NWScript::FunctionContext &ctx)
 
void getGlobalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void setGlobalInt (Aurora::NWScript::FunctionContext &ctx)
 
void setGlobalBool (Aurora::NWScript::FunctionContext &ctx)
 
void setGlobalString (Aurora::NWScript::FunctionContext &ctx)
 
void setGlobalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void location (Aurora::NWScript::FunctionContext &ctx)
 
void getPositionFromLocation (Aurora::NWScript::FunctionContext &ctx)
 
void getPlayer (Aurora::NWScript::FunctionContext &ctx)
 
void getNextPC (Aurora::NWScript::FunctionContext &ctx)
 
void getEnteringObject (Aurora::NWScript::FunctionContext &ctx)
 
void getExitingObject (Aurora::NWScript::FunctionContext &ctx)
 
void getIsObjectValid (Aurora::NWScript::FunctionContext &ctx)
 
void getIsPC (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalInt (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalBool (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalString (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalObject (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalInt (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalBool (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalFloat (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalString (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalObject (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectType (Aurora::NWScript::FunctionContext &ctx)
 
void getTag (Aurora::NWScript::FunctionContext &ctx)
 
void getArea (Aurora::NWScript::FunctionContext &ctx)
 
void getLocation (Aurora::NWScript::FunctionContext &ctx)
 
void getPosition (Aurora::NWScript::FunctionContext &ctx)
 
void getDistanceToObject (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectByTag (Aurora::NWScript::FunctionContext &ctx)
 
void getWaypointByTag (Aurora::NWScript::FunctionContext &ctx)
 
void getNearestObject (Aurora::NWScript::FunctionContext &ctx)
 
void playAnimation (Aurora::NWScript::FunctionContext &ctx)
 
void jumpToLocation (Aurora::NWScript::FunctionContext &ctx)
 
void jumpToObject (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectConversationResref (Aurora::NWScript::FunctionContext &ctx)
 
void getPriorActivation (Aurora::NWScript::FunctionContext &ctx)
 
void setObjectNoCollide (Aurora::NWScript::FunctionContext &ctx)
 
void getAutoBalance (Aurora::NWScript::FunctionContext &ctx)
 
void assignCommand (Aurora::NWScript::FunctionContext &ctx)
 
void delayCommand (Aurora::NWScript::FunctionContext &ctx)
 
void executeScript (Aurora::NWScript::FunctionContext &ctx)
 
void actionDoCommand (Aurora::NWScript::FunctionContext &ctx)
 
void actionOpenDoor (Aurora::NWScript::FunctionContext &ctx)
 
void actionCloseDoor (Aurora::NWScript::FunctionContext &ctx)
 
void actionSpeakStringByStrRef (Aurora::NWScript::FunctionContext &ctx)
 
void actionStartConversation (Aurora::NWScript::FunctionContext &ctx)
 
void actionPlayAnimation (Aurora::NWScript::FunctionContext &ctx)
 
void actionJumpToLocation (Aurora::NWScript::FunctionContext &ctx)
 
void actionMoveToLocation (Aurora::NWScript::FunctionContext &ctx)
 
void actionJumpToObject (Aurora::NWScript::FunctionContext &ctx)
 
void actionMoveToObject (Aurora::NWScript::FunctionContext &ctx)
 
void eventUserDefined (Aurora::NWScript::FunctionContext &ctx)
 
void signalEvent (Aurora::NWScript::FunctionContext &ctx)
 
void getUserDefinedEventNumber (Aurora::NWScript::FunctionContext &ctx)
 
void setUserDefinedEventNumber (Aurora::NWScript::FunctionContext &ctx)
 
void get2DANumRows (Aurora::NWScript::FunctionContext &ctx)
 
void get2DANumColumn (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryIntByString (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryFloatByString (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryStringByString (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryInt (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryFloat (Aurora::NWScript::FunctionContext &ctx)
 
void get2DAEntryString (Aurora::NWScript::FunctionContext &ctx)
 

Static Private Member Functions

static int32 getRandom (int min, int max, int32 n=1)
 
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 46 of file functions.h.

Member Typedef Documentation

◆ funcPtr

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

Definition at line 52 of file functions.h.

Constructor & Destructor Documentation

◆ Functions()

Engines::Jade::Functions::Functions ( Game game)

Definition at line 53 of file functions.cpp.

References registerFunctions().

Here is the call graph for this function:

◆ ~Functions()

Engines::Jade::Functions::~Functions ( )

Definition at line 57 of file functions.cpp.

References FunctionMan.

Member Function Documentation

◆ abs()

void Engines::Jade::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::Jade::Functions::acos ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 56 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ actionCloseDoor()

void Engines::Jade::Functions::actionCloseDoor ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionDoCommand()

void Engines::Jade::Functions::actionDoCommand ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionJumpToLocation()

void Engines::Jade::Functions::actionJumpToLocation ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionJumpToObject()

void Engines::Jade::Functions::actionJumpToObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 208 of file functions_action.cpp.

References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), jumpTo(), and Engines::Jade::ObjectContainer::toObject().

Here is the call graph for this function:

◆ actionMoveToLocation()

void Engines::Jade::Functions::actionMoveToLocation ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionMoveToObject()

void Engines::Jade::Functions::actionMoveToObject ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionOpenDoor()

void Engines::Jade::Functions::actionOpenDoor ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionPlayAnimation()

void Engines::Jade::Functions::actionPlayAnimation ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionSpeakStringByStrRef()

void Engines::Jade::Functions::actionSpeakStringByStrRef ( Aurora::NWScript::FunctionContext ctx)
private

◆ actionStartConversation()

void Engines::Jade::Functions::actionStartConversation ( Aurora::NWScript::FunctionContext ctx)
private

◆ asin()

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

Definition at line 60 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ assignCommand()

void Engines::Jade::Functions::assignCommand ( Aurora::NWScript::FunctionContext ctx)
private

◆ atan()

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

Definition at line 64 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ cos()

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

Definition at line 44 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d10()

void Engines::Jade::Functions::d10 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 104 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d100()

void Engines::Jade::Functions::d100 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 116 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d12()

void Engines::Jade::Functions::d12 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 108 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d2()

void Engines::Jade::Functions::d2 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 84 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d20()

void Engines::Jade::Functions::d20 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 112 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d3()

void Engines::Jade::Functions::d3 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 88 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d4()

void Engines::Jade::Functions::d4 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 92 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d6()

void Engines::Jade::Functions::d6 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 96 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ d8()

void Engines::Jade::Functions::d8 ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 100 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ delayCommand()

void Engines::Jade::Functions::delayCommand ( Aurora::NWScript::FunctionContext ctx)
private

◆ eventUserDefined()

void Engines::Jade::Functions::eventUserDefined ( Aurora::NWScript::FunctionContext ctx)
private

◆ executeScript()

void Engines::Jade::Functions::executeScript ( Aurora::NWScript::FunctionContext ctx)
private

◆ fabs()

void Engines::Jade::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::Jade::Functions::findSubString ( Aurora::NWScript::FunctionContext ctx)
private

◆ findTable()

const Aurora::TwoDAFile & Engines::Jade::Functions::findTable ( int32  nr)
private

◆ floatToInt()

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

Definition at line 124 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::Jade::Functions::floatToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 112 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ formatFloat()

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

Definition at line 114 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:

◆ get2DAEntryFloat()

void Engines::Jade::Functions::get2DAEntryFloat ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DAEntryFloatByString()

void Engines::Jade::Functions::get2DAEntryFloatByString ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DAEntryInt()

void Engines::Jade::Functions::get2DAEntryInt ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DAEntryIntByString()

void Engines::Jade::Functions::get2DAEntryIntByString ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DAEntryString()

void Engines::Jade::Functions::get2DAEntryString ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DAEntryStringByString()

void Engines::Jade::Functions::get2DAEntryStringByString ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DANumColumn()

void Engines::Jade::Functions::get2DANumColumn ( Aurora::NWScript::FunctionContext ctx)
private

◆ get2DANumRows()

void Engines::Jade::Functions::get2DANumRows ( Aurora::NWScript::FunctionContext ctx)
private

◆ getArea()

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

◆ getAutoBalance()

void Engines::Jade::Functions::getAutoBalance ( Aurora::NWScript::FunctionContext ctx)
private

◆ getDistanceToObject()

void Engines::Jade::Functions::getDistanceToObject ( Aurora::NWScript::FunctionContext ctx)
private

◆ getEnteringObject()

void Engines::Jade::Functions::getEnteringObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 48 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getExitingObject()

void Engines::Jade::Functions::getExitingObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 53 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getGlobalBool()

void Engines::Jade::Functions::getGlobalBool ( Aurora::NWScript::FunctionContext ctx)
private

◆ getGlobalFloat()

void Engines::Jade::Functions::getGlobalFloat ( Aurora::NWScript::FunctionContext ctx)
private

◆ getGlobalInt()

void Engines::Jade::Functions::getGlobalInt ( Aurora::NWScript::FunctionContext ctx)
private

◆ getGlobalString()

void Engines::Jade::Functions::getGlobalString ( Aurora::NWScript::FunctionContext ctx)
private

◆ getIsObjectValid()

void Engines::Jade::Functions::getIsObjectValid ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 58 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getIsPC()

void Engines::Jade::Functions::getIsPC ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 62 of file functions_object.cpp.

References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::Jade::ObjectContainer::toPC().

Here is the call graph for this function:

◆ getLocalBool()

void Engines::Jade::Functions::getLocalBool ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalFloat()

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

◆ getLocalInt()

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

◆ getLocalObject()

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

◆ getLocalString()

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

◆ getLocation()

void Engines::Jade::Functions::getLocation ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 158 of file functions_object.cpp.

References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::Jade::ObjectContainer::toObject().

Here is the call graph for this function:

◆ getNearestObject()

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

◆ getNextPC()

void Engines::Jade::Functions::getNextPC ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 70 of file functions_module.cpp.

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

Here is the call graph for this function:

◆ getObjectByTag()

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

◆ getObjectConversationResref()

void Engines::Jade::Functions::getObjectConversationResref ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 320 of file functions_object.cpp.

References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::Jade::ObjectContainer::toObject().

Here is the call graph for this function:

◆ getObjectType()

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

◆ getParamObject()

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

◆ getPlayer()

void Engines::Jade::Functions::getPlayer ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 66 of file functions_module.cpp.

References _game, Engines::Jade::Game::getModule(), Engines::Jade::Module::getPC(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ getPosition()

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

◆ getPositionFromLocation()

void Engines::Jade::Functions::getPositionFromLocation ( Aurora::NWScript::FunctionContext ctx)
private

◆ getPriorActivation()

void Engines::Jade::Functions::getPriorActivation ( Aurora::NWScript::FunctionContext ctx)
private

◆ getRandom()

int32 Engines::Jade::Functions::getRandom ( int  min,
int  max,
int32  n = 1 
)
staticprivate

Definition at line 102 of file functions.cpp.

Referenced by d10(), d100(), d12(), d2(), d20(), d3(), d4(), d6(), d8(), and random().

Here is the caller graph for this function:

◆ getStringByStrRef()

void Engines::Jade::Functions::getStringByStrRef ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 240 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ getStringLeft()

void Engines::Jade::Functions::getStringLeft ( Aurora::NWScript::FunctionContext ctx)
private

◆ getStringLength()

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

Definition at line 150 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ getStringLowerCase()

void Engines::Jade::Functions::getStringLowerCase ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 158 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ getStringRight()

void Engines::Jade::Functions::getStringRight ( Aurora::NWScript::FunctionContext ctx)
private

◆ getStringUpperCase()

void Engines::Jade::Functions::getStringUpperCase ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 154 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ getSubString()

void Engines::Jade::Functions::getSubString ( Aurora::NWScript::FunctionContext ctx)
private

◆ getTag()

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

◆ getUserDefinedEventNumber()

void Engines::Jade::Functions::getUserDefinedEventNumber ( Aurora::NWScript::FunctionContext ctx)
private

◆ getWaypointByTag()

void Engines::Jade::Functions::getWaypointByTag ( Aurora::NWScript::FunctionContext ctx)
private

◆ insertString()

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

◆ intToFloat()

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

Definition at line 120 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::Jade::Functions::intToHexString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 120 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::Jade::Functions::intToString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 108 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ jumpTo()

void Engines::Jade::Functions::jumpTo ( Jade::Object object,
Area area,
float  x,
float  y,
float  z 
)
private

◆ jumpToLocation()

void Engines::Jade::Functions::jumpToLocation ( Aurora::NWScript::FunctionContext ctx)
private

◆ jumpToObject()

void Engines::Jade::Functions::jumpToObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 304 of file functions_object.cpp.

References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), jumpTo(), and Engines::Jade::ObjectContainer::toObject().

Here is the call graph for this function:

◆ location()

void Engines::Jade::Functions::location ( Aurora::NWScript::FunctionContext ctx)
private

◆ log()

void Engines::Jade::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:

◆ objectToString()

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

◆ playAnimation()

void Engines::Jade::Functions::playAnimation ( Aurora::NWScript::FunctionContext ctx)
private

◆ pow()

void Engines::Jade::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::Jade::Functions::printFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 74 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ printInteger()

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

Definition at line 70 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ printObject()

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

Definition at line 86 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ printString()

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

Definition at line 82 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ printVector()

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

Definition at line 99 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ random()

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

Definition at line 80 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ registerFunctions()

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

◆ sendMessageToPC()

void Engines::Jade::Functions::sendMessageToPC ( Aurora::NWScript::FunctionContext ctx)
private

◆ setCustomToken()

void Engines::Jade::Functions::setCustomToken ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 246 of file functions_string.cpp.

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

Here is the call graph for this function:

◆ setGlobalBool()

void Engines::Jade::Functions::setGlobalBool ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 61 of file functions_game.cpp.

References _game, Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().

Here is the call graph for this function:

◆ setGlobalFloat()

void Engines::Jade::Functions::setGlobalFloat ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 69 of file functions_game.cpp.

References _game, Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().

Here is the call graph for this function:

◆ setGlobalInt()

void Engines::Jade::Functions::setGlobalInt ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 57 of file functions_game.cpp.

References _game, Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().

Here is the call graph for this function:

◆ setGlobalString()

void Engines::Jade::Functions::setGlobalString ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 65 of file functions_game.cpp.

References _game, Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().

Here is the call graph for this function:

◆ setLocalBool()

void Engines::Jade::Functions::setLocalBool ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 108 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setLocalFloat()

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

Definition at line 115 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setLocalInt()

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

Definition at line 101 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setLocalObject()

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

Definition at line 129 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setLocalString()

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

Definition at line 122 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setObjectNoCollide()

void Engines::Jade::Functions::setObjectNoCollide ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 330 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ setUserDefinedEventNumber()

void Engines::Jade::Functions::setUserDefinedEventNumber ( Aurora::NWScript::FunctionContext ctx)
private

◆ signalEvent()

void Engines::Jade::Functions::signalEvent ( Aurora::NWScript::FunctionContext ctx)
private

◆ sin()

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

Definition at line 48 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ sqrt()

void Engines::Jade::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:

◆ stringToFloat()

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

◆ stringToInt()

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

◆ tan()

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

Definition at line 52 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ unimplementedFunction()

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

◆ vector()

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

◆ vectorMagnitude()

void Engines::Jade::Functions::vectorMagnitude ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 134 of file functions_math.cpp.

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

Here is the call graph for this function:

◆ vectorNormalize()

void Engines::Jade::Functions::vectorNormalize ( Aurora::NWScript::FunctionContext ctx)
private

◆ writeTimestampedLogEntry()

void Engines::Jade::Functions::writeTimestampedLogEntry ( Aurora::NWScript::FunctionContext ctx)
private

Member Data Documentation

◆ _game

Game* Engines::Jade::Functions::_game
private

◆ kFunctionDefaults

const Functions::FunctionDefaults Engines::Jade::Functions::kFunctionDefaults
staticprivate

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

Definition at line 73 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionPointers

const Functions::FunctionPointer Engines::Jade::Functions::kFunctionPointers
staticprivate

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

Definition at line 71 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionSignatures

const Functions::FunctionSignature Engines::Jade::Functions::kFunctionSignatures
staticprivate

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

Definition at line 72 of file functions.h.

Referenced by registerFunctions().


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