43 namespace DragonAge2 {
68 status(
"DragonAge2: WARNING: %s", ctx.
getParams()[0].getString().c_str());
72 status(
"DragonAge2: DEBUG: %s", ctx.
getParams()[0].getString().c_str());
76 status(
"DragonAge2: LOG(%s): %s", ctx.
getParams()[1].getString().c_str(),
85 const float value = ctx.
getParams()[0].getFloat();
86 const int width = ctx.
getParams()[1].getInt();
87 const int decimals = ctx.
getParams()[2].getInt();
100 static_cast<void *>(
object));
107 const bool prepend = ctx.
getParams()[1].getInt() != 0;
109 status(
"DragonAge2: %s%f, %f, %f", prepend ?
"PRINTVECTOR:" :
"", x, y, z);
113 const bool prepend = ctx.
getParams()[1].getInt() != 0;
115 status(
"DragonAge2: %s%s", prepend ?
"PRINTRESOURCE" :
"", ctx.
getParams()[0].getString().c_str());
123 const float value = ctx.
getParams()[0].getFloat();
124 const int width = ctx.
getParams()[1].getInt();
125 const int decimals = ctx.
getParams()[2].getInt();
134 static_cast<void *>(
object));
208 float x = 0.0f, y = 0.0f, z = 0.0f;
211 std::vector<Common::UString> parts;
270 if ((n <= 0) || ((
size_t)n > str.
size())) {
285 if ((n < 0) || ((
size_t)n >= str.
size())) {
317 if ((offset < 0) || ((
size_t)offset >= str.
size()) || (count <= 0)) {
336 if ((start < 0) || ((
size_t)start >= str.
size())) {
345 if (it == subStr.
end())
void getTlkTableString(Aurora::NWScript::FunctionContext &ctx)
void toString(Aurora::NWScript::FunctionContext &ctx)
void insert(iterator pos, uint32 c)
Insert character c in front of this position.
#define TalkMan
Shortcut for accessing the talk manager.
void debugC(Common::DebugChannel channel, uint32 level, const char *s,...)
Common::UString formatTag(const Object *object)
Construct a string with the tag of this object.
A class holding an UTF-8 string.
void getCurrentScriptResource(Aurora::NWScript::FunctionContext &ctx)
void subString(Aurora::NWScript::FunctionContext &ctx)
void printVector(Aurora::NWScript::FunctionContext &ctx)
Utility functions for debug output.
void intToString(Aurora::NWScript::FunctionContext &ctx)
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string.
A date/time object, storing a specific point in time.
Context of an NWScript function.
"EScripts", engine scripts.
iterator getPosition(size_t n) const
Convert a numerical position into an iterator.
UString formatDateTimeISO(uint32 sep=0, uint32 sepDate=0, uint32 sepTime=0) const
Return a string representation of the date and time in ISO 8601 format.
void printWarning(Aurora::NWScript::FunctionContext &ctx)
void charToInt(Aurora::NWScript::FunctionContext &ctx)
iterator findFirst(uint32 c) const
Utility templates and functions for working with strings and streams.
An NCS, BioWare's NWN Compile Script.
void isStringEmpty(Aurora::NWScript::FunctionContext &ctx)
Exception that provides a stack of explanations.
NCSFile * getCurrentScript() const
Utility functions for manipulating date and time.
void getStringByStringId(Aurora::NWScript::FunctionContext &ctx)
void getStringLength(Aurora::NWScript::FunctionContext &ctx)
void intToHexString(Aurora::NWScript::FunctionContext &ctx)
Basic exceptions to throw.
UString substr(iterator from, iterator to) const
utf8::iterator< std::string::const_iterator > iterator
const char * c_str() const
Return the (utf8 encoded) string data.
void stringRight(Aurora::NWScript::FunctionContext &ctx)
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
void stringToInt(Aurora::NWScript::FunctionContext &ctx)
Utility templates and functions.
void logTrace(Aurora::NWScript::FunctionContext &ctx)
void resourceToString(Aurora::NWScript::FunctionContext &ctx)
void printToLogWindow(Aurora::NWScript::FunctionContext &ctx)
void setVector(float x, float y, float z)
void printToLogAndFlush(Aurora::NWScript::FunctionContext &ctx)
Types and functions related to language.
void printResource(Aurora::NWScript::FunctionContext &ctx)
bool empty() const
Is the string empty?
const Common::UString & getName() const
void stringUpperCase(Aurora::NWScript::FunctionContext &ctx)
void printToLog(Aurora::NWScript::FunctionContext &ctx)
Handling BioWare's NWN Compiled Scripts.
void printObject(Aurora::NWScript::FunctionContext &ctx)
void printInteger(Aurora::NWScript::FunctionContext &ctx)
static bool isASCII(uint32 c)
Is the character an ASCII character?
size_t size() const
Return the size of the string, in characters.
void DEBUG_printToScreen(Aurora::NWScript::FunctionContext &ctx)
The global talk manager for Aurora strings.
Coordinated Universal Time (UTC).
Common::UString & getString()
void printFloat(Aurora::NWScript::FunctionContext &ctx)
void stringLowerCase(Aurora::NWScript::FunctionContext &ctx)
void vectorToString(Aurora::NWScript::FunctionContext &ctx)
void findSubString(Aurora::NWScript::FunctionContext &ctx)
void status(const char *s,...)
void stringToFloat(Aurora::NWScript::FunctionContext &ctx)
void stringToVector(Aurora::NWScript::FunctionContext &ctx)
void printString(Aurora::NWScript::FunctionContext &ctx)
const Common::UString & getName() const
void split(iterator splitPoint, UString &left, UString &right, bool remove=false) const
static Common::UString formatFloat(float f, int width=18, int decimals=9)
void objectToString(Aurora::NWScript::FunctionContext &ctx)
const char * what() const
void getCurrentScriptName(Aurora::NWScript::FunctionContext &ctx)
void intToChar(Aurora::NWScript::FunctionContext &ctx)
NWScript utility functions.
void clear()
Clear the string's contents.
void insertString(Aurora::NWScript::FunctionContext &ctx)
Dragon Age II engine functions.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
void floatToString(Aurora::NWScript::FunctionContext &ctx)
void stringLeft(Aurora::NWScript::FunctionContext &ctx)