75 const float value = ctx.
getParams()[0].getFloat();
76 const int width = ctx.
getParams()[1].getInt();
77 const int decimals = ctx.
getParams()[2].getInt();
96 static_cast<void *>(
object));
103 const bool prepend = ctx.
getParams()[1].getInt() != 0;
105 status(
"NWN2: %s%f, %f, %f", prepend ?
"PRINTVECTOR:" :
"", x, y, z);
113 const float value = ctx.
getParams()[0].getFloat();
114 const int width = ctx.
getParams()[1].getInt();
115 const int decimals = ctx.
getParams()[2].getInt();
168 if ((n <= 0) || ((
size_t)n > str.
size())) {
183 if ((n < 0) || ((
size_t)n >= str.
size())) {
215 if ((offset < 0) || ((
size_t)offset >= str.
size()) || (count <= 0)) {
234 if ((start < 0) || ((
size_t)start >= str.
size())) {
243 if (it == subStr.
end())
Class to hold the two-dimensional array of a 2DA file.
void printObject(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.
const Common::UString & getString(size_t column) const
Return the contents of a cell as a string.
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.
Utility functions for debug output.
void getStringLeft(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.
void floatToString(Aurora::NWScript::FunctionContext &ctx)
"EScripts", engine scripts.
void stringToFloat(Aurora::NWScript::FunctionContext &ctx)
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.
iterator findFirst(uint32 c) const
Utility templates and functions for working with strings and streams.
Exception that provides a stack of explanations.
void intToHexString(Aurora::NWScript::FunctionContext &ctx)
Utility functions for manipulating date and time.
void printString(Aurora::NWScript::FunctionContext &ctx)
Basic exceptions to throw.
Neverwinter Nights 2 engine functions.
A creature in a Neverwinter Nights 2 area.
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 printVector(Aurora::NWScript::FunctionContext &ctx)
void findSubString(Aurora::NWScript::FunctionContext &ctx)
A container of Neverwinter Nights 2 objects.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
Handling BioWare's 2DAs (two-dimensional array).
Types and functions related to language.
void getStringUpperCase(Aurora::NWScript::FunctionContext &ctx)
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
const Common::UString & getName() const
void getStringByStrRef(Aurora::NWScript::FunctionContext &ctx)
void getStringLowerCase(Aurora::NWScript::FunctionContext &ctx)
void warning(const char *s,...)
void writeTimestampedLogEntry(Aurora::NWScript::FunctionContext &ctx)
const Common::UString & getName() const
Return the object's name.
void stringToInt(Aurora::NWScript::FunctionContext &ctx)
void intToString(Aurora::NWScript::FunctionContext &ctx)
void getSubString(Aurora::NWScript::FunctionContext &ctx)
const TwoDARow & getRow(size_t row) const
Get a row.
size_t size() const
Return the size of the string, in characters.
The global talk manager for Aurora strings.
void printFloat(Aurora::NWScript::FunctionContext &ctx)
Coordinated Universal Time (UTC).
Common::UString & getString()
void status(const char *s,...)
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
An object in a Neverwinter Nights 2 area.
void printInteger(Aurora::NWScript::FunctionContext &ctx)
void insertString(Aurora::NWScript::FunctionContext &ctx)
Manager for tokens in Aurora engines text strings.
void objectToString(Aurora::NWScript::FunctionContext &ctx)
const char * what() const
void getStringLength(Aurora::NWScript::FunctionContext &ctx)
void getStringRight(Aurora::NWScript::FunctionContext &ctx)
NWScript utility functions.
void clear()
Clear the string's contents.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
static Creature * toPC(Aurora::NWScript::Object *object)
static Common::UString formatFloat(float f, int width=18, int decimals=9)
void sendMessageToPC(Aurora::NWScript::FunctionContext &ctx)
void get2DAString(Aurora::NWScript::FunctionContext &ctx)