naev 0.11.5
Ship Struct Reference

Represents a space ship. More...

#include <ship.h>

Data Fields

char * name
 
char * base_type
 
ShipClass class
 
char * class_display
 
int points
 
int rarity
 
int flags
 
credits_t price
 
char * license
 
char * cond
 
char * condstr
 
char * fabricator
 
char * description
 
char * desc_extra
 
double accel
 
double turn
 
double speed
 
int crew
 
double mass
 
double cpu
 
int fuel
 
int fuel_consumption
 
double cap_cargo
 
double dt_default
 
double armour
 
double armour_regen
 
double shield
 
double shield_regen
 
double energy
 
double energy_regen
 
double dmg_absorb
 
Objectgfx_3d
 
double gfx_3d_scale
 
glTexturegfx_space
 
glTexturegfx_engine
 
glTexturegfx_target
 
glTexturegfx_store
 
char * gfx_comm
 
glTexture ** gfx_overlays
 
ShipTrailEmittertrail_emitters
 
CollPolypolygon
 
int sound
 
double engine_pitch
 
ShipOutfitSlotoutfit_structure
 
ShipOutfitSlotoutfit_utility
 
ShipOutfitSlotoutfit_weapon
 
Outfit const ** outfit_intrinsic
 
double mangle
 
char * desc_stats
 
ShipStatListstats
 
ShipStats stats_array
 
char ** tags
 
char * lua_file
 
nlua_env lua_env
 
double lua_dt
 
int lua_init
 
int lua_cleanup
 
int lua_update
 
int lua_explode_init
 
int lua_explode_update
 

Detailed Description

Represents a space ship.

Definition at line 94 of file ship.h.

Field Documentation

◆ accel

double Ship::accel

Ship's acceleration in "pixel/sec^2"

Definition at line 113 of file ship.h.

◆ armour

double Ship::armour

Maximum base armour in MJ.

Definition at line 127 of file ship.h.

◆ armour_regen

double Ship::armour_regen

Maximum armour regeneration in MJ/s.

Definition at line 128 of file ship.h.

◆ base_type

char* Ship::base_type

Ship's base type, basically used for figuring out what ships are related.

Definition at line 96 of file ship.h.

◆ cap_cargo

double Ship::cap_cargo

Cargo capacity (in volume).

Definition at line 123 of file ship.h.

◆ class

ShipClass Ship::class

Ship class.

Definition at line 97 of file ship.h.

◆ class_display

char* Ship::class_display

Custom ship class, overrides class when displaying.

Definition at line 98 of file ship.h.

◆ cond

char* Ship::cond

Conditional string to see if it can be bought. Must return a boolean.

Definition at line 106 of file ship.h.

◆ condstr

char* Ship::condstr

Human readable conditional.

Definition at line 107 of file ship.h.

◆ cpu

double Ship::cpu

Amount of CPU the ship has.

Definition at line 120 of file ship.h.

◆ crew

int Ship::crew

Crew members.

Definition at line 118 of file ship.h.

◆ desc_extra

char* Ship::desc_extra

Extra description.

Definition at line 110 of file ship.h.

◆ desc_stats

char* Ship::desc_stats

Ship statistics information.

Definition at line 163 of file ship.h.

◆ description

char* Ship::description

Shipyard description.

Definition at line 109 of file ship.h.

◆ dmg_absorb

double Ship::dmg_absorb

Damage absorption in per one [0:1] with 1 being 100% absorption.

Definition at line 133 of file ship.h.

◆ dt_default

double Ship::dt_default

Default/minimum time delta.

Definition at line 124 of file ship.h.

◆ energy

double Ship::energy

Maximum base energy in MJ.

Definition at line 131 of file ship.h.

◆ energy_regen

double Ship::energy_regen

Maximum energy regeneration in MJ/s.

Definition at line 132 of file ship.h.

◆ engine_pitch

double Ship::engine_pitch

Sets the base pitch of the engine.

Definition at line 151 of file ship.h.

◆ fabricator

char* Ship::fabricator

Company or organization that fabricates it.

Definition at line 108 of file ship.h.

◆ flags

int Ship::flags

Ship flags.

Definition at line 101 of file ship.h.

◆ fuel

int Ship::fuel

How much fuel by default.

Definition at line 121 of file ship.h.

◆ fuel_consumption

int Ship::fuel_consumption

Fuel consumption by engine.

Definition at line 122 of file ship.h.

◆ gfx_3d

Object* Ship::gfx_3d

3d model of the ship

Definition at line 136 of file ship.h.

◆ gfx_3d_scale

double Ship::gfx_3d_scale

scale for 3d model of the ship

Definition at line 137 of file ship.h.

◆ gfx_comm

char* Ship::gfx_comm

Name of graphic for communication.

Definition at line 142 of file ship.h.

◆ gfx_engine

glTexture* Ship::gfx_engine

Space engine glow sprite sheet.

Definition at line 139 of file ship.h.

◆ gfx_overlays

glTexture** Ship::gfx_overlays

Array (array.h): Store overlay graphics.

Definition at line 143 of file ship.h.

◆ gfx_space

glTexture* Ship::gfx_space

Space sprite sheet.

Definition at line 138 of file ship.h.

◆ gfx_store

glTexture* Ship::gfx_store

Store graphic.

Definition at line 141 of file ship.h.

◆ gfx_target

glTexture* Ship::gfx_target

Targeting window graphic.

Definition at line 140 of file ship.h.

◆ license

char* Ship::license

License needed to buy it.

Definition at line 105 of file ship.h.

◆ lua_cleanup

int Ship::lua_cleanup

Run when the pilot is erased.

Definition at line 175 of file ship.h.

◆ lua_dt

double Ship::lua_dt

Update rate for Lua update script.

Definition at line 173 of file ship.h.

◆ lua_env

nlua_env Ship::lua_env

Lua environment. Shared for each outfit to allow globals.

Definition at line 172 of file ship.h.

◆ lua_explode_init

int Ship::lua_explode_init

Run when starting explosion.

Definition at line 177 of file ship.h.

◆ lua_explode_update

int Ship::lua_explode_update

Run when exploding.

Definition at line 178 of file ship.h.

◆ lua_file

char* Ship::lua_file

Lua File.

Definition at line 171 of file ship.h.

◆ lua_init

int Ship::lua_init

Run when pilot enters a system.

Definition at line 174 of file ship.h.

◆ lua_update

int Ship::lua_update

Run periodically.

Definition at line 176 of file ship.h.

◆ mangle

double Ship::mangle

Mount angle to simplify mount calculations.

Definition at line 160 of file ship.h.

◆ mass

double Ship::mass

Mass ship has.

Definition at line 119 of file ship.h.

◆ name

char* Ship::name

Ship name.

Definition at line 95 of file ship.h.

◆ outfit_intrinsic

Outfit const** Ship::outfit_intrinsic

Array (array.h): Intrinsic outfits to start out with.

Definition at line 157 of file ship.h.

◆ outfit_structure

ShipOutfitSlot* Ship::outfit_structure

Array (array.h): Outfit structure slots.

Definition at line 154 of file ship.h.

◆ outfit_utility

ShipOutfitSlot* Ship::outfit_utility

Array (array.h): Outfit utility slots.

Definition at line 155 of file ship.h.

◆ outfit_weapon

ShipOutfitSlot* Ship::outfit_weapon

Array (array.h): Outfit weapons slots.

Definition at line 156 of file ship.h.

◆ points

int Ship::points

Number of points the ship costs (used for presence et al.)

Definition at line 99 of file ship.h.

◆ polygon

CollPoly* Ship::polygon

Array (array.h): Collision polygons.

Definition at line 147 of file ship.h.

◆ price

credits_t Ship::price

Cost to buy.

Definition at line 104 of file ship.h.

◆ rarity

int Ship::rarity

Rarity.

Definition at line 100 of file ship.h.

◆ shield

double Ship::shield

Maximum base shield in MJ.

Definition at line 129 of file ship.h.

◆ shield_regen

double Ship::shield_regen

Maximum shield regeneration in MJ/s.

Definition at line 130 of file ship.h.

◆ sound

int Ship::sound

Sound engine uses.

Definition at line 150 of file ship.h.

◆ speed

double Ship::speed

Ship's max speed in "pixel/sec"

Definition at line 115 of file ship.h.

◆ stats

ShipStatList* Ship::stats

Ship statistics properties.

Definition at line 164 of file ship.h.

◆ stats_array

ShipStats Ship::stats_array

Laid out stats for referencing purposes.

Definition at line 165 of file ship.h.

◆ tags

char** Ship::tags

Ship tags.

Definition at line 168 of file ship.h.

◆ trail_emitters

ShipTrailEmitter* Ship::trail_emitters

Trail emitters.

Definition at line 144 of file ship.h.

◆ turn

double Ship::turn

Ship's turn in rad/s

Definition at line 114 of file ship.h.


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