75 const float value = ctx.
getParams()[0].getFloat();
76 const int width = ctx.
getParams()[1].getInt();
77 const int decimals = ctx.
getParams()[2].getInt();
90 static_cast<void *>(
object));
99 static_cast<void *>(
object));
106 const bool prepend = ctx.
getParams()[1].getInt() != 0;
118 const float value = ctx.
getParams()[0].getFloat();
119 const int width = ctx.
getParams()[1].getInt();
120 const int decimals = ctx.
getParams()[2].getInt();
173 if ((n <= 0) || ((
size_t)n > str.
size())) {
188 if ((n < 0) || ((
size_t)n >= str.
size())) {
220 if ((offset < 0) || ((
size_t)offset >= str.
size()) || (count <= 0)) {
Class to hold the two-dimensional array of a 2DA file.
A container of The Witcher objects.
void writeTimestampedLogEntry(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,...)
void intToString(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.
void getStringByStrRef(Aurora::NWScript::FunctionContext &ctx)
Utility functions for debug output.
void getStringLength(Aurora::NWScript::FunctionContext &ctx)
void stringToFloat(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.
void printVector(Aurora::NWScript::FunctionContext &ctx)
Context of an NWScript function.
"EScripts", engine scripts.
iterator getPosition(size_t n) const
Convert a numerical position into an iterator.
void findSubString(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 stringToInt(Aurora::NWScript::FunctionContext &ctx)
iterator findFirst(uint32 c) const
Utility templates and functions for working with strings and streams.
void printInteger(Aurora::NWScript::FunctionContext &ctx)
const Common::UString & getString(Language language, LanguageGender gender=kLanguageGenderCurrent) const
Get the string of that language.
static Creature * toPC(Aurora::NWScript::Object *object)
void getStringUpperCase(Aurora::NWScript::FunctionContext &ctx)
Exception that provides a stack of explanations.
Utility functions for manipulating date and time.
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
void printFloat(Aurora::NWScript::FunctionContext &ctx)
Basic exceptions to throw.
A creature in a The Witcher 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.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Utility templates and functions.
An object in a The Witcher area.
Handling BioWare's 2DAs (two-dimensional array).
void sendMessageToPC(Aurora::NWScript::FunctionContext &ctx)
const Aurora::LocString & getName() const
Return the object's name.
Types and functions related to language.
void insertString(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 getStringLowerCase(Aurora::NWScript::FunctionContext &ctx)
void warning(const char *s,...)
void getStringRight(Aurora::NWScript::FunctionContext &ctx)
void printString(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.
static Common::UString formatFloat(float f, int width=18, int decimals=9)
The global talk manager for Aurora strings.
Coordinated Universal Time (UTC).
Common::UString & getString()
void get2DAString(Aurora::NWScript::FunctionContext &ctx)
The Witcher engine functions.
void status(const char *s,...)
void floatToString(Aurora::NWScript::FunctionContext &ctx)
void getSubString(Aurora::NWScript::FunctionContext &ctx)
Manager for tokens in Aurora engines text strings.
const char * what() const
void printObject(Aurora::NWScript::FunctionContext &ctx)
NWScript utility functions.
void clear()
Clear the string's contents.
void objectToString(Aurora::NWScript::FunctionContext &ctx)
void getStringLeft(Aurora::NWScript::FunctionContext &ctx)
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
void intToHexString(Aurora::NWScript::FunctionContext &ctx)