Handles tech groups and metagroups for populating the spob outfitter, shipyard and commodity exchange.
More...
|
| static void | tech_createMetaGroup (tech_group_t *grp, tech_group_t **tech, int num) |
| | Creates a meta-tech group pointing only to other groups.
|
| static void | tech_freeGroup (tech_group_t *grp) |
| | Cleans up a tech group.
|
| static char * | tech_getItemName (tech_item_t *item) |
| | Gets an item's name.
|
| static tech_item_t * | tech_itemGrow (tech_group_t *grp) |
| | Adds an item to a tech.
|
| static int | tech_parseFile (tech_group_t *tech, const char *file) |
| | Parses an XML tech node.
|
| static int | tech_parseFileData (tech_group_t *tech) |
| | Parses an XML tech node.
|
| static int | tech_parseXMLData (tech_group_t *tech, xmlNodePtr parent) |
| | Parses an XML tech node.
|
| static tech_item_t * | tech_addItemOutfit (tech_group_t *grp, const char *name) |
| static tech_item_t * | tech_addItemShip (tech_group_t *grp, const char *name) |
| | Loads a group item pertaining to a outfit.
|
| static tech_item_t * | tech_addItemCommodity (tech_group_t *grp, const char *name) |
| | Loads a group item pertaining to a outfit.
|
| static tech_item_t * | tech_addItemTechInternal (tech_group_t *tech, const char *value) |
| static int | tech_getID (const char *name) |
| | Gets the ID of a tech.
|
| static int | tech_addItemGroupPointer (tech_group_t *grp, const tech_group_t *ptr) |
| | Adds a group pointer to a group.
|
| static tech_item_t * | tech_addItemGroup (tech_group_t *grp, const char *name) |
| | Loads a group item pertaining to a group.
|
| static void ** | tech_addGroupItem (void **items, tech_item_type_t type, const tech_group_t *tech) |
| | Recursive function for creating an array of commodities from a tech group.
|
| static int | tech_cmp (const void *p1, const void *p2) |
| int | tech_load (void) |
| | Loads the tech information.
|
| void | tech_free (void) |
| | Cleans up after the tech stuff.
|
| tech_group_t * | tech_groupCreateXML (xmlNodePtr node) |
| | Creates a tech group from an XML node.
|
| tech_group_t * | tech_groupCreate (void) |
| | Creates a tech group.
|
| void | tech_groupDestroy (tech_group_t *grp) |
| | Frees a tech group.
|
| int | tech_groupWrite (xmlTextWriterPtr writer, tech_group_t *grp) |
| | Writes a group in an xml node.
|
| int | tech_addItem (const char *name, const char *value) |
| | Adds an item to a tech.
|
| int | tech_addItemTech (tech_group_t *tech, const char *value) |
| | Adds an item to a tech.
|
| int | tech_rmItemTech (tech_group_t *tech, const char *value) |
| | Removes an item from a tech.
|
| int | tech_rmItem (const char *name, const char *value) |
| | Removes a tech item.
|
| int | tech_hasItem (const tech_group_t *tech, const char *item) |
| | Checks whether a given tech group has the specified item.
|
| static int | tech_hasItemInternal (const tech_group_t *tech, const tech_item_t *item) |
| int | tech_hasShip (const tech_group_t *tech, const Ship *ship) |
| | Checks to see whether a tech group contains a ship.
|
| int | tech_hasOutfit (const tech_group_t *tech, const Outfit *outfit) |
| | Checks to see whether a tech group contains a outfit.
|
| int | tech_hasCommodity (const tech_group_t *tech, const Commodity *comm) |
| | Checks to see whether a tech group contains a commodity.
|
| int | tech_getItemCount (const tech_group_t *tech) |
| | Gets the number of techs within a given group.
|
| char ** | tech_getItemNames (const tech_group_t *tech, int *n) |
| | Gets the names of all techs within a given group.
|
| char ** | tech_getAllItemNames (int *n) |
| | Gets the names of all techs.
|
| Outfit ** | tech_getOutfit (const tech_group_t *tech) |
| | Gets all of the outfits associated to a tech group.
|
| Outfit ** | tech_getOutfitArray (tech_group_t **tech, int num) |
| | Gets the outfits from an array of techs.
|
| Ship ** | tech_getShip (const tech_group_t *tech) |
| | Gets all of the ships associated to a tech group.
|
| Ship ** | tech_getShipArray (tech_group_t **tech, int num) |
| | Gets the ships from an array of techs.
|
| Commodity ** | tech_getCommodityArray (tech_group_t **tech, int num) |
| | Gets the ships from an array of techs.
|
| Commodity ** | tech_getCommodity (const tech_group_t *tech) |
| | Gets all of the ships associated to a tech group.
|
| int | tech_checkOutfit (const tech_group_t *tech, const Outfit *o) |
| | Checks to see if there is an outfit in the tech group.
|
Handles tech groups and metagroups for populating the spob outfitter, shipyard and commodity exchange.
Definition in file tech.c.