|
| static void | pilot_init (Pilot *pilot, const Ship *ship, const char *name, int faction, const double dir, const vec2 *pos, const vec2 *vel, const PilotFlags flags, unsigned int dockpilot, int dockslot) |
| | Initialize pilot. More...
|
| |
| static void | pilot_hyperspace (Pilot *p, double dt) |
| | Handles pilot's hyperspace states. More...
|
| |
| static void | pilot_refuel (Pilot *p, double dt) |
| | Has the pilot refuel its target. More...
|
| |
| static void | pilot_erase (Pilot *p) |
| | Destroys pilot from stack. More...
|
| |
| static int | pilot_getStackPos (unsigned int id) |
| | Gets the pilot's position in the stack. More...
|
| |
| static void | pilot_init_trails (Pilot *p) |
| | Initialize pilot's trails according to the ship type and current system characteristics. More...
|
| |
| static int | pilot_trail_generated (Pilot *p, int generator) |
| | Return true if the given trail_emitters index has a corresponding generated trail. More...
|
| |
| Pilot *const * | pilot_getAll (void) |
| | Gets the pilot stack. More...
|
| |
| static int | pilot_cmp (const void *ptr1, const void *ptr2) |
| | Compare id (for use with bsearch) More...
|
| |
| unsigned int | pilot_getNextID (unsigned int id, int mode) |
| | Gets the next pilot based on id. More...
|
| |
| unsigned int | pilot_getPrevID (unsigned int id, int mode) |
| | Gets the previous pilot based on ID. More...
|
| |
| int | pilot_validTarget (const Pilot *p, const Pilot *target) |
| | Checks to see if a pilot is a valid target for another pilot. More...
|
| |
| int | pilot_canTarget (const Pilot *p) |
| | Same as pilot_validTarget but without the range check. More...
|
| |
| int | pilot_validEnemy (const Pilot *p, const Pilot *target) |
| | Checks to see if a pilot is a valid enemy for another pilot. More...
|
| |
| int | pilot_validEnemyDist (const Pilot *p, const Pilot *target, double *dist) |
| | Same as pilot_validEnemy, but able to store the distance too. More...
|
| |
| unsigned int | pilot_getNearestEnemy (const Pilot *p) |
| | Gets the nearest enemy to the pilot. More...
|
| |
| unsigned int | pilot_getNearestEnemy_size (const Pilot *p, double target_mass_LB, double target_mass_UB) |
| | Gets the nearest enemy to the pilot closest to the pilot whose mass is between LB and UB. More...
|
| |
| unsigned int | pilot_getNearestEnemy_heuristic (const Pilot *p, double mass_factor, double health_factor, double damage_factor, double range_factor) |
| | Gets the nearest enemy to the pilot closest to the pilot whose mass is between LB and UB. More...
|
| |
| unsigned int | pilot_getNearestPilot (const Pilot *p) |
| | Get the nearest pilot to a pilot. More...
|
| |
| unsigned int | pilot_getBoss (const Pilot *p) |
| | Get the strongest ally in a given range. More...
|
| |
| double | pilot_getNearestPos (const Pilot *p, unsigned int *tp, double x, double y, int disabled) |
| | Get the nearest pilot to a pilot from a certain position. More...
|
| |
| double | pilot_getNearestAng (const Pilot *p, unsigned int *tp, double ang, int disabled) |
| | Get the pilot closest to an angle extending from another pilot. More...
|
| |
| Pilot * | pilot_get (unsigned int id) |
| | Pulls a pilot out of the pilot_stack based on ID. More...
|
| |
| Pilot * | pilot_getTarget (Pilot *p) |
| | Gets the target of a pilot using a fancy caching system. More...
|
| |
| void | pilot_setThrust (Pilot *p, double thrust) |
| | Sets the pilot's thrust. More...
|
| |
| void | pilot_setTurn (Pilot *p, double turn) |
| | Sets the pilot's turn. More...
|
| |
| int | pilot_isHostile (const Pilot *p) |
| | Checks to see if pilot is hostile to the player. More...
|
| |
| int | pilot_isNeutral (const Pilot *p) |
| | Checks to see if pilot is neutral to the player. More...
|
| |
| int | pilot_isFriendly (const Pilot *p) |
| | Checks to see if pilot is friendly to the player. More...
|
| |
| int | pilot_areAllies (const Pilot *p, const Pilot *target) |
| | Like areAllies but for pilots. More...
|
| |
| int | pilot_areEnemies (const Pilot *p, const Pilot *target) |
| | Like areEnemies but for pilots. More...
|
| |
| PilotOutfitSlot * | pilot_getDockSlot (Pilot *p) |
| | Gets the dock slot of the pilot. More...
|
| |
| double | pilot_face (Pilot *p, const double dir) |
| | Tries to turn the pilot to face dir. More...
|
| |
| int | pilot_brake (Pilot *p) |
| | Causes the pilot to turn around and brake. More...
|
| |
| double | pilot_brakeDist (Pilot *p, vec2 *pos) |
| | Gets the braking distance for a pilot. More...
|
| |
| int | pilot_interceptPos (Pilot *p, double x, double y) |
| | Attempts to make the pilot pass through a given point. More...
|
| |
| void | pilot_cooldown (Pilot *p, int dochecks) |
| | Begins active cooldown, reducing hull and outfit temperatures. More...
|
| |
| void | pilot_cooldownEnd (Pilot *p, const char *reason) |
| | Terminates active cooldown. More...
|
| |
| double | pilot_aimAngle (Pilot *p, const vec2 *pos, const vec2 *vel) |
| | Returns the angle for a pilot to aim at another pilot. More...
|
| |
| void | pilot_setHostile (Pilot *p) |
| | Marks pilot as hostile to player. More...
|
| |
| char | pilot_getFactionColourChar (const Pilot *p) |
| | Gets the faction colour char, works like faction_getColourChar but for a pilot. More...
|
| |
| void | pilot_setCommMsg (Pilot *p, const char *s) |
| | Sets the overhead communication message of the pilot. More...
|
| |
| void | pilot_broadcast (Pilot *p, const char *msg, int ignore_int) |
| | Has the pilot broadcast a message. More...
|
| |
| void | pilot_distress (Pilot *p, Pilot *attacker, const char *msg) |
| | Has the pilot broadcast a distress signal. More...
|
| |
| void | pilot_rmHostile (Pilot *p) |
| | Unmarks a pilot as hostile to player. More...
|
| |
| void | pilot_setFriendly (Pilot *p) |
| | Marks pilot as friendly to player. More...
|
| |
| void | pilot_rmFriendly (Pilot *p) |
| | Unmarks a pilot as friendly to player. More...
|
| |
| int | pilot_getJumps (const Pilot *p) |
| | Gets the amount of jumps the pilot has left. More...
|
| |
| const glColour * | pilot_getColour (const Pilot *p) |
| | Gets a pilot's colour. More...
|
| |
| void | pilot_setTarget (Pilot *p, unsigned int id) |
| | Sets the target of the pilot. More...
|
| |
| double | pilot_hit (Pilot *p, const Solid *w, const Pilot *pshooter, const Damage *dmg, const Outfit *outfit, int lua_mem, int reset) |
| | Damages the pilot. More...
|
| |
| void | pilot_updateDisable (Pilot *p, unsigned int shooter) |
| | Handles pilot disabling. Set or unset the disable status depending on health and stress values. More...
|
| |
| void | pilot_dead (Pilot *p, unsigned int killer) |
| | Pilot is dead, now will slowly explode. More...
|
| |
| void | pilot_explode (double x, double y, double radius, const Damage *dmg, const Pilot *parent) |
| | Makes the pilot explosion. More...
|
| |
| void | pilot_renderFramebuffer (Pilot *p, GLuint fbo, double fw, double fh) |
| | Renders a pilot to a framebuffer. More...
|
| |
| void | pilot_render (Pilot *p) |
| | Renders the pilot. More...
|
| |
| void | pilot_renderOverlay (Pilot *p) |
| | Renders the pilot overlay. More...
|
| |
| void | pilot_update (Pilot *pilot, double dt) |
| | Updates the pilot. More...
|
| |
| void | pilot_sample_trails (Pilot *p, int none) |
| | Updates the given pilot's trail emissions. More...
|
| |
| void | pilot_delete (Pilot *p) |
| | Deletes a pilot. More...
|
| |
| void | pilot_hyperspaceAbort (Pilot *p) |
| | Stops the pilot from hyperspacing. More...
|
| |
| int | pilot_refuelStart (Pilot *p) |
| | Attempts to start refueling the pilot's target. More...
|
| |
| ntime_t | pilot_hyperspaceDelay (Pilot *p) |
| | Calculates the hyperspace delay for a pilot. More...
|
| |
| void | pilot_untargetAsteroid (int anchor, int asteroid) |
| | Loops over pilot stack to remove an asteroid as target. More...
|
| |
| int | pilot_numOutfit (const Pilot *p, const Outfit *o) |
| | Checks to see how many of an outfit a pilot has. More...
|
| |
| int | pilot_hasCredits (Pilot *p, credits_t amount) |
| | Checks to see if the pilot has at least a certain amount of credits. More...
|
| |
| credits_t | pilot_modCredits (Pilot *p, credits_t amount) |
| | Modifies the amount of credits the pilot has. More...
|
| |
| void | pilot_reset (Pilot *pilot) |
| | Resets a pilot. More...
|
| |
| unsigned int | pilot_create (const Ship *ship, const char *name, int faction, const char *ai, const double dir, const vec2 *pos, const vec2 *vel, const PilotFlags flags, unsigned int dockpilot, int dockslot) |
| | Creates a new pilot. More...
|
| |
| Pilot * | pilot_createEmpty (const Ship *ship, const char *name, int faction, PilotFlags flags) |
| | Creates a pilot without adding it to the stack. More...
|
| |
| unsigned int | pilot_clone (const Pilot *ref) |
| | Clones an existing pilot. More...
|
| |
| unsigned int | pilot_addStack (Pilot *p) |
| | Adds a pilot to the stack. More...
|
| |
| void | pilot_clearTrails (Pilot *p) |
| | Resets the trails for a pilot. More...
|
| |
| Pilot * | pilot_setPlayer (Pilot *after) |
| | Replaces the player's pilot with an alternate ship with the same ID. More...
|
| |
| void | pilot_choosePoint (vec2 *vp, Spob **spob, JumpPoint **jump, int lf, int ignore_rules, int guerilla) |
| | Finds a spawn point for a pilot. More...
|
| |
| void | pilot_free (Pilot *p) |
| | Frees and cleans up a pilot. More...
|
| |
| void | pilot_stackRemove (Pilot *p) |
| | Tries to remove a pilot from the stack. More...
|
| |
| void | pilots_init (void) |
| | Initializes pilot stuff. More...
|
| |
| void | pilots_free (void) |
| | Frees the pilot stack. More...
|
| |
| void | pilots_clean (int persist) |
| | Cleans up the pilot stack - leaves the player. More...
|
| |
| void | pilots_newSystem (void) |
| | Updates pilot state which depends on the system (sensor range, nebula trails...) More...
|
| |
| void | pilots_clear (void) |
| | Clears all the pilots except the player and clear-exempt pilots. More...
|
| |
| void | pilots_cleanAll (void) |
| | Even cleans up the player. More...
|
| |
| void | pilots_update (double dt) |
| | Updates all the pilots. More...
|
| |
| void | pilots_render (void) |
| | Renders all the pilots. More...
|
| |
| void | pilots_renderOverlay (void) |
| | Renders all the pilots overlays. More...
|
| |
| void | pilot_clearTimers (Pilot *pilot) |
| | Clears the pilot's timers. More...
|
| |
| double | pilot_relsize (const Pilot *cur_pilot, const Pilot *p) |
| | Gets the relative size(shipmass) between the current pilot and the specified target. More...
|
| |
| void | pilot_dpseps (const Pilot *p, double *pdps, double *peps) |
| | Calculates the dps and eps of a pilot. More...
|
| |
| double | pilot_reldps (const Pilot *cur_pilot, const Pilot *p) |
| | Gets the relative damage output(total DPS) between the current pilot and the specified target. More...
|
| |
| double | pilot_relhp (const Pilot *cur_pilot, const Pilot *p) |
| | Gets the relative hp(combined shields and armour) between the current pilot and the specified target. More...
|
| |
| credits_t | pilot_worth (const Pilot *p) |
| | Gets the price or worth of a pilot in credits. More...
|
| |
| void | pilot_msg (Pilot *p, Pilot *receiver, const char *type, unsigned int idx) |
| | Sends a message. More...
|
| |
| int | pilot_hasIllegal (const Pilot *p, int faction) |
| | Checks to see if the pilot has illegal stuf to a faction. More...
|
| |