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