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