|
| static int | ship_loadGFX (Ship *temp, const char *buf, int sx, int sy, int engine) |
| | Loads the graphics for a ship.
|
| |
| static int | ship_loadPLG (Ship *temp, const char *buf, int size_hint) |
| | Loads the collision polygon for a ship.
|
| |
| static int | ship_parse (Ship *temp, const char *filename) |
| | 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 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.
|
| |
| glTexture * | ship_loadCommGFX (const Ship *s) |
| | Loads the ship's comm graphic.
|
| |
| int | ship_size (const Ship *s) |
| | Gets the size of the ship.
|
| |
| static int | ship_genTargetGFX (Ship *temp, SDL_Surface *surface, int sx, int sy) |
| | Generates a target graphic for a ship.
|
| |
| static int | ship_loadSpaceImage (Ship *temp, char *str, int sx, int sy) |
| | Loads the space graphics for a ship from an image.
|
| |
| static int | ship_loadEngineImage (Ship *temp, char *str, int sx, int sy) |
| | Loads the space graphics for a ship from an image.
|
| |
| static int | ship_parseSlot (Ship *temp, ShipOutfitSlot *slot, OutfitSlotType type, xmlNodePtr node) |
| | Parses a slot for a ship.
|
| |
| int | ships_load (void) |
| | Loads all the ships in the data files.
|
| |
| void | ships_free (void) |
| | Frees all the ships.
|
| |
Handles the ship details.
Definition in file ship.c.