|
| static int | ship_loadPLG (Ship *temp, const char *buf) |
| | Loads the collision polygon for a ship.
|
| static int | ship_parse (Ship *temp, const char *filename, int firstpass) |
| | Extracts the in-game ship from an XML node.
|
| static int | ship_parseThread (void *ptr) |
| | Wrapper for threaded loading.
|
| static void | ship_freeSlot (ShipOutfitSlot *s) |
| static void | ship_renderFramebuffer3D (const Ship *s, GLuint fbo, double size, double fw, double fh, double engine_glow, double t, const glColour *c, const Lighting *L, const mat4 *H, int blit, unsigned int flags) |
| | Renders a 3D ship to a framebuffer.
|
| static int | ship_cmp (const void *p1, const void *p2) |
| | Compares two ship pointers for qsort.
|
| const Ship * | ship_get (const char *name) |
| | Gets a ship based on its name.
|
| const Ship * | ship_getW (const char *name) |
| | Gets a ship based on its name without warning.
|
| const char * | ship_existsCase (const char *name) |
| | Checks to see if an ship exists matching name (case insensitive).
|
| const Ship * | ship_getAll (void) |
| | Gets the array (array.h) of all ships.
|
| int | ship_compareTech (const void *arg1, const void *arg2) |
| | Comparison function for qsort().
|
| 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.
|
| const char * | ship_classToString (ShipClass class) |
| | Gets the ship class name in human readable form.
|
| ShipClass | ship_classFromString (const char *str) |
| | Gets the machine ship class identifier from a human readable string.
|
| 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.
|
| void | ship_renderGfxStore (GLuint fbo, const Ship *s, int size, double dir, double updown, double glow) |
| glTexture * | ship_gfxStore (const Ship *s, int size, double dir, double updown, double glow) |
| | Get the store gfx.
|
| glTexture * | ship_gfxComm (const Ship *s, int size, double tilt, double dir, const Lighting *Lscene) |
| | Loads the ship's comm graphic.
|
| int | ship_gfxAnimated (const Ship *s) |
| | Returns whether or not the ship has animated graphics.
|
| int | ship_size (const Ship *s) |
| | Gets the size of the ship.
|
| static int | ship_loadSpaceImage (Ship *temp, const char *str, int sx, int sy) |
| | Loads the space graphics for a ship from an image.
|
| static int | ship_loadEngineImage (Ship *temp, const char *str, int sx, int sy) |
| | Loads the space graphics for a ship from an image.
|
| int | ship_gfxLoaded (const Ship *s) |
| | Checks to see if a ship has loaded graphics.
|
| int | ship_gfxLoadNeeded (void) |
| | Tries to load the graphics for all ships that need it.
|
| int | ship_gfxLoad (Ship *s) |
| | Loads the graphics for a ship if necessary.
|
| static int | ship_parseSlot (Ship *temp, ShipOutfitSlot *slot, OutfitSlotType type, xmlNodePtr node) |
| | Parses a slot for a ship.
|
| void | ship_renderFramebuffer (const Ship *s, GLuint fbo, double fw, double fh, double dir, double engine_glow, double tilt, double r, int sx, int sy, const glColour *c, const Lighting *L) |
| | Renders a ship to a framebuffer.
|
| int | ships_load (void) |
| | Loads all the ships in the data files.
|
| void | ships_resize (void) |
| void | ships_free (void) |
| | Frees all the ships.
|
| double | ship_maxSize (void) |
| | Gets the maximum size of a ship.
|
Handles the ship details.
Definition in file ship.c.