Strings | |
int | SE_StringLen (string str) |
int | SE_StringReadChar (string str, int index) |
void | SE_StringWriteChar (string str, int ch, int index) |
int | SE_StringStr (string str, string matchstr) |
string | SE_StringSub (string str, int index,...) |
int | SE_StringToInt (string str) |
array | SE_StringSplit (string str, string sep) |
string | SE_StringSubst (string str, string str1, string str2) |
string | SE_SPrintf (string fmt,...) |
string | SE_VSPrintf (string fmt, array args) |
int | SE_strcmp (string str1, string str2) |
int | SE_stricmp (string str1, string str2) |
string | SE_TimeString (string format,...) |
Arrays | |
array | SE_ArrayAlloc (int size) |
int | SE_ArraySize (array arr) |
vartype | SE_ArrayRead (array arr, int index) |
void | SE_ArrayWrite (array arr, int index, vartype element) |
void | SE_ArrayCopy (array dst, int dstidx, array src, int startidx, int endidx) |
array | SE_ArrayClone (array src) |
array | SE_ArraySubClone (array src, int startidx, int endidx) |
void | SE_ArrayInsert (array arr, int idx, vartype element) |
void | SE_ArrayAppend (array arr, vartype element) |
void | SE_ArrayRemove (array arr, int idx) |
void | SE_ArrayResize (array arr, int newsize) |
Tables | |
table | SE_TableAlloc () |
int | SE_TableSize (table t) |
int | SE_TableNew (table t, vartype value) |
BOOL | SE_TableAdd (table t, vartype key,...) |
int | SE_TableFind (table t, vartype key) |
BOOL | SE_TableExists (table t, vartype key) |
vartype | SE_TableNext (table t,...) |
vartype | SE_TableRemove (table t, vartype key) |
array | SE_TableKeys (table t) |
array | SE_TableData (table t) |
TextDB | |
string | SE_ReadText (int textpage, int textid) |
string | SE_ExistsText (int textpage, int textid) |
Tasks | |
int | SE_GetTaskID () |
void | SE_KillTask (int taskid) |
Objects and Datatypes | |
BOOL | SE_ObjectExists (GALOBJ obj) |
BOOL | SE_ObjectFunctionExists (GALOBJ obj, string fname) |
int | SE_GetExprType (...) |
Math | |
int | SE_LinFunc (int x1, int x2, int y1, int y2, int x) |
int | SE_LogFunc (int x, int x1, int x2, int y1, int y2) |
int | SE_LinFuncSum (int x1, int x2, int y1, int y2, int v1, int v2) |
int | SE_CubicPoly (int x0, int y0, int xd, int yd, int xt, int yt, int x) |
int | SE_GGT (...) |
int | SE_KGV (...) |
int | SE_Distance3 (int dx, int dy, int dz) |
FIXED | SE_MulFix (FIXED x1, FIXED x2) |
FIXED | SE_DivFix (FIXED x1, FIXED x2) |
FIXED | SE_MulDivFix (FIXED x1, FIXED x2, FIXED x3) |
int | SE_Sqrt (int x) |
int | SE_Random (int range) |
Story Debugging | |
int | SE_DMprintf (int debugmask, string fmt,...) |
int | SE_Dprintf (string fmt,...) |
|
Allocates an array with all elements initialized to 0. Since the arrays are dynamic, size can be zero.
|
|
Adds element to the end of the array.
|
|
Clones the array src and returns the newly allocated array.
|
|
Copies the array src from startidx to endidx to the array dst at position dstidx.
|
|
Inserts the element into arr at position idx and shifts up all elements above it.
|
|
Reads an element from the array (use [] syntax instead!).
|
|
Removes an element at the index idx and shifts down all elements above it.
|
|
Sets the size of the array to newsize.
|
|
Returns size of array (number of elements).
|
|
Returns a newly allocated array from an excerpt of src from startidx to endidx.
|
|
Writes an element to the array (use [] syntax instead!).
|
|
Compute y between two extremes y0 - yd and y0 + yd for x between x0 - xd and x0 + xd, with the tanget of slope yt / xt at x0.<BR> y = y0 - yd for x < x0 - xd |
|
Gets length of a 3D vector.
|
|
Divide two fixed (16.16) values.
|
|
Prints a debug message to the debug output. The message is printed if (debugmask & debugflags) == debugmask. |
|
Prints an important debug message. This should be only used for real errors.
|
|
Same as SE_ReadText(), but does not ring an alarm if the string does not exist.
|
|
Returns the datatype of the given expression. Possible values:
|
|
Returns ID of current task.
|
|
Returns the greatest common divisor of all given numbers.
|
|
Returns the least common multiple of all given numbers.
|
|
Kills task with given ID.
|
|
Linear interpolation between two points (x1, y1) and (x2, y2), according to this formula:
|
|
Sum of SE_LinFunc().
|
|
Similar to SE_LinFunc(), but logarithmic scaling of the value range. The formula that is computed is:
|
|
Compute x1 * x2 / x3, using intermediate 64 bit precision.
|
|
Multiply two fixed (16.16) values.
|
|
Checks if the galaxy object obj exists.
|
|
Checks if the function named fname exists in obj.
|
|
Returns a random value between 0 and range - 1.
|
|
Returns the text specified by textpage and textid from the loaded TextDB XML file. If the text does not exist, 0 is returned. |
|
Like sprintf in C, accepts all usual format strings.
|
|
Square root.
|
|
Compares two strings like the C function strcmp(). Use the == operator instead.
|
|
Compares two strings (case insensitive) like the C function stricmp().
|
|
Returns the length of a string.
|
|
Reads a character from the string.
|
|
Split a string into an array of partial strings by using a separator string.
|
|
Return index of pattern matchstr in a string.
|
|
Returns a partial string, starting from index and with length len (optional third parameter).
|
|
Substitute all occurences of str1 with str2.
|
|
Converts a number string to an integer.
|
|
Writes a character to the string.
|
|
Adds a new entry to the table with given key. The third parameter (entry) is optional.
|
|
Allocates a table.
|
|
Returns the data of a table as array.
|
|
Check if entry with given key exists in table.
|
|
Finds an entry in table from given key.
|
|
Returns the keys of a table as array.
|
|
Adds a new entry to the table and returns a new key.
|
|
Gets key of next entry. Give the last key as second parameter. If the second parameter is 0 or not specified, the first entry in the table is returned. 0 is returned if there is no further entry. |
|
Removes entry with given key from table and returns value.
|
|
Returns number of entries in table.
|
|
Returns current or given time as a formatted string. Format strings: |
|
Like SE_SPrintf(), but uses an array of arguments.
|