Functions | |
int | FindStringInArray (array a_arr, string a_str) |
int | FindStringInTable (table a_t, string a_str) |
int | FindStringInDynArray (dynarray a_arr, string a_str) |
int | GetRandomSpeaker (int raceid) |
string | GetRandomNameFromSpeaker (int speaker) |
string | GetIDCode (GALOBJ gobj) |
string | GetClassCode (GALOBJ gobj) |
GALOBJ | GetObjectSector (GALOBJ a_obj) |
string | GetObjectName (GALOBJ gobj) |
string | GetWareName (int maintype, int subtype) |
int | GetFixedValueFactor (int maintype) |
int | STypeToGType (int stypecode) |
int | WareTypeVolume (int maintype, int subtype) |
int | WareTypePriceAverage (int maintype, int subtype) |
int | WareTypePriceVariationPri (int maintype, int subtype, int a_price) |
int | WareTypePriceVariationSec (int maintype, int subtype, int a_price) |
int | WareTypePrice (int a_bestnum, int a_avgprice, int a_variation, int a_curnum) |
int | WareTypeMaxPrice (int maintype, int subtype) |
int | WareTypeMinPrice (int maintype, int subtype) |
int | WareTypeMaxPriceSec (int maintype, int subtype) |
int | WareTypeMinPriceSec (int maintype, int subtype) |
int | BestMissileForTarget (GALOBJ a_gTarget) |
BOOL | WareTypeIsIllegalForRace (int maintype, int subtype, int a_raceid) |
BOOL | CheckWareTableForIllegalWares (table a_tWares, int a_raceid) |
void | UpdateTradeRankingsFromDeal (GALOBJ a_actor, GALOBJ a_partner, int a_ware, int a_price, int a_amount) |
|
returns a sector-missiletype. |
|
returns whether a ware is illegal in the table. |
|
find a string by name in an array. returns the index if found. if not found, returns -1 |
|
find a string by name in an dynarray. returns the index if found. if not found, returns -1 |
|
find a string by name in a table. the string is the value. returns the key if found. if not found, returns 0 |
|
Returns a string of two characters determining the class of the galaxy object (like DO for a space dock and M1 for an M1 carrier). |
|
Returns value factor for given maintype |
|
Returns an alphanumeric ID code string of a galaxy object (like TM3EA-12 for a Teladi M3 ship). |
|
Returns the name of any galaxy object, which can be a ship, station, sector or even a race. |
|
Returns the sector an object is in. |
|
Returns a rnd. name from a given speaker ID. |
|
Returns an ID of a random speaker of a given race. |
|
Returns string with warename. |
|
Cast sector-type (as typecode) in galaxy-type |
|
a_mount > 0 : buy, a_amount < 0: sell |
|
returns if a ware is illegal amongst a race. |
|
returns max price of ware. |
|
returns max price of ware. |
|
returns min price of ware. |
|
returns min price of ware. |
|
returns price of ware. |
|
returns average price of ware |
|
returns variation of ware. |
|
returns variation of ware. |
|
returns vol. of ware. NOTE: a ware has always a minimum volume of 1 |