8#define EW_JUMP_BONUS_RANGE 2500.
10#define EW_ASTEROID_DIST 7.5e3
11#define EW_JUMPDETECT_DIST 7.5e3
12#define EW_SPOBDETECT_DIST 20e3
void pilot_ewUpdateStealth(Pilot *p, double dt)
Updates the stealth mode and checks to see if it is getting broken.
int pilot_inRangePilot(const Pilot *p, const Pilot *target, double *dist2)
Check to see if a pilot is in sensor range of another.
void pilot_ewUpdateDynamic(Pilot *p, double dt)
Updates the pilot's dynamic electronic warfare properties.
int pilot_ewScanCheck(const Pilot *p)
Checks to see if a scan is done.
int pilot_inRangeSpob(const Pilot *p, int target)
Check to see if a spob is in sensor range of the pilot.
void pilot_updateSensorRange(void)
Updates the system's base sensor range.
void pilot_destealth(Pilot *p)
Destealths a pilot.
int pilot_inRangeJump(const Pilot *p, int i)
Check to see if a jump point is in sensor range of the pilot.
void pilot_ewScanStart(Pilot *p)
Initializes the scan timer for a pilot.
double pilot_ewWeaponTrack(const Pilot *p, const Pilot *t, double trackmin, double trackmax)
Calculates the weapon lead (1. is 100%, 0. is 0%)..
void pilot_ewUpdateStatic(Pilot *p)
Updates the pilot's static electronic warfare properties.
int pilot_inRangeAsteroid(const Pilot *p, int ast, int fie)
Check to see if an asteroid is in sensor range of the pilot.
double pilot_sensorRange(void)
Returns the default sensor range for the current system.
double pilot_ewScanTime(const Pilot *p)
Gets the time it takes to scan a pilot.
int pilot_inRange(const Pilot *p, double x, double y)
Check to see if a position is in range of the pilot.
int pilot_stealth(Pilot *p)
Stealths a pilot.
The representation of an in-game pilot.