1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
Economy
These definations pertain to economy specific to the
ShipWars server.
See `objects.h' for economy unit type and structure
definations.
*/
#ifndef ECO_H
#define ECO_H
/*
* Economy product names:
*
* (Case is not sensitive in matching)
*/
#define ECO_PROD_NAME_ANTIMATTER "Antimatter"
#define ECO_PROD_NAME_REPAIRHULL "Hull Repair"
#define ECO_PROD_NAME_RMU "Raw Material"
#define ECO_PROD_NAME_OPMPFX "$OPM"
/*
* Economy flags:
*/
#define ECO_FLAG_OPEN (1 << 0) /* Opened for business
* (should always be true).
*/
#define ECO_FLAG_BUY_OK (1 << 1) /* Can buy from me. */
#define ECO_FLAG_SELL_OK (1 << 2) /* Can sell to me. */
#define ECO_FLAG_TRADE_OK (1 << 3) /* Can trade with me. */
#define ECO_FLAG_INTRODUCE_OK (1 << 4) /* Create from thin air. */
#define ECO_FLAG_NAME_OPEN "OPEN"
#define ECO_FLAG_NAME_BUY_OK "BUY_OK"
#define ECO_FLAG_NAME_SELL_OK "SELL_OK"
#define ECO_FLAG_NAME_TRADE_OK "TRADE_OK"
#define ECO_FLAG_NAME_INTRODUCE_OK "INTRODUCE_OK"
/*
* Economy maximums:
*/
#define ECO_PRODUCTS_MAX 32
#define ECO_PRODUCT_NAME_MAX 81
/*
* Maximum transaction range (in XSW Real units):
*/
#define ECO_MAX_TRANSACTION_RANGE 1.0
/*
* Economy flags mask type:
*/
typedef unsigned long eco_flags_t;
#endif /* ECO_H */
|