|
| static unsigned int | mission_genID (void) |
| | Generates a new id for the mission.
|
| static int | mission_init (Mission *mission, const MissionData *misn, int genid, int create, unsigned int *id) |
| | Initializes a mission.
|
| static void | mission_freeData (MissionData *mission) |
| | Frees MissionData.
|
| static int | mission_meetConditionals (const MissionData *misn) |
| static int | mission_meetReq (const MissionData *misn, int faction, const Spob *pnt, const StarSystem *sys) |
| | Checks to see if a mission meets the requirements.
|
| static int | mission_matchFaction (const MissionData *misn, int faction) |
| | Checks to see if a mission matches the faction requirements.
|
| static int | mission_location (const char *loc) |
| | Gets location based on a human readable string.
|
| static int | missions_cmp (const void *a, const void *b) |
| | Ordering function for missions.
|
| static int | mission_parseFile (const char *file, MissionData *temp) |
| | Parses a single mission.
|
| static int | mission_parseXML (MissionData *temp, const xmlNodePtr parent) |
| | Parses a node of a mission.
|
| static int | missions_parseActive (xmlNodePtr parent) |
| | Parses the actual individual mission nodes.
|
| static const char * | mission_markerTarget (const MissionMarker *m) |
| | Gets the name of the mission marker target.
|
| static int | mission_markerLoad (Mission *misn, xmlNodePtr node) |
| | Loads a mission marker from xml.
|
| int | mission_getID (const char *name) |
| | Gets id from mission name.
|
| const MissionData * | mission_get (int id) |
| | Gets a MissionData based on ID.
|
| const MissionData * | mission_getFromName (const char *name) |
| | Gets mission data from a name.
|
| int | mission_accept (Mission *mission) |
| | Small wrapper for misn_run.
|
| const MissionData * | mission_list (void) |
| | Returns all the missions.
|
| int | mission_alreadyRunning (const MissionData *misn) |
| | Checks to see if mission is already running.
|
| void | missions_run (MissionAvailability loc, int faction, const Spob *pnt, const StarSystem *sys) |
| | Runs missions matching location, all Lua side and one-shot.
|
| int | mission_start (const char *name, unsigned int *id) |
| | Starts a mission.
|
| int | mission_test (const char *name) |
| | Tests the conditionals of a mission.
|
| const char * | mission_availabilityStr (MissionAvailability loc) |
| MissionMarkerType | mission_markerTypeSpobToSystem (MissionMarkerType t) |
| MissionMarkerType | mission_markerTypeSystemToSpob (MissionMarkerType t) |
| void | mission_toLuaTable (lua_State *L, const MissionData *m) |
| const char ** | mission_loadFailed (void) |
| void | misn_osdSetHide (Mission *misn, int hide) |
| | Sets the hide state of the mission OSD.
|
| int | misn_osdGetHide (const Mission *misn) |
| void | misn_osdSetPriority (Mission *misn, int priority) |
| int | misn_osdGetPriority (const Mission *misn) |
| int | mission_addMarker (Mission *misn, int id, int objid, MissionMarkerType type) |
| | Adds a system marker to a mission.
|
| void | mission_sysMark (void) |
| | Marks all active systems that need marking.
|
| const StarSystem * | mission_sysComputerMark (const Mission *misn) |
| | Marks the system of the computer mission to reflect where it will head to.
|
| const StarSystem * | mission_getSystemMarker (const Mission *misn) |
| | Gets the first system that has been marked by a mission.
|
| int | mission_linkCargo (Mission *misn, unsigned int cargo_id) |
| | Links cargo to the mission for posterior cleanup.
|
| int | mission_unlinkCargo (Mission *misn, unsigned int cargo_id) |
| | Unlinks cargo from the mission, removes it from the player.
|
| void | mission_cleanup (Mission *misn) |
| | Cleans up a mission.
|
| void | mission_shift (int pos) |
| | Puts the specified mission at the end of the player_missions array.
|
| void | missions_activateClaims (void) |
| | Activates mission claims.
|
| int | mission_compare (const void *arg1, const void *arg2) |
| | Compares to missions to see which has more priority.
|
| Mission * | missions_genList (int faction, const Spob *pnt, const StarSystem *sys, MissionAvailability loc) |
| | Generates a mission list. This runs create() so won't work with all missions.
|
| int | missions_load (void) |
| | Loads all the mission data.
|
| void | missions_free (void) |
| | Frees all the mission data.
|
| void | missions_cleanup (void) |
| | Cleans up all the player's active missions.
|
| int | missions_saveActive (xmlTextWriterPtr writer) |
| | Saves the player's active missions.
|
| int | missions_saveTempCommodity (xmlTextWriterPtr writer, const Commodity *c) |
| | Saves a temporary commodity's defintion into the current node.
|
| int | missions_loadCommodity (xmlNodePtr parent) |
| | Loads the player's special mission commodities.
|
| Commodity * | missions_loadTempCommodity (xmlNodePtr cur) |
| | Loads a temporary commodity.
|
| int | missions_loadActive (xmlNodePtr parent) |
| | Loads the player's active missions from a save.
|
| int | mission_reload (const char *name) |
Handles missions.
Definition in file mission.c.