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

#include <functions.h>

Collaboration diagram for Engines::KotOR2::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 (KotOR2::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 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 getModule (Aurora::NWScript::FunctionContext &ctx)
 
void getFirstPC (Aurora::NWScript::FunctionContext &ctx)
 
void getNextPC (Aurora::NWScript::FunctionContext &ctx)
 
void getClickingObject (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 isObjectPartyMember (Aurora::NWScript::FunctionContext &ctx)
 
void getObjectByTag (Aurora::NWScript::FunctionContext &ctx)
 
void getLocked (Aurora::NWScript::FunctionContext &ctx)
 
void setLocked (Aurora::NWScript::FunctionContext &ctx)
 
void getIsOpen (Aurora::NWScript::FunctionContext &ctx)
 
void getLastOpenedBy (Aurora::NWScript::FunctionContext &ctx)
 
void getLastClosedBy (Aurora::NWScript::FunctionContext &ctx)
 
void getLastUsedBy (Aurora::NWScript::FunctionContext &ctx)
 
void assignCommand (Aurora::NWScript::FunctionContext &ctx)
 
void delayCommand (Aurora::NWScript::FunctionContext &ctx)
 
void actionStartConversation (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundPlay (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundStop (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundChangeDay (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundChangeNight (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundGetDayTrack (Aurora::NWScript::FunctionContext &ctx)
 
void musicBackgroundGetNightTrack (Aurora::NWScript::FunctionContext &ctx)
 
void playMovie (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalBoolean (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalBoolean (Aurora::NWScript::FunctionContext &ctx)
 
void getLocalNumber (Aurora::NWScript::FunctionContext &ctx)
 
void setLocalNumber (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 45 of file functions.h.

Member Typedef Documentation

◆ funcPtr

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

Definition at line 51 of file functions.h.

Constructor & Destructor Documentation

◆ Functions()

Engines::KotOR2::Functions::Functions ( Game game)

Definition at line 50 of file functions.cpp.

References registerFunctions().

Here is the call graph for this function:

◆ ~Functions()

Engines::KotOR2::Functions::~Functions ( )

Definition at line 54 of file functions.cpp.

References FunctionMan.

Member Function Documentation

◆ abs()

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

◆ actionStartConversation()

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

◆ asin()

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

◆ atan()

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

◆ fabs()

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

◆ floatToInt()

void Engines::KotOR2::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::KotOR2::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::KotOR2::Functions::formatFloat ( float  f,
int  width = 18,
int  decimals = 9 
)
staticprivate

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

◆ getClickingObject()

void Engines::KotOR2::Functions::getClickingObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 41 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getEnteringObject()

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

Definition at line 45 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::KotOR2::Functions::getExitingObject ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 50 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getFirstPC()

void Engines::KotOR2::Functions::getFirstPC ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 43 of file functions_module.cpp.

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

Here is the call graph for this function:

◆ getIsObjectValid()

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

Definition at line 55 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getIsOpen()

void Engines::KotOR2::Functions::getIsOpen ( Aurora::NWScript::FunctionContext ctx)
private

◆ getIsPC()

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

Definition at line 59 of file functions_object.cpp.

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

Here is the call graph for this function:

◆ getLastClosedBy()

void Engines::KotOR2::Functions::getLastClosedBy ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLastOpenedBy()

void Engines::KotOR2::Functions::getLastOpenedBy ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLastUsedBy()

void Engines::KotOR2::Functions::getLastUsedBy ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalBoolean()

void Engines::KotOR2::Functions::getLocalBoolean ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocalNumber()

void Engines::KotOR2::Functions::getLocalNumber ( Aurora::NWScript::FunctionContext ctx)
private

◆ getLocked()

void Engines::KotOR2::Functions::getLocked ( Aurora::NWScript::FunctionContext ctx)
private

◆ getModule()

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

Definition at line 39 of file functions_module.cpp.

References _game, Engines::KotOR2::Game::getModule(), and Aurora::NWScript::FunctionContext::getReturn().

Here is the call graph for this function:

◆ getNextPC()

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

Definition at line 47 of file functions_module.cpp.

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

Here is the call graph for this function:

◆ getObjectByTag()

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

◆ getParamObject()

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

◆ getRandom()

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

Definition at line 99 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::KotOR2::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::KotOR2::Functions::getStringLeft ( Aurora::NWScript::FunctionContext ctx)
private

◆ getStringLength()

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

◆ getStringUpperCase()

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

◆ insertString()

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

◆ intToFloat()

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

◆ isObjectPartyMember()

void Engines::KotOR2::Functions::isObjectPartyMember ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 63 of file functions_object.cpp.

References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::KotOR2::ObjectContainer::toPartyMember().

Here is the call graph for this function:

◆ jumpTo()

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

Definition at line 126 of file functions.cpp.

◆ log()

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

◆ musicBackgroundChangeDay()

void Engines::KotOR2::Functions::musicBackgroundChangeDay ( Aurora::NWScript::FunctionContext ctx)
private

◆ musicBackgroundChangeNight()

void Engines::KotOR2::Functions::musicBackgroundChangeNight ( Aurora::NWScript::FunctionContext ctx)
private

◆ musicBackgroundGetDayTrack()

void Engines::KotOR2::Functions::musicBackgroundGetDayTrack ( Aurora::NWScript::FunctionContext ctx)
private

◆ musicBackgroundGetNightTrack()

void Engines::KotOR2::Functions::musicBackgroundGetNightTrack ( Aurora::NWScript::FunctionContext ctx)
private

◆ musicBackgroundPlay()

void Engines::KotOR2::Functions::musicBackgroundPlay ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 37 of file functions_sound.cpp.

References getParamObject(), Engines::KotOR2::Area::playAmbientMusic(), and Engines::KotOR2::ObjectContainer::toArea().

Here is the call graph for this function:

◆ musicBackgroundStop()

void Engines::KotOR2::Functions::musicBackgroundStop ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 43 of file functions_sound.cpp.

References getParamObject(), Engines::KotOR2::Area::stopAmbientMusic(), and Engines::KotOR2::ObjectContainer::toArea().

Here is the call graph for this function:

◆ objectToString()

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

◆ playMovie()

void Engines::KotOR2::Functions::playMovie ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 37 of file functions_movie.cpp.

References Aurora::NWScript::FunctionContext::getParams(), and Engines::playVideo().

Here is the call graph for this function:

◆ pow()

void Engines::KotOR2::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::KotOR2::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::KotOR2::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::KotOR2::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::KotOR2::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::KotOR2::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::KotOR2::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::KotOR2::Functions::registerFunctions ( )
private

◆ sendMessageToPC()

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

◆ setLocalBoolean()

void Engines::KotOR2::Functions::setLocalBoolean ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 49 of file functions_local.cpp.

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

Here is the call graph for this function:

◆ setLocalNumber()

void Engines::KotOR2::Functions::setLocalNumber ( Aurora::NWScript::FunctionContext ctx)
private

Definition at line 67 of file functions_local.cpp.

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

Here is the call graph for this function:

◆ setLocked()

void Engines::KotOR2::Functions::setLocked ( Aurora::NWScript::FunctionContext ctx)
private

◆ sin()

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

◆ stringToInt()

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

◆ tan()

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

◆ vector()

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

◆ vectorMagnitude()

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

◆ writeTimestampedLogEntry()

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

Member Data Documentation

◆ _game

Game* Engines::KotOR2::Functions::_game
private

◆ kFunctionDefaults

const Functions::FunctionDefaults Engines::KotOR2::Functions::kFunctionDefaults
staticprivate

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

Definition at line 72 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionPointers

const Functions::FunctionPointer Engines::KotOR2::Functions::kFunctionPointers
staticprivate

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

Definition at line 70 of file functions.h.

Referenced by registerFunctions().

◆ kFunctionSignatures

const Functions::FunctionSignature Engines::KotOR2::Functions::kFunctionSignatures
staticprivate

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

Definition at line 71 of file functions.h.

Referenced by registerFunctions().


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