37int tech_rmItem(
const char *name,
const char *value );
42int tech_hasItem(
const tech_group_t *tech,
const char *item );
A ship outfit, depends radically on the type.
Group of tech items, basic unit of the tech trees.
void tech_free(void)
Cleans up after the tech stuff.
Ship ** tech_getShipArray(tech_group_t **tech, int num)
Gets the ships from an array of techs.
int tech_load(void)
Loads the tech information.
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.
int tech_groupWrite(xmlTextWriterPtr writer, tech_group_t *grp)
Writes a group in an xml node.
int tech_hasShip(const tech_group_t *tech, const Ship *ship)
Checks to see whether a tech group contains a ship.
int tech_rmItemTech(tech_group_t *tech, const char *value)
Removes an item from a tech.
int tech_hasCommodity(const tech_group_t *tech, const Commodity *comm)
Checks to see whether a tech group contains a commodity.
tech_group_t * tech_groupCreate(void)
Creates a tech group.
int tech_getItemCount(const tech_group_t *tech)
Gets the number of techs within a given group.
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.
tech_group_t * tech_groupCreateXML(xmlNodePtr node)
Creates a tech group from an XML node.
void tech_groupDestroy(tech_group_t *grp)
Frees a tech group.
Commodity ** tech_getCommodityArray(tech_group_t **tech, int num)
Gets the ships from an array of techs.
Ship ** tech_getShip(const tech_group_t *tech)
Gets all of the ships associated to a tech group.
int tech_addItemTech(tech_group_t *tech, const char *value)
Adds an item to a tech.
int tech_addItem(const char *name, const char *value)
Adds an item to a tech.
Outfit ** tech_getOutfitArray(tech_group_t **tech, int num)
Gets the outfits from an array of techs.
Outfit ** tech_getOutfit(const tech_group_t *tech)
Gets all of the outfits associated to a tech group.
char ** tech_getItemNames(const tech_group_t *tech, int *n)
Gets the names of all techs within a given group.
int tech_hasOutfit(const tech_group_t *tech, const Outfit *outfit)
Checks to see whether a tech group contains a outfit.
char ** tech_getAllItemNames(int *n)
Gets the names of all techs.