|
| static void | player_checkHail (void) |
| | Checks to see if player is still being hailed and clears hail counters if he isn't.
|
| static void | player_newSetup () |
| | Sets up a new player.
|
| static int | player_newMake (void) |
| | Actually creates a new player.
|
| static PlayerShip_t * | player_newShipMake (const char *name) |
| | Actually creates the new ship.
|
| static void | player_initSound (void) |
| | Initializes the player sounds.
|
| static int | player_saveEscorts (xmlTextWriterPtr writer) |
| | Saves the player's escorts.
|
| static int | player_saveShipSlot (xmlTextWriterPtr writer, const PilotOutfitSlot *slot, int i) |
| | Saves an outfit slot.
|
| static int | player_saveShip (xmlTextWriterPtr writer, PlayerShip_t *pship) |
| | Saves a ship.
|
| static int | player_saveMetadata (xmlTextWriterPtr writer) |
| | Saves the player meta-data.
|
| static Spob * | player_parse (xmlNodePtr parent) |
| | Parses the player node.
|
| static int | player_parseDoneMissions (xmlNodePtr parent) |
| | Parses player's done missions.
|
| static int | player_parseDoneEvents (xmlNodePtr parent) |
| | Parses player's done missions.
|
| static int | player_parseLicenses (xmlNodePtr parent) |
| | Parses player's licenses.
|
| static int | player_parseInventory (xmlNodePtr parent) |
| | Parses player's inventory.
|
| static void | player_parseShipSlot (xmlNodePtr node, Pilot *ship, PilotOutfitSlot *slot) |
| | Parses a ship outfit slot.
|
| static int | player_parseShip (xmlNodePtr parent, int is_player) |
| | Parses a player's ship.
|
| static int | player_parseEscorts (xmlNodePtr parent) |
| | Parses the escorts from the escort node.
|
| static int | player_parseMetadata (xmlNodePtr parent) |
| | Parses the player metadata.
|
| static void | player_addOutfitToPilot (Pilot *pilot, const Outfit *outfit, PilotOutfitSlot *s) |
| | Adds outfit to pilot if it can.
|
| static int | player_runUpdaterScript (const char *type, const char *name, int q) |
| | Runs the save updater script, leaving any result on the stack of naevL.
|
| static const Outfit * | player_tryGetOutfit (const char *name, int q) |
| | Tries to get an outfit for the player or looks for equivalents.
|
| static const Ship * | player_tryGetShip (const char *name) |
| | Tries to get an ship for the player or looks for equivalents.
|
| static void | player_tryAddLicense (const char *name) |
| | Tries to get an outfit for the player or looks for equivalents.
|
| static void | player_renderStealthUnderlay (double dt) |
| | Renders the stealth overlay for the player.
|
| static void | player_renderStealthOverlay (double dt) |
| | Renders the stealth overlay for the player.
|
| static void | player_renderAimHelper (double dt) |
| | Renders the aim helper.
|
| static int | player_filterSuitableSpob (Spob *p) |
| | Filter function for space_getRndSpob.
|
| static void | player_spobOutOfRangeMsg (void) |
| | Displays an out of range message for the player's currently selected spob.
|
| static int | player_outfitCompare (const void *arg1, const void *arg2) |
| | qsort() compare function for PlayerOutfit_t sorting.
|
| static int | player_thinkMouseFly (double dt) |
| | Handles mouse flying based on cursor position.
|
| int | player_save (xmlTextWriterPtr writer) |
| | Save the freaking player in a freaking xmlfile.
|
| Spob * | player_load (xmlNodePtr parent) |
| | Loads the player stuff.
|
| int | player_init (void) |
| | Initializes player stuff.
|
| void | player_new (void) |
| | Creates a new player.
|
| PlayerShip_t * | player_newShip (const Ship *ship, const char *def_name, int trade, const char *acquired, int noname) |
| | Creates a new ship for player.
|
| void | player_swapShip (const char *shipname, int move_cargo) |
| | Swaps player's current ship with their ship named shipname.
|
| credits_t | player_shipPrice (const char *shipname, int count_unique) |
| | Calculates the price of one of the player's ships.
|
| void | player_rmPlayerShip (PlayerShip_t *ps) |
| void | player_rmShip (const char *shipname) |
| | Removes one of the player's ships.
|
| void | player_cleanup (void) |
| | Cleans up player stuff like player_stack.
|
| void | player_soundPlayGUI (int sound, int once) |
| | Plays a GUI sound (unaffected by time accel).
|
| void | player_soundPlay (int sound, int once) |
| | Plays a sound at the player.
|
| void | player_soundStop (void) |
| | Stops playing player sounds.
|
| void | player_soundPause (void) |
| | Pauses the ship's sounds.
|
| void | player_soundResume (void) |
| | Resumes the ship's sounds.
|
| void | player_warp (double x, double y) |
| | Warps the player to the new position.
|
| void | player_clear (void) |
| | Clears the targets.
|
| int | player_hasCredits (credits_t amount) |
| | Checks to see if the player has enough credits.
|
| credits_t | player_modCredits (credits_t amount) |
| | Modifies the amount of credits the player has.
|
| void | player_render (double dt) |
| | Renders the player.
|
| void | player_renderUnderlay (double dt) |
| | Renders the player underlay.
|
| void | player_think (Pilot *pplayer, const double dt) |
| | Basically uses keyboard input instead of AI input. Used in pilot.c.
|
| void | player_update (Pilot *pplayer, const double dt) |
| | Player update function.
|
| void | player_updateSpecific (Pilot *pplayer, const double dt) |
| | Does a player specific update.
|
| void | player_weapSetPress (int id, double value, int repeat) |
| | Handles keyboard events involving the player's weapon-set keys. It's valid to call this while gameplay is paused.
|
| void | player_resetSpeed (void) |
| | Resets the player speed stuff.
|
| void | player_restoreControl (int reason, const char *str) |
| | Aborts autonav and other states that take control of the ship.
|
| void | player_targetSpobSet (int id) |
| | Sets the player's target spob.
|
| void | player_targetAsteroidSet (int field, int id) |
| | Sets the player's target asteroid.
|
| void | player_targetSpob (void) |
| | Cycle through spob targets.
|
| int | player_land (int loud) |
| | Try to land or target closest spob if no land target.
|
| void | player_checkLandAck (void) |
| | Revokes landing authorization if the player's reputation is too low.
|
| void | player_nolandMsg (const char *str) |
| | Sets the no land message.
|
| void | player_approach (void) |
| | Logic to make the player approach a target pilot to board or spob to land on.
|
| void | player_targetHyperspaceSet (int id, int nomsg) |
| | Sets the player's hyperspace target.
|
| void | player_targetHyperspace (void) |
| | Gets a hyperspace target.
|
| void | player_hyperspacePreempt (int preempt) |
| | Enables or disables jump points preempting spobs in autoface and target clearing.
|
| int | player_getHypPreempt (void) |
| | Returns whether the jump point target should preempt the spob target.
|
| double | player_dt_default (void) |
| | Returns the player's total default time delta based on time dilation stuff.
|
| void | player_hailStart (void) |
| | Starts the hail sounds and aborts autoNav.
|
| int | player_jump (void) |
| | Actually attempts to jump in hyperspace.
|
| void | player_brokeHyperspace (void) |
| | Player actually broke hyperspace (entering new system).
|
| void | player_accel (double acc) |
| | Start accelerating.
|
| void | player_accelOver (void) |
| | Done accelerating.
|
| void | player_targetSet (unsigned int id) |
| | Sets the player's target.
|
| void | player_targetHostile (void) |
| | Targets the nearest hostile enemy to the player.
|
| void | player_targetNext (int mode) |
| | Cycles to next target.
|
| void | player_targetPrev (int mode) |
| | Cycles to previous target.
|
| void | player_targetClear (void) |
| | Clears the player's ship, spob or hyperspace target, in that order.
|
| void | player_targetClearAll (void) |
| | Clears all player targets: hyperspace, spob, asteroid, etc...
|
| void | player_targetEscort (int prev) |
| | Targets the pilot.
|
| void | player_targetNearest (void) |
| | Player targets nearest pilot.
|
| void | player_screenshot (void) |
| | Takes a screenshot.
|
| void | player_hail (void) |
| | Opens communication with the player's target.
|
| void | player_hailSpob (void) |
| | Opens communication with the player's spob target.
|
| void | player_autohail (void) |
| | Automatically tries to hail a pilot that hailed the player.
|
| void | player_scan (void) |
| void | player_toggleMouseFly (void) |
| | Toggles mouse flying.
|
| void | player_cooldownBrake (void) |
| | Starts braking or active cooldown.
|
| void | player_dead (void) |
| | Player got pwned.
|
| void | player_destroyed (void) |
| | Player blew up in a fireball.
|
| static int | player_shipsCompare (const void *arg1, const void *arg2) |
| | PlayerShip_t compare function for qsort().
|
| void | player_shipsSort (void) |
| | Sorts the players ships.
|
| int | player_ships (char **sships, glTexture **tships) |
| | Returns a buffer with all the player's ships names.
|
| const PlayerShip_t * | player_getShipStack (void) |
| | Gets the array (array.h) of the player's ships.
|
| int | player_nships (void) |
| | Gets the amount of ships player has in storage.
|
| int | player_hasShip (const char *shipname) |
| | Sees if player has a ship of a name.
|
| Pilot * | player_getShip (const char *shipname) |
| | Gets a specific ship.
|
| PlayerShip_t * | player_getPlayerShip (const char *shipname) |
| | Gets a specific ship.
|
| int | player_outfitOwned (const Outfit *o) |
| | Gets how many of the outfit the player owns.
|
| int | player_outfitOwnedTotal (const Outfit *o) |
| const PlayerOutfit_t * | player_getOutfits (void) |
| | Gets an array (array.h) of the player's outfits.
|
| int | player_getOutfitsFiltered (const Outfit ***outfits, int(*filter)(const Outfit *o), const char *name) |
| | Prepares two arrays for displaying in an image array.
|
| int | player_numOutfits (void) |
| | Gets the amount of different outfits in the player outfit stack.
|
| int | player_addOutfit (const Outfit *o, int quantity) |
| | Adds an outfit to the player outfit stack.
|
| int | player_rmOutfit (const Outfit *o, int quantity) |
| | Remove an outfit from the player's outfit stack.
|
| static int | cmp_int (const void *p1, const void *p2) |
| void | player_missionFinished (int id) |
| | Marks a mission as completed.
|
| int | player_missionAlreadyDone (int id) |
| | Checks to see if player has already completed a mission.
|
| int * | player_missionsDoneList (void) |
| | Gets a list of all the missions the player has done.
|
| void | player_eventFinished (int id) |
| | Marks a event as completed.
|
| int | player_eventAlreadyDone (int id) |
| | Checks to see if player has already completed a event.
|
| int * | player_eventsDoneList (void) |
| | Gets a list of all the events the player has done.
|
| int | player_hasLicense (const char *license) |
| | Checks to see if player has license.
|
| void | player_addLicense (const char *license) |
| | Gives the player a license.
|
| const char ** | player_getLicenses () |
| | Gets the array (array.h) of license names in the player's inventory.
|
| void | player_runHooks (void) |
| | Runs hooks for the player.
|
| static void | player_clearEscorts (void) |
| | Clears escorts to make sure deployment is safe.
|
| int | player_addEscorts (void) |
| | Adds the player's escorts.
|
| void | player_stealth (void) |
| | Input binding for toggling stealth for the player.
|