17#define SHIP_TARGET_W 128
18#define SHIP_TARGET_H 128
21#define SHIP_NOPLAYER (1<<0)
22#define SHIP_NOESCORT (1<<1)
23#define SHIP_UNIQUE (1<<2)
24#define ship_isFlag(s,f) ((s)->flags & (f))
25#define ship_setFlag(s,f) ((s)->flags |= (f))
26#define ship_rmFlag(s,f) ((s)->flags &= ~(f))
36typedef enum ShipClass_ {
42 SHIP_CLASS_ARMOURED_TRANSPORT,
43 SHIP_CLASS_BULK_FREIGHTER,
46 SHIP_CLASS_INTERCEPTOR,
52 SHIP_CLASS_BATTLESHIP,
61typedef struct ShipMount_ {
70typedef struct ShipOutfitSlot_ {
83typedef struct ShipTrailEmitter_ {
int ship_size(const Ship *s)
Gets the size of the ship.
ShipClass ship_classFromString(const char *str)
Gets the machine ship class identifier from a human readable string.
const char * ship_class(const Ship *s)
Gets the ship's class name in human readable form.
const char * ship_classDisplay(const Ship *s)
Gets the ship's display class in human readable form.
credits_t ship_basePrice(const Ship *s)
Gets the ship's base price (no outfits).
credits_t ship_buyPrice(const Ship *s)
The ship buy price, includes default outfits.
const Ship * ship_getW(const char *name)
Gets a ship based on its name without warning.
int ships_load(void)
Loads all the ships in the data files.
const Ship * ship_getAll(void)
Gets the array (array.h) of all ships.
void ships_free(void)
Frees all the ships.
int ship_compareTech(const void *arg1, const void *arg2)
Comparison function for qsort().
const char * ship_classToString(ShipClass class)
Gets the ship class name in human readable form.
glTexture * ship_loadCommGFX(const Ship *s)
Loads the ship's comm graphic.
const Ship * ship_get(const char *name)
Gets a ship based on its name.
const char * ship_existsCase(const char *name)
Checks to see if an ship exists matching name (case insensitive).
Represents a polygon used for collision detection.
Pilot slot that can contain outfits.
A ship outfit, depends radically on the type.
Represents a ship weapon mount point.
Represents relative ship statistics as a linked list.
Represents ship statistics, properties ship can use.
const TrailSpec * trail_spec
unsigned int always_under
ShipOutfitSlot * outfit_utility
Outfit const ** outfit_intrinsic
ShipOutfitSlot * outfit_weapon
ShipTrailEmitter * trail_emitters
glTexture ** gfx_overlays
ShipOutfitSlot * outfit_structure
represents a set of styles for trails.
Abstraction for rendering sprite sheets.