xoreos
0.0.5
|
#include <functions.h>
Classes | |
struct | FunctionDefaults |
struct | FunctionPointer |
struct | FunctionSignature |
Public Member Functions | |
Functions (Game &game) | |
~Functions () | |
Private Types | |
typedef void(Functions::* | funcPtr) (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::Object * | getParamObject (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... | |
Definition at line 45 of file functions.h.
|
private |
Definition at line 51 of file functions.h.
Engines::NWN2::Functions::Functions | ( | Game & | game | ) |
Definition at line 53 of file functions.cpp.
References registerFunctions().
Engines::NWN2::Functions::~Functions | ( | ) |
Definition at line 57 of file functions.cpp.
References FunctionMan.
|
private |
Definition at line 36 of file functions_math.cpp.
References ABS(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 56 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Common::rad2deg().
|
private |
Definition at line 112 of file functions_action.cpp.
References Engines::NWN2::Door::close(), Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), Engines::NWN2::ObjectContainer::toDoor(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 96 of file functions_action.cpp.
References _game, Engines::NWN2::Module::delayScript(), Common::UString::empty(), Aurora::NWScript::FunctionContext::getCaller(), Engines::NWN2::Game::getModule(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getScriptName(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 125 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Location::getPosition(), jumpTo(), Engines::NWN2::ObjectContainer::toLocation(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 153 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), jumpTo(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 138 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Location::getPosition(), jumpTo(), Engines::NWN2::ObjectContainer::toLocation(), Engines::NWN2::ObjectContainer::toObject(), and unimplementedFunction().
|
private |
Definition at line 169 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), jumpTo(), Engines::NWN2::ObjectContainer::toObject(), and unimplementedFunction().
|
private |
Definition at line 106 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), Engines::NWN2::Door::open(), Engines::NWN2::ObjectContainer::toDoor(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 118 of file functions_action.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Object::speakString(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 60 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Common::rad2deg().
|
private |
Definition at line 47 of file functions_action.cpp.
References _game, Engines::NWN2::Module::delayScript(), Common::UString::empty(), Engines::NWN2::Game::getModule(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getScriptName(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 64 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Common::rad2deg().
|
private |
Definition at line 44 of file functions_math.cpp.
References Common::deg2rad(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 104 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 116 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 108 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 84 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 112 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 88 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 92 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 96 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 100 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 57 of file functions_action.cpp.
References _game, Engines::NWN2::Module::delayScript(), Common::UString::empty(), Aurora::NWScript::FunctionContext::getCaller(), Engines::NWN2::Game::getModule(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getScriptName(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 69 of file functions_action.cpp.
References Common::UString::c_str(), Common::exceptionDispatcherWarning(), Aurora::NWScript::formatTag(), Aurora::NWScript::FunctionContext::getCurrentEnvironment(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::kFileTypeNCS, ResMan, Aurora::NWScript::NCSFile::run(), Aurora::NWScript::NCSFile::setEnvironment(), and Common::UString::truncate().
|
private |
Definition at line 40 of file functions_math.cpp.
References ABS(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 227 of file functions_string.cpp.
References Common::UString::c_str(), debugC(), Common::UString::end(), Common::UString::findFirst(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Common::UString::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Common::kDebugEngineScripts, Common::UString::size(), and Common::UString::substr().
|
private |
Definition at line 124 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 112 of file functions_string.cpp.
References formatFloat(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
staticprivate |
Definition at line 114 of file functions.cpp.
References Common::UString::format().
Referenced by floatToString(), and printFloat().
|
private |
Definition at line 256 of file functions_string.cpp.
References Common::UString::clear(), Common::UString::empty(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Aurora::NWScript::Variable::getString(), and TwoDAReg.
|
private |
Definition at line 42 of file functions_creature.cpp.
References Engines::NWN2::Creature::getAbility(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 153 of file functions_creature.cpp.
References Engines::NWN2::getAlignmentGoodEvil(), Engines::NWN2::Creature::getGoodEvil(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 147 of file functions_creature.cpp.
References Engines::NWN2::getAlignmentLawChaos(), Engines::NWN2::Creature::getLawChaos(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 145 of file functions_object.cpp.
References Engines::NWN2::Object::getArea(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 63 of file functions_creature.cpp.
References Engines::NWN2::Creature::getClass(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::kClassInvalid, and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 49 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 175 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), Engines::NWN2::Object::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), SQR, and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 53 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 58 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::FunctionContext::getTriggerer().
|
private |
Definition at line 166 of file functions_creature.cpp.
References _game, Engines::NWN2::Game::getModule(), getParamObject(), Engines::NWN2::Module::getPC(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 84 of file functions_module.cpp.
References _game, Engines::NWN2::Game::getModule(), Engines::NWN2::Module::getPC(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 117 of file functions_creature.cpp.
References Engines::NWN2::Creature::getGender(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::kGenderNone, and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 56 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::VariableContainer::getVariable(), and Aurora::NWScript::kTypeInt.
|
private |
Definition at line 64 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::VariableContainer::getVariable(), and Aurora::NWScript::kTypeFloat.
|
private |
Definition at line 52 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::VariableContainer::getVariable(), and Aurora::NWScript::kTypeInt.
|
private |
Definition at line 60 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::VariableContainer::getVariable(), and Aurora::ActionScript::kTypeString.
|
private |
Definition at line 141 of file functions_creature.cpp.
References Engines::NWN2::Creature::getGoodEvil(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 57 of file functions_creature.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Creature::hasFeat(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 129 of file functions_creature.cpp.
References Engines::NWN2::Creature::getHitDice(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 101 of file functions_creature.cpp.
References Engines::NWN2::Creature::getCurrentHP(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 111 of file functions_creature.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Creature::isDM(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 63 of file functions_object.cpp.
References getParamObject(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 49 of file functions_situated.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Situated::isOpen(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 107 of file functions_creature.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toPC().
|
private |
Definition at line 159 of file functions_creature.cpp.
References _game, Engines::NWN2::Game::getModule(), getParamObject(), Engines::NWN2::Module::getPC(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 48 of file functions_campaign.cpp.
References Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 65 of file functions_situated.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Engines::NWN2::Situated::getLastClosedBy(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 55 of file functions_situated.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Engines::NWN2::Situated::getLastOpenedBy(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 75 of file functions_situated.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Engines::NWN2::Situated::getLastUsedBy(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 135 of file functions_creature.cpp.
References Engines::NWN2::Creature::getLawChaos(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 89 of file functions_creature.cpp.
References Engines::NWN2::Creature::getClassLevel(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 77 of file functions_creature.cpp.
References Engines::NWN2::Creature::getClass(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 73 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::kTypeFloat.
|
private |
Definition at line 67 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::kTypeInt.
|
private |
Definition at line 85 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::ActionScript::kTypeObject.
|
private |
Definition at line 79 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::ActionScript::kTypeString.
|
private |
Definition at line 153 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 37 of file functions_situated.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Situated::isLocked(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 40 of file functions_module.cpp.
References _game, Engines::NWN2::Game::getModule(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 138 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getString(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 306 of file functions_object.cpp.
References _game, Aurora::NWScript::ObjectContainer::findObjects(), Engines::NWN2::Object::getArea(), Engines::NWN2::Game::getModule(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::ObjectContainer::toCreature(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 229 of file functions_object.cpp.
References _game, Aurora::NWScript::ObjectContainer::findObjects(), Engines::NWN2::Object::getArea(), Engines::NWN2::Game::getModule(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Object::getType(), Engines::NWN2::kObjectTypeMAX, and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 270 of file functions_object.cpp.
References _game, Common::UString::empty(), Aurora::NWScript::ObjectContainer::findObjectsByTag(), Engines::NWN2::Object::getArea(), Engines::NWN2::Game::getModule(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 88 of file functions_module.cpp.
References Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 193 of file functions_object.cpp.
References _game, Common::UString::empty(), Aurora::NWScript::ObjectContainer::findObjectsByTag(), Engines::NWN2::Game::getModule(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 115 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Object::getType(), Engines::NWN2::kObjectTypeInvalid, Engines::NWN2::kObjectTypeMAX, and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 44 of file functions_campaign.cpp.
References Aurora::NWScript::FunctionContext::getReturn().
|
staticprivate |
Definition at line 118 of file functions.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Object::getType(), Engines::NWN2::kObjectTypeInvalid, Engines::NWN2::kObjectTypeSelf, and Engines::NWN2::ObjectContainer::toObject().
Referenced by actionCloseDoor(), actionJumpToObject(), actionMoveToObject(), actionOpenDoor(), assignCommand(), executeScript(), getAbilityScore(), getAlignmentGoodEvil(), getAlignmentLawChaos(), getArea(), getClassByPosition(), getDistanceToObject(), getFactionLeader(), getGender(), getGoodEvilValue(), getHasFeat(), getHitDice(), getIsDead(), getIsDM(), getIsObjectValid(), getIsOpen(), getIsPC(), getIsRosterMember(), getLawChaosValue(), getLevelByClass(), getLevelByPosition(), getLocalFloat(), getLocalInt(), getLocalObject(), getLocalString(), getLocation(), getLocked(), getName(), getNearestCreature(), getNearestObject(), getNearestObjectByTag(), getObjectType(), getPosition(), getRacialType(), getSkillRank(), getTag(), getXP(), jumpToObject(), musicBackgroundChangeDay(), musicBackgroundChangeNight(), musicBackgroundGetDayTrack(), musicBackgroundGetNightTrack(), musicBackgroundPlay(), musicBackgroundStop(), playVoiceChat(), sendMessageToPC(), setLocalFloat(), setLocalInt(), setLocalObject(), setLocalString(), setLocked(), and speakOneLinerConversation().
|
private |
Definition at line 161 of file functions_object.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::setVector(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 57 of file functions_module.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Location::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::setVector(), and Engines::NWN2::ObjectContainer::toLocation().
|
private |
Definition at line 123 of file functions_creature.cpp.
References getParamObject(), Engines::NWN2::Creature::getRace(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::kRaceInvalid, and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 51 of file functions_creature.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Creature::getSkillRank(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 249 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and TalkMan.
|
private |
Definition at line 177 of file functions_string.cpp.
References Common::UString::begin(), Common::UString::c_str(), Common::UString::clear(), debugC(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Common::UString::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getString(), Common::kDebugEngineScripts, Common::UString::size(), and Common::UString::substr().
|
private |
Definition at line 150 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 158 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 162 of file functions_string.cpp.
References Common::UString::c_str(), Common::UString::clear(), debugC(), Common::UString::end(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Common::UString::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getString(), Common::kDebugEngineScripts, Common::UString::size(), and Common::UString::substr().
|
private |
Definition at line 154 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 207 of file functions_string.cpp.
References Common::UString::c_str(), Common::UString::clear(), debugC(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Common::UString::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getString(), Common::kDebugEngineScripts, Common::UString::size(), and Common::UString::substr().
|
private |
Definition at line 125 of file functions_object.cpp.
References _game, Common::UString::clear(), Engines::NWN2::Game::getModule(), getParamObject(), Engines::NWN2::Module::getPC(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::Variable::getString().
|
private |
Definition at line 209 of file functions_object.cpp.
References _game, Common::UString::empty(), Aurora::NWScript::ObjectContainer::findObjectsByTag(), Engines::NWN2::Game::getModule(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toWaypoint().
|
private |
Definition at line 95 of file functions_creature.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Creature::getXP(), and Engines::NWN2::ObjectContainer::toCreature().
|
private |
Definition at line 192 of file functions_string.cpp.
References Common::UString::c_str(), Common::UString::clear(), debugC(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Common::UString::getPosition(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getString(), Common::UString::insert(), and Common::kDebugEngineScripts.
|
private |
Definition at line 120 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 120 of file functions_string.cpp.
References Common::UString::format(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 108 of file functions_string.cpp.
References Common::composeString(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 129 of file functions.cpp.
References _game, Common::UString::c_str(), Engines::NWN2::Object::getArea(), Engines::NWN2::Game::getModule(), Engines::NWN2::Module::getPC(), Engines::NWN2::Area::getResRef(), GfxMan, Engines::NWN2::Module::movedPC(), Engines::NWN2::ObjectContainer::toObject(), and warning().
Referenced by actionJumpToLocation(), actionJumpToObject(), actionMoveToLocation(), actionMoveToObject(), jumpToLocation(), and jumpToObject().
|
private |
Definition at line 346 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Location::getPosition(), jumpTo(), Engines::NWN2::ObjectContainer::toLocation(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 359 of file functions_object.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), jumpTo(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 44 of file functions_module.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Engines::NWN2::Location::setArea(), Engines::NWN2::Location::setFacing(), Engines::NWN2::Location::setPosition(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 68 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 91 of file functions_sound.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Area::setMusicDayTrack(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 97 of file functions_sound.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Area::setMusicNightTrack(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 103 of file functions_sound.cpp.
References Engines::NWN2::Area::getMusicDayTrack(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 109 of file functions_sound.cpp.
References Engines::NWN2::Area::getMusicNightTrack(), getParamObject(), Aurora::NWScript::FunctionContext::getReturn(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 79 of file functions_sound.cpp.
References getParamObject(), Engines::NWN2::Area::playAmbientMusic(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 85 of file functions_sound.cpp.
References getParamObject(), Engines::NWN2::Area::stopAmbientMusic(), and Engines::NWN2::ObjectContainer::toArea().
|
private |
Definition at line 92 of file functions_string.cpp.
References Common::UString::format(), Aurora::NWScript::formatTag(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 68 of file functions_sound.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Sound::kSoundTypeSFX, Engines::playSound(), Engines::NWN2::Object::playSound(), Engines::NWN2::ObjectContainer::toObject(), and unimplementedFunction().
|
private |
Definition at line 54 of file functions_sound.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Sound::kSoundTypeVoice, Engines::playSound(), TalkMan, and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 42 of file functions_sound.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Aurora::SSFFile::getSoundFile(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 72 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 74 of file functions_string.cpp.
References formatFloat(), Aurora::NWScript::FunctionContext::getParams(), and status().
|
private |
Definition at line 70 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and status().
|
private |
Definition at line 86 of file functions_string.cpp.
References Aurora::NWScript::formatTag(), Aurora::NWScript::FunctionContext::getParams(), and status().
|
private |
Definition at line 82 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and status().
|
private |
Definition at line 99 of file functions_string.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and status().
|
private |
Definition at line 80 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), getRandom(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 61 of file functions.cpp.
References ARRAYSIZE, Engines::NWN2::Functions::FunctionDefaults::defaults, Engines::NWN2::Functions::FunctionPointer::func, FunctionMan, Engines::NWN2::Functions::FunctionPointer::id, Engines::NWN2::Functions::FunctionSignature::id, Engines::NWN2::Functions::FunctionDefaults::id, kFunctionDefaults, kFunctionPointers, kFunctionSignatures, Aurora::NWScript::kTypeVoid, Engines::NWN2::Functions::FunctionPointer::name, Engines::NWN2::Functions::FunctionSignature::parameters, Engines::NWN2::Functions::FunctionSignature::returnType, and unimplementedFunction().
Referenced by Functions().
|
private |
Definition at line 58 of file functions_string.cpp.
References Common::UString::c_str(), debugC(), Aurora::NWScript::FunctionContext::getName(), Engines::NWN2::Object::getName(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Common::kDebugEngineScripts, Engines::NWN2::ObjectContainer::toPC(), and warning().
|
private |
Definition at line 72 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().
|
private |
Definition at line 80 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().
|
private |
Definition at line 68 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().
|
private |
Definition at line 76 of file functions_campaign.cpp.
References _game, Engines::NWN2::Game::getCampaign(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::VariableContainer::setVariable().
|
private |
Definition at line 97 of file functions_object.cpp.
References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().
|
private |
Definition at line 91 of file functions_object.cpp.
References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().
|
private |
Definition at line 109 of file functions_object.cpp.
References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().
|
private |
Definition at line 103 of file functions_object.cpp.
References getParamObject(), and Aurora::NWScript::FunctionContext::getParams().
|
private |
Definition at line 43 of file functions_situated.cpp.
References getParamObject(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Situated::setLocked(), and Engines::NWN2::ObjectContainer::toSituated().
|
private |
Definition at line 48 of file functions_math.cpp.
References Common::deg2rad(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 61 of file functions_conversation.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), getParamObject(), Aurora::NWScript::FunctionContext::getParams(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 42 of file functions_conversation.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Object::speakString(), and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 49 of file functions_conversation.cpp.
References Aurora::NWScript::FunctionContext::getCaller(), Aurora::NWScript::FunctionContext::getParams(), TalkMan, and Engines::NWN2::ObjectContainer::toObject().
|
private |
Definition at line 76 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 70 of file functions_module.cpp.
References _game, Engines::NWN2::Game::getModule(), Engines::NWN2::Game::getModules(), Aurora::NWScript::FunctionContext::getParams(), Engines::NWN2::Module::load(), and warning().
|
private |
Definition at line 137 of file functions_string.cpp.
References Common::UString::c_str(), debugC(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Common::kDebugEngineScripts, Common::parseString(), and Common::StackException::what().
|
private |
Definition at line 124 of file functions_string.cpp.
References Common::UString::c_str(), debugC(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), Common::kDebugEngineScripts, Common::parseString(), and Common::StackException::what().
|
private |
Definition at line 52 of file functions_math.cpp.
References Common::deg2rad(), Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 97 of file functions.cpp.
References Common::UString::c_str(), Aurora::NWScript::formatParams(), Aurora::NWScript::formatType(), Aurora::NWScript::FunctionContext::getName(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getType(), and warning().
Referenced by actionMoveToLocation(), actionMoveToObject(), playSound(), and registerFunctions().
|
private |
Definition at line 128 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::Variable::setVector().
|
private |
Definition at line 134 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), and Aurora::NWScript::FunctionContext::getReturn().
|
private |
Definition at line 141 of file functions_math.cpp.
References Aurora::NWScript::FunctionContext::getParams(), Aurora::NWScript::FunctionContext::getReturn(), and Aurora::NWScript::Variable::setVector().
|
private |
Definition at line 52 of file functions_string.cpp.
References Common::UString::c_str(), Common::DateTime::formatDateTimeISO(), Aurora::NWScript::FunctionContext::getParams(), Common::DateTime::kUTC, and status().
|
private |
Definition at line 75 of file functions.h.
Referenced by actionDoCommand(), assignCommand(), delayCommand(), getFactionLeader(), getFirstPC(), getGlobalBool(), getGlobalFloat(), getGlobalInt(), getGlobalString(), getIsRosterMember(), getModule(), getNearestCreature(), getNearestObject(), getNearestObjectByTag(), getObjectByTag(), getTag(), getWaypointByTag(), jumpTo(), setGlobalBool(), setGlobalFloat(), setGlobalInt(), setGlobalString(), and startNewModule().
|
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().
|
staticprivate |
The table defining the name and function pointer of each engine function.
Definition at line 70 of file functions.h.
Referenced by registerFunctions().
|
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().