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(
"NWN: %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())
262 TokenMan.set(tokenName, tokenValue);
Class to hold the two-dimensional array of a 2DA file.
void printFloat(Aurora::NWScript::FunctionContext &ctx)
void getStringRight(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.
A container of Neverwinter Nights objects.
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,...)
void printString(Aurora::NWScript::FunctionContext &ctx)
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.
const Common::UString & getName() const
Return the object's name.
static Common::UString formatFloat(float f, int width=18, int decimals=9)
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.
void printInteger(Aurora::NWScript::FunctionContext &ctx)
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 getStringUpperCase(Aurora::NWScript::FunctionContext &ctx)
void getStringLeft(Aurora::NWScript::FunctionContext &ctx)
iterator findFirst(uint32 c) const
Utility templates and functions for working with strings and streams.
Exception that provides a stack of explanations.
Utility functions for manipulating date and time.
void getStringLength(Aurora::NWScript::FunctionContext &ctx)
void stringToInt(Aurora::NWScript::FunctionContext &ctx)
Basic exceptions to throw.
UString substr(iterator from, iterator to) const
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
utf8::iterator< std::string::const_iterator > iterator
const char * c_str() const
Return the (utf8 encoded) string data.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
void getStringByStrRef(Aurora::NWScript::FunctionContext &ctx)
Handling BioWare's 2DAs (two-dimensional array).
void stringToFloat(Aurora::NWScript::FunctionContext &ctx)
static Creature * toPC(Aurora::NWScript::Object *object)
void printVector(Aurora::NWScript::FunctionContext &ctx)
Types and functions related to language.
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
const Common::UString & getName() const
void intToHexString(Aurora::NWScript::FunctionContext &ctx)
void writeTimestampedLogEntry(Aurora::NWScript::FunctionContext &ctx)
void warning(const char *s,...)
void get2DAString(Aurora::NWScript::FunctionContext &ctx)
An object in a Neverwinter Nights area.
const TwoDARow & getRow(size_t row) const
Get a row.
void floatToString(Aurora::NWScript::FunctionContext &ctx)
size_t size() const
Return the size of the string, in characters.
The global talk manager for Aurora strings.
A creature in a Neverwinter Nights area.
Coordinated Universal Time (UTC).
Common::UString & getString()
void status(const char *s,...)
void setCustomToken(Aurora::NWScript::FunctionContext &ctx)
void intToString(Aurora::NWScript::FunctionContext &ctx)
void getStringLowerCase(Aurora::NWScript::FunctionContext &ctx)
Manager for tokens in Aurora engines text strings.
const char * what() const
void insertString(Aurora::NWScript::FunctionContext &ctx)
void sendMessageToPC(Aurora::NWScript::FunctionContext &ctx)
void objectToString(Aurora::NWScript::FunctionContext &ctx)
void findSubString(Aurora::NWScript::FunctionContext &ctx)
void getSubString(Aurora::NWScript::FunctionContext &ctx)
NWScript utility functions.
void clear()
Clear the string's contents.
Neverwinter Nights engine functions.
#define TokenMan
Shortcut for accessing the token manager.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
void printObject(Aurora::NWScript::FunctionContext &ctx)