naev 0.11.5
Pilot Struct Reference

The representation of an in-game pilot. More...

#include <pilot.h>

Data Fields

unsigned int id
 
char * name
 
int faction
 
int presence
 
const Shipship
 
Solid solid
 
double base_mass
 
double mass_cargo
 
double mass_outfit
 
int tsx
 
int tsy
 
Trail_spfx ** trail
 
int cpu
 
int cpu_max
 
double crew
 
double cap_cargo
 
double accel
 
double accel_base
 
double speed
 
double speed_base
 
double speed_limit
 
double turn
 
double turn_base
 
double armour
 
double stress
 
double shield
 
double armour_max
 
double shield_max
 
double armour_regen
 
double shield_regen
 
double dmg_absorb
 
double fuel_max
 
double fuel
 
double fuel_consumption
 
double energy
 
double energy_max
 
double energy_regen
 
double energy_tau
 
double energy_loss
 
double ew_detection
 
double ew_signature
 
double ew_stealth
 
double ew_mass
 
double ew_asteroid
 
double ew_jumppoint
 
double ew_stealth_timer
 
double heat_T
 
double heat_C
 
double heat_emis
 
double heat_cond
 
double heat_area
 
double cdelay
 
double ctimer
 
double heat_start
 
ShipStatListship_stats
 
ShipStatListintrinsic_stats
 
ShipStats stats
 
Effecteffects
 
PilotOutfitSlot ** outfits
 
PilotOutfitSlotoutfit_structure
 
PilotOutfitSlotoutfit_utility
 
PilotOutfitSlotoutfit_weapon
 
PilotOutfitSlotoutfit_intrinsic
 
int ncannons
 
int nturrets
 
int nbeams
 
int nfighterbays
 
int nafterburners
 
int outfitlupdate
 
double refuel_amount
 
PilotOutfitSlotafterburner
 
PilotWeaponSet weapon_sets [PILOT_WEAPON_SETS]
 
int active_set
 
int autoweap
 
int aimLines
 
credits_t credits
 
PilotCommoditycommodities
 
int cargo_free
 
PilotHookhooks
 
unsigned int parent
 
Escort_tescorts
 
unsigned int dockpilot
 
int dockslot
 
unsigned int target
 
void * ptarget
 
int nav_spob
 
int nav_hyperspace
 
int nav_anchor
 
int nav_asteroid
 
AI_Profileai
 
int lua_mem
 
double tcontrol
 
double timer [MAX_AI_TIMERS]
 
Tasktask
 
unsigned int shoot_indicator
 
int lua_ship_mem
 
double lua_ship_timer
 
double comm_msgTimer
 
double comm_msgWidth
 
char * comm_msg
 
PilotFlags flags
 
double landing_delay
 
double pdata
 
double ptimer
 
double itimer
 
double htimer
 
double stimer
 
double sbonus
 
double dtimer
 
double dtimer_accum
 
double otimer
 
double scantimer
 
int hail_pos
 
int lockons
 
int projectiles
 
int * mounted
 
double player_damage
 
double engine_glow
 
int messages
 
lvarshipvar
 

Detailed Description

The representation of an in-game pilot.

Definition at line 217 of file pilot.h.

Field Documentation

◆ accel

double Pilot::accel

Pilot's acceleration in px/s^2.

Definition at line 242 of file pilot.h.

◆ accel_base

double Pilot::accel_base

Pilot's base acceleration in px/s^2.

Definition at line 243 of file pilot.h.

◆ active_set

int Pilot::active_set

Index of the currently active weapon set.

Definition at line 320 of file pilot.h.

◆ afterburner

PilotOutfitSlot* Pilot::afterburner

the afterburner

Definition at line 316 of file pilot.h.

◆ ai

AI_Profile* Pilot::ai

AI personality profile

Definition at line 350 of file pilot.h.

◆ aimLines

int Pilot::aimLines

Activate aiming helper lines.

Definition at line 322 of file pilot.h.

◆ armour

double Pilot::armour

Current armour.

Definition at line 251 of file pilot.h.

◆ armour_max

double Pilot::armour_max

Maximum armour.

Definition at line 254 of file pilot.h.

◆ armour_regen

double Pilot::armour_regen

Armour regeneration rate (per second).

Definition at line 256 of file pilot.h.

◆ autoweap

int Pilot::autoweap

Automatically update weapon sets.

Definition at line 321 of file pilot.h.

◆ base_mass

double Pilot::base_mass

Ship mass plus core outfit mass.

Definition at line 228 of file pilot.h.

◆ cap_cargo

double Pilot::cap_cargo

Pilot's cargo capacity.

Definition at line 239 of file pilot.h.

◆ cargo_free

int Pilot::cargo_free

Free commodity space.

Definition at line 327 of file pilot.h.

◆ cdelay

double Pilot::cdelay

Duration a full active cooldown takes.

Definition at line 287 of file pilot.h.

◆ comm_msg

char* Pilot::comm_msg

Comm message to display overhead.

Definition at line 364 of file pilot.h.

◆ comm_msgTimer

double Pilot::comm_msgTimer

Message timer for the comm.

Definition at line 362 of file pilot.h.

◆ comm_msgWidth

double Pilot::comm_msgWidth

Width of the message.

Definition at line 363 of file pilot.h.

◆ commodities

PilotCommodity* Pilot::commodities

commodity and quantity

Definition at line 326 of file pilot.h.

◆ cpu

int Pilot::cpu

Amount of CPU the pilot has left.

Definition at line 236 of file pilot.h.

◆ cpu_max

int Pilot::cpu_max

Maximum amount of CPU the pilot has.

Definition at line 237 of file pilot.h.

◆ credits

credits_t Pilot::credits

monies the pilot has

Definition at line 325 of file pilot.h.

◆ crew

double Pilot::crew

Crew amount the player has (display it as (int)floor(), but it's analogue.

Definition at line 238 of file pilot.h.

◆ ctimer

double Pilot::ctimer

Remaining cooldown time.

Definition at line 288 of file pilot.h.

◆ dmg_absorb

double Pilot::dmg_absorb

Ship damage absorption [0:1] with 1 being 100%.

Definition at line 258 of file pilot.h.

◆ dockpilot

unsigned int Pilot::dockpilot

Pilot's dock pilot (the pilot it originates from). This is separate from parent because it needs to be set in sync with dockslot (below). Used to unset dockslot when the dock pilot is destroyed.

Definition at line 335 of file pilot.h.

◆ dockslot

int Pilot::dockslot

Outfit slot pilot originates from, index of dockpilot's outfits.

Definition at line 339 of file pilot.h.

◆ dtimer

double Pilot::dtimer

Disable timer.

Definition at line 373 of file pilot.h.

◆ dtimer_accum

double Pilot::dtimer_accum

Accumulated disable timer.

Definition at line 374 of file pilot.h.

◆ effects

Effect* Pilot::effects

Pilot's current activated effects.

Definition at line 297 of file pilot.h.

◆ energy

double Pilot::energy

Current energy.

Definition at line 264 of file pilot.h.

◆ energy_loss

double Pilot::energy_loss

Linear loss that bypasses the actual RC circuit stuff.

Definition at line 268 of file pilot.h.

◆ energy_max

double Pilot::energy_max

Maximum energy.

Definition at line 265 of file pilot.h.

◆ energy_regen

double Pilot::energy_regen

Energy regeneration rate (per second).

Definition at line 266 of file pilot.h.

◆ energy_tau

double Pilot::energy_tau

Tau regeneration rate for energy.

Definition at line 267 of file pilot.h.

◆ engine_glow

double Pilot::engine_glow

Amount of engine glow to display.

Definition at line 383 of file pilot.h.

◆ escorts

Escort_t* Pilot::escorts

Array (array.h): Pilot's escorts.

Definition at line 334 of file pilot.h.

◆ ew_asteroid

double Pilot::ew_asteroid

Asteroid field factor, affects hide.

Definition at line 276 of file pilot.h.

◆ ew_detection

double Pilot::ew_detection

Main detection. Affects both signature and stealth.

Definition at line 271 of file pilot.h.

◆ ew_jumppoint

double Pilot::ew_jumppoint

Jump point factor, affects stealth.

Definition at line 277 of file pilot.h.

◆ ew_mass

double Pilot::ew_mass

Mass factor.

Definition at line 275 of file pilot.h.

◆ ew_signature

double Pilot::ew_signature

Signature. Used for tracking and blurring identification.

Definition at line 272 of file pilot.h.

◆ ew_stealth

double Pilot::ew_stealth

Stealth.

Definition at line 273 of file pilot.h.

◆ ew_stealth_timer

double Pilot::ew_stealth_timer

Stealth timer.

Definition at line 279 of file pilot.h.

◆ faction

int Pilot::faction

Pilot's faction.

Definition at line 222 of file pilot.h.

◆ flags

PilotFlags Pilot::flags

used for AI and others

Definition at line 365 of file pilot.h.

◆ fuel

double Pilot::fuel

Current fuel.

Definition at line 260 of file pilot.h.

◆ fuel_consumption

double Pilot::fuel_consumption

Fuel consumed per jump.

Definition at line 261 of file pilot.h.

◆ fuel_max

double Pilot::fuel_max

Maximum fuel.

Definition at line 259 of file pilot.h.

◆ hail_pos

int Pilot::hail_pos

Hail animation position.

Definition at line 377 of file pilot.h.

◆ heat_area

double Pilot::heat_area

Effective heatsink area of the ship. [m^2]

Definition at line 286 of file pilot.h.

◆ heat_C

double Pilot::heat_C

Heat capacity of the ship. [W/K]

Definition at line 283 of file pilot.h.

◆ heat_cond

double Pilot::heat_cond

Ship conductivity parameter. [W/(m*K)]

Definition at line 285 of file pilot.h.

◆ heat_emis

double Pilot::heat_emis

Ship epsilon parameter (emissivity). [adimensional 0:1]

Definition at line 284 of file pilot.h.

◆ heat_start

double Pilot::heat_start

Temperature at the start of a cooldown.

Definition at line 289 of file pilot.h.

◆ heat_T

double Pilot::heat_T

Ship temperature. [K]

Definition at line 282 of file pilot.h.

◆ hooks

PilotHook* Pilot::hooks

Array (array.h): Pilot hooks.

Definition at line 330 of file pilot.h.

◆ htimer

double Pilot::htimer

Hail animation timer.

Definition at line 370 of file pilot.h.

◆ id

unsigned int Pilot::id

pilot's id, used for many functions

Definition at line 218 of file pilot.h.

◆ intrinsic_stats

ShipStatList* Pilot::intrinsic_stats

Intrinsic statistics to the ship create on the fly.

Definition at line 293 of file pilot.h.

◆ itimer

double Pilot::itimer

Timer for player invulnerability.

Definition at line 369 of file pilot.h.

◆ landing_delay

double Pilot::landing_delay

This pilot's current landing delay.

Definition at line 366 of file pilot.h.

◆ lockons

int Pilot::lockons

Stores how many seeking weapons are targeting pilot

Definition at line 378 of file pilot.h.

◆ lua_mem

int Pilot::lua_mem

AI memory.

Definition at line 351 of file pilot.h.

◆ lua_ship_mem

int Pilot::lua_ship_mem

Ship memory.

Definition at line 358 of file pilot.h.

◆ lua_ship_timer

double Pilot::lua_ship_timer

Lua ship timer.

Definition at line 359 of file pilot.h.

◆ mass_cargo

double Pilot::mass_cargo

Amount of cargo mass added.

Definition at line 229 of file pilot.h.

◆ mass_outfit

double Pilot::mass_outfit

Amount of outfit mass added.

Definition at line 230 of file pilot.h.

◆ messages

int Pilot::messages

Queued messages (Lua ref).

Definition at line 384 of file pilot.h.

◆ mounted

int* Pilot::mounted

Number of mounted outfits on the mount.

Definition at line 380 of file pilot.h.

◆ nafterburners

int Pilot::nafterburners

Number of afterburners equipped.

Definition at line 311 of file pilot.h.

◆ name

char* Pilot::name

pilot's name (if unique)

Definition at line 219 of file pilot.h.

◆ nav_anchor

int Pilot::nav_anchor

Asteroid anchor target.

Definition at line 346 of file pilot.h.

◆ nav_asteroid

int Pilot::nav_asteroid

Asteroid target.

Definition at line 347 of file pilot.h.

◆ nav_hyperspace

int Pilot::nav_hyperspace

Hyperspace target.

Definition at line 345 of file pilot.h.

◆ nav_spob

int Pilot::nav_spob

Spob land target.

Definition at line 344 of file pilot.h.

◆ nbeams

int Pilot::nbeams

Number of beams equipped.

Definition at line 309 of file pilot.h.

◆ ncannons

int Pilot::ncannons

Number of cannons equipped.

Definition at line 307 of file pilot.h.

◆ nfighterbays

int Pilot::nfighterbays

Number of fighter bays available.

Definition at line 310 of file pilot.h.

◆ nturrets

int Pilot::nturrets

Number of turrets equipped.

Definition at line 308 of file pilot.h.

◆ otimer

double Pilot::otimer

Lua outfit timer.

Definition at line 375 of file pilot.h.

◆ outfit_intrinsic

PilotOutfitSlot* Pilot::outfit_intrinsic

Array (array.h): The intrinsic slots.

Definition at line 304 of file pilot.h.

◆ outfit_structure

PilotOutfitSlot* Pilot::outfit_structure

Array (array.h): The structure slots.

Definition at line 301 of file pilot.h.

◆ outfit_utility

PilotOutfitSlot* Pilot::outfit_utility

Array (array.h): The utility slots.

Definition at line 302 of file pilot.h.

◆ outfit_weapon

PilotOutfitSlot* Pilot::outfit_weapon

Array (array.h): The weapon slots.

Definition at line 303 of file pilot.h.

◆ outfitlupdate

int Pilot::outfitlupdate

Has outfits with Lua update scripts.

Definition at line 312 of file pilot.h.

◆ outfits

PilotOutfitSlot** Pilot::outfits

Array (array.h): Pointers to all outfits.

Definition at line 300 of file pilot.h.

◆ parent

unsigned int Pilot::parent

Pilot's parent.

Definition at line 333 of file pilot.h.

◆ pdata

double Pilot::pdata

generic data for internal pilot use

Definition at line 367 of file pilot.h.

◆ player_damage

double Pilot::player_damage

Accumulates damage done by player for hostileness. In per one of max shield + armour.

Definition at line 381 of file pilot.h.

◆ presence

int Pilot::presence

Presence being used by the pilot.

Definition at line 223 of file pilot.h.

◆ projectiles

int Pilot::projectiles

Stores how many weapons are after the pilot

Definition at line 379 of file pilot.h.

◆ ptarget

void* Pilot::ptarget

AI pilot real target.

Definition at line 343 of file pilot.h.

◆ ptimer

double Pilot::ptimer

generic timer for internal pilot use

Definition at line 368 of file pilot.h.

◆ refuel_amount

double Pilot::refuel_amount

Amount to refuel.

Definition at line 313 of file pilot.h.

◆ sbonus

double Pilot::sbonus

Shield regeneration bonus.

Definition at line 372 of file pilot.h.

◆ scantimer

double Pilot::scantimer

Electronic warfare scanning timer.

Definition at line 376 of file pilot.h.

◆ shield

double Pilot::shield

Current shield.

Definition at line 253 of file pilot.h.

◆ shield_max

double Pilot::shield_max

Maximum shield.

Definition at line 255 of file pilot.h.

◆ shield_regen

double Pilot::shield_regen

Shield regeneration rate (per second).

Definition at line 257 of file pilot.h.

◆ ship

const Ship* Pilot::ship

ship pilot is flying

Definition at line 226 of file pilot.h.

◆ ship_stats

ShipStatList* Pilot::ship_stats

Ship stats set by the Lua ship. Only valid if the Lua has ship defined.

Definition at line 292 of file pilot.h.

◆ shipvar

lvar* Pilot::shipvar

Per-ship version of lua mission variables.

Definition at line 385 of file pilot.h.

◆ shoot_indicator

unsigned int Pilot::shoot_indicator

Indicator to inform the AI if a seeker has been shot recently.

Definition at line 355 of file pilot.h.

◆ solid

Solid Pilot::solid

Associated solid (physics)

Definition at line 227 of file pilot.h.

◆ speed

double Pilot::speed

Pilot's speed in px/s.

Definition at line 244 of file pilot.h.

◆ speed_base

double Pilot::speed_base

Pilot's base speed in px/s.

Definition at line 245 of file pilot.h.

◆ speed_limit

double Pilot::speed_limit

Pilot's maximum speed in px/s if limited by lua call.

Definition at line 246 of file pilot.h.

◆ stats

ShipStats Pilot::stats

Pilot's copy of ship statistics, used for comparisons..

Definition at line 294 of file pilot.h.

◆ stimer

double Pilot::stimer

Shield regeneration timer.

Definition at line 371 of file pilot.h.

◆ stress

double Pilot::stress

Current disable damage level.

Definition at line 252 of file pilot.h.

◆ target

unsigned int Pilot::target

AI pilot target.

Definition at line 342 of file pilot.h.

◆ task

Task* Pilot::task

current action

Definition at line 354 of file pilot.h.

◆ tcontrol

double Pilot::tcontrol

timer for control tick

Definition at line 352 of file pilot.h.

◆ timer

double Pilot::timer[MAX_AI_TIMERS]

Timers for AI

Definition at line 353 of file pilot.h.

◆ trail

Trail_spfx** Pilot::trail

Array of pointers to pilot's trails.

Definition at line 233 of file pilot.h.

◆ tsx

int Pilot::tsx

current sprite x position, calculated on update.

Definition at line 231 of file pilot.h.

◆ tsy

int Pilot::tsy

current sprite y position, calculated on update.

Definition at line 232 of file pilot.h.

◆ turn

double Pilot::turn

Pilot's turn in rad/s.

Definition at line 247 of file pilot.h.

◆ turn_base

double Pilot::turn_base

Pilot's base turn in rad/s.

Definition at line 248 of file pilot.h.

◆ weapon_sets

PilotWeaponSet Pilot::weapon_sets[PILOT_WEAPON_SETS]

All the weapon sets the pilot has.

Definition at line 319 of file pilot.h.


The documentation for this struct was generated from the following file: