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(
"KotOR: %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)) {
A creature in a Star Wars: Knights of the Old Republic area.
void printObject(Aurora::NWScript::FunctionContext &ctx)
void insert(iterator pos, uint32 c)
Insert character c in front of this position.
void sendMessageToPC(Aurora::NWScript::FunctionContext &ctx)
#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 getStringByStrRef(Aurora::NWScript::FunctionContext &ctx)
void insertString(Aurora::NWScript::FunctionContext &ctx)
Utility functions for debug output.
void findSubString(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.
void getStringRight(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.
void intToString(Aurora::NWScript::FunctionContext &ctx)
Exception that provides a stack of explanations.
Utility functions for manipulating date and time.
void printString(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.
static Common::UString formatFloat(float f, int width=18, int decimals=9)
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
const Common::UString & getName() const
Return the object's name.
void getStringUpperCase(Aurora::NWScript::FunctionContext &ctx)
Utility templates and functions.
A container of Star Wars: Knights of the Old Republic objects.
void intToHexString(Aurora::NWScript::FunctionContext &ctx)
Handling BioWare's 2DAs (two-dimensional array).
void objectToString(Aurora::NWScript::FunctionContext &ctx)
Types and functions related to language.
const Common::UString & getName() const
void warning(const char *s,...)
Star Wars: Knights of the Old Republic engine functions.
static Creature * toPC(Aurora::NWScript::Object *object)
void floatToString(Aurora::NWScript::FunctionContext &ctx)
void writeTimestampedLogEntry(Aurora::NWScript::FunctionContext &ctx)
void getStringLength(Aurora::NWScript::FunctionContext &ctx)
void printVector(Aurora::NWScript::FunctionContext &ctx)
size_t size() const
Return the size of the string, in characters.
void stringToFloat(Aurora::NWScript::FunctionContext &ctx)
void getStringLowerCase(Aurora::NWScript::FunctionContext &ctx)
The global talk manager for Aurora strings.
Coordinated Universal Time (UTC).
Common::UString & getString()
void status(const char *s,...)
An object in a Star Wars: Knights of the Old Republic area.
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
void getStringLeft(Aurora::NWScript::FunctionContext &ctx)
void getSubString(Aurora::NWScript::FunctionContext &ctx)
Manager for tokens in Aurora engines text strings.
const char * what() const
void stringToInt(Aurora::NWScript::FunctionContext &ctx)
void printInteger(Aurora::NWScript::FunctionContext &ctx)
void printFloat(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.