|
| static int | faction_getRaw (const char *name) |
| | Gets a faction ID by name. More...
|
| |
| static void | faction_freeOne (Faction *f) |
| | Frees a single faction. More...
|
| |
| static void | faction_sanitizePlayer (Faction *faction) |
| | Sanitizes player faction standing. More...
|
| |
| static void | faction_modPlayerLua (int f, double mod, const char *source, int secondary) |
| | Mods player using the power of Lua. More...
|
| |
| static int | faction_parse (Faction *temp, const char *file) |
| | Parses a single faction, but doesn't set the allies/enemies bit. More...
|
| |
| static int | faction_parseSocial (const char *file) |
| | Parses the social tidbits of a faction: allies and enemies. More...
|
| |
| static void | faction_addStandingScript (Faction *temp, const char *scriptname) |
| | Sets up a standing script for a faction. More...
|
| |
| static void | faction_computeGrid (void) |
| | Computes the faction relationship grid. More...
|
| |
| int | pfaction_save (xmlTextWriterPtr writer) |
| | Saves player's standings with the factions. More...
|
| |
| int | pfaction_load (xmlNodePtr parent) |
| | Loads the player's faction standings. More...
|
| |
| static int | faction_cmp (const void *p1, const void *p2) |
| |
| int | faction_exists (const char *name) |
| | Checks to see if a faction exists by name. More...
|
| |
| int | faction_get (const char *name) |
| | Gets a faction ID by name. More...
|
| |
| int * | faction_getAll (void) |
| | Returns all faction IDs in an array (array.h). More...
|
| |
| int * | faction_getAllVisible (void) |
| | Returns all non-invisible faction IDs in an array (array.h). More...
|
| |
| int * | faction_getKnown () |
| | Gets all the known factions in an array (array.h). More...
|
| |
| void | faction_clearKnown () |
| | Clears the known factions. More...
|
| |
| int | faction_isStatic (int id) |
| | Is the faction static? More...
|
| |
| int | faction_isInvisible (int id) |
| | Is the faction invisible? More...
|
| |
| int | faction_setInvisible (int id, int state) |
| | Sets the faction's invisible state. More...
|
| |
| int | faction_isKnown (int id) |
| | Is the faction known? More...
|
| |
| int | faction_isDynamic (int id) |
| | Is faction dynamic. More...
|
| |
| int | faction_setKnown (int id, int state) |
| | Sets the factions known state. More...
|
| |
| const char * | faction_name (int f) |
| | Gets a factions "real" (internal) name. More...
|
| |
| const char * | faction_shortname (int f) |
| | Gets a factions short name (human-readable). More...
|
| |
| const char * | faction_longname (int f) |
| | Gets the faction's long name (formal, human-readable). More...
|
| |
| const char * | faction_mapname (int f) |
| | Gets the faction's map name (translated). More...
|
| |
| const char * | faction_description (int f) |
| | Gets the faction's description (translated). More...
|
| |
| const char * | faction_default_ai (int f) |
| | Gets the name of the default AI profile for the faction's pilots. More...
|
| |
| const char ** | faction_tags (int f) |
| | Gets the tags the faction has. More...
|
| |
| double | faction_lane_length_per_presence (int f) |
| | Gets the faction's weight for patrolled safe-lane construction (0 means they don't build lanes). More...
|
| |
| double | faction_lane_base_cost (int f) |
| | Gets the faction's weight for patrolled safe-lane construction;. More...
|
| |
| const glTexture * | faction_logo (int f) |
| | Gets the faction's logo (ideally 256x256). More...
|
| |
| const glColour * | faction_colour (int f) |
| | Gets the colour of the faction. More...
|
| |
| const int * | faction_getEnemies (int f) |
| | Gets the list of enemies of a faction. More...
|
| |
| const int * | faction_getAllies (int f) |
| | Gets the list of allies of a faction. More...
|
| |
| void | faction_clearEnemy (int f) |
| | Clears all the enemies of a dynamic faction. More...
|
| |
| void | faction_addEnemy (int f, int o) |
| | Adds an enemy to the faction's enemies list. More...
|
| |
| void | faction_rmEnemy (int f, int o) |
| | Removes an enemy from the faction's enemies list. More...
|
| |
| void | faction_clearAlly (int f) |
| | Clears all the ally of a dynamic faction. More...
|
| |
| void | faction_addAlly (int f, int o) |
| | Adds an ally to the faction's allies list. More...
|
| |
| void | faction_rmAlly (int f, int o) |
| | Removes an ally from the faction's allies list. More...
|
| |
| nlua_env | faction_getScheduler (int f) |
| | Gets the state associated to the faction scheduler. More...
|
| |
| nlua_env | faction_getEquipper (int f) |
| | Gets the equipper state associated to the faction scheduler. More...
|
| |
| void | faction_modPlayer (int f, double mod, const char *source) |
| | Modifies the player's standing with a faction. More...
|
| |
| void | faction_modPlayerSingle (int f, double mod, const char *source) |
| | Modifies the player's standing without affecting others. More...
|
| |
| void | faction_modPlayerRaw (int f, double mod) |
| | Modifies the player's standing without affecting others. More...
|
| |
| void | faction_setPlayer (int f, double value) |
| | Sets the player's standing with a faction. More...
|
| |
| double | faction_getPlayer (int f) |
| | Gets the player's standing with a faction. More...
|
| |
| double | faction_getPlayerDef (int f) |
| | Gets the player's default standing with a faction. More...
|
| |
| int | faction_isPlayerFriend (int f) |
| | Gets whether or not the player is a friend of the faction. More...
|
| |
| int | faction_isPlayerEnemy (int f) |
| | Gets whether or not the player is an enemy of the faction. More...
|
| |
| const glColour * | faction_getColour (int f) |
| | Gets the colour of the faction based on it's standing with the player. More...
|
| |
| char | faction_getColourChar (int f) |
| | Gets the faction character associated to its standing with the player. More...
|
| |
| const char * | faction_getStandingText (int f) |
| | Gets the player's standing in human readable form. More...
|
| |
| const char * | faction_getStandingBroad (int f, int bribed, int override) |
| | Gets the broad faction standing. More...
|
| |
| double | faction_reputationMax (int f) |
| | Gets the maximum reputation of a faction. More...
|
| |
| int | areEnemies (int a, int b) |
| | Checks whether two factions are enemies. More...
|
| |
| int | areAllies (int a, int b) |
| | Checks whether two factions are allies or not. More...
|
| |
| int | faction_isFaction (int f) |
| | Checks whether or not a faction is valid. More...
|
| |
| void | factions_reset (void) |
| | Resets player standing and flags of factions to default. More...
|
| |
| int | factions_load (void) |
| | Loads up all the factions from the data file. More...
|
| |
| void | factions_free (void) |
| | Frees the factions. More...
|
| |
| int * | faction_getGroup (int which) |
| | Returns an array of faction ids. More...
|
| |
| int | faction_usesHiddenJumps (int f) |
| | Checks to see if a faction uses hidden jumps. More...
|
| |
| const FactionGenerator * | faction_generators (int f) |
| | Gets the faction's generators. More...
|
| |
| void | factions_clearDynamic (void) |
| | Clears dynamic factions. More...
|
| |
| int | faction_dynAdd (int base, const char *name, const char *display, const char *ai, const glColour *colour) |
| | Dynamically add a faction. More...
|
| |
Handles the Naev factions.
Definition in file faction.c.