naev 0.12.5
Ship Struct Reference

Represents a space ship. More...

#include <ship.h>

Collaboration diagram for Ship:

Data Fields

void * rawdata
char * inherits
char * name
char * base_type
char * base_path
ShipClass class
char * class_display
int faction
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
double size
char * gfx_path
char * polygon_path
int noengine
GltfObjectgfx_3d
glTexturegfx_space
glTexturegfx_engine
glTexture_gfx_store
char * gfx_comm
glTexture ** gfx_overlays
ShipTrailEmittertrail_emitters
int sx
int sy
CollPoly polygon
int sound
double engine_pitch
ShipOutfitSlotoutfit_structure
ShipOutfitSlotoutfit_utility
ShipOutfitSlotoutfit_weapon
Outfit const ** outfit_intrinsic
char * desc_stats
ShipStatListstats
ShipStats stats_array
char ** tags
char * lua_file
nlua_env lua_env
double lua_dt
int lua_descextra
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 97 of file ship.h.

Field Documentation

◆ _gfx_store

glTexture* Ship::_gfx_store

Store graphic.

Definition at line 156 of file ship.h.

◆ accel

double Ship::accel

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

Definition at line 125 of file ship.h.

◆ armour

double Ship::armour

Maximum base armour in MJ.

Definition at line 139 of file ship.h.

◆ armour_regen

double Ship::armour_regen

Maximum armour regeneration in MJ/s.

Definition at line 140 of file ship.h.

◆ base_path

char* Ship::base_path

Ship's base type path, used for finding graphics and such.

Definition at line 103 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 101 of file ship.h.

◆ cap_cargo

double Ship::cap_cargo

Cargo capacity (in volume).

Definition at line 135 of file ship.h.

◆ class

ShipClass Ship::class

Ship class.

Definition at line 105 of file ship.h.

◆ class_display

char* Ship::class_display

Custom ship class, overrides class when displaying.

Definition at line 107 of file ship.h.

◆ cond

char* Ship::cond

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

Definition at line 117 of file ship.h.

◆ condstr

char* Ship::condstr

Human readable conditional.

Definition at line 119 of file ship.h.

◆ cpu

double Ship::cpu

Amount of CPU the ship has.

Definition at line 132 of file ship.h.

◆ crew

int Ship::crew

Crew members.

Definition at line 130 of file ship.h.

◆ desc_extra

char* Ship::desc_extra

Extra description.

Definition at line 122 of file ship.h.

◆ desc_stats

char* Ship::desc_stats

Ship statistics information.

Definition at line 180 of file ship.h.

◆ description

char* Ship::description

Shipyard description.

Definition at line 121 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 145 of file ship.h.

◆ dt_default

double Ship::dt_default

Default/minimum time delta.

Definition at line 136 of file ship.h.

◆ energy

double Ship::energy

Maximum base energy in MJ.

Definition at line 143 of file ship.h.

◆ energy_regen

double Ship::energy_regen

Maximum energy regeneration in MJ/s.

Definition at line 144 of file ship.h.

◆ engine_pitch

double Ship::engine_pitch

Sets the base pitch of the engine.

Definition at line 168 of file ship.h.

◆ fabricator

char* Ship::fabricator

Company or organization that fabricates it.

Definition at line 120 of file ship.h.

◆ faction

int Ship::faction

Dominant faction of the ship.

Definition at line 108 of file ship.h.

◆ flags

int Ship::flags

Ship flags.

Definition at line 112 of file ship.h.

◆ fuel

int Ship::fuel

How much fuel by default.

Definition at line 133 of file ship.h.

◆ fuel_consumption

int Ship::fuel_consumption

Fuel consumption by engine.

Definition at line 134 of file ship.h.

◆ gfx_3d

GltfObject* Ship::gfx_3d

3d model of the ship

Definition at line 153 of file ship.h.

◆ gfx_comm

char* Ship::gfx_comm

Name of graphic for communication.

Definition at line 157 of file ship.h.

◆ gfx_engine

glTexture* Ship::gfx_engine

Space engine glow sprite sheet.

Definition at line 155 of file ship.h.

◆ gfx_overlays

glTexture** Ship::gfx_overlays

Array (array.h): Store overlay graphics.

Definition at line 158 of file ship.h.

◆ gfx_path

char* Ship::gfx_path

Path to load GFX from (lazy loading).

Definition at line 150 of file ship.h.

◆ gfx_space

glTexture* Ship::gfx_space

Space sprite sheet.

Definition at line 154 of file ship.h.

◆ inherits

char* Ship::inherits

Ship from which it is inheriting values.

Definition at line 99 of file ship.h.

◆ license

char* Ship::license

License needed to buy it.

Definition at line 116 of file ship.h.

◆ lua_cleanup

int Ship::lua_cleanup

Run when the pilot is erased.

Definition at line 194 of file ship.h.

◆ lua_descextra

int Ship::lua_descextra

Run when obtaining description.

Definition at line 192 of file ship.h.

◆ lua_dt

double Ship::lua_dt

Update rate for Lua update script.

Definition at line 191 of file ship.h.

◆ lua_env

nlua_env Ship::lua_env

Lua environment. Shared for each outfit to allow globals.

Definition at line 190 of file ship.h.

◆ lua_explode_init

int Ship::lua_explode_init

Run when starting explosion.

Definition at line 196 of file ship.h.

◆ lua_explode_update

int Ship::lua_explode_update

Run when exploding.

Definition at line 197 of file ship.h.

◆ lua_file

char* Ship::lua_file

Lua File.

Definition at line 188 of file ship.h.

◆ lua_init

int Ship::lua_init

Run when pilot enters a system.

Definition at line 193 of file ship.h.

◆ lua_update

int Ship::lua_update

Run periodically.

Definition at line 195 of file ship.h.

◆ mass

double Ship::mass

Mass ship has.

Definition at line 131 of file ship.h.

◆ name

char* Ship::name

Ship name.

Definition at line 100 of file ship.h.

◆ noengine

int Ship::noengine

Don't try to load engine graphics.

Definition at line 152 of file ship.h.

◆ outfit_intrinsic

Outfit const** Ship::outfit_intrinsic

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

Definition at line 176 of file ship.h.

◆ outfit_structure

ShipOutfitSlot* Ship::outfit_structure

Array (array.h): Outfit structure slots.

Definition at line 172 of file ship.h.

◆ outfit_utility

ShipOutfitSlot* Ship::outfit_utility

Array (array.h): Outfit utility slots.

Definition at line 174 of file ship.h.

◆ outfit_weapon

ShipOutfitSlot* Ship::outfit_weapon

Array (array.h): Outfit weapons slots.

Definition at line 175 of file ship.h.

◆ points

int Ship::points

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

Definition at line 110 of file ship.h.

◆ polygon

CollPoly Ship::polygon

Array (array.h): Collision polygons.

Definition at line 164 of file ship.h.

◆ polygon_path

char* Ship::polygon_path

Path to load polygon.

Definition at line 151 of file ship.h.

◆ price

credits_t Ship::price

Cost to buy.

Definition at line 115 of file ship.h.

◆ rarity

int Ship::rarity

Rarity.

Definition at line 111 of file ship.h.

◆ rawdata

void* Ship::rawdata

Raw data trick.

Definition at line 98 of file ship.h.

◆ shield

double Ship::shield

Maximum base shield in MJ.

Definition at line 141 of file ship.h.

◆ shield_regen

double Ship::shield_regen

Maximum shield regeneration in MJ/s.

Definition at line 142 of file ship.h.

◆ size

double Ship::size

Size of the ship.

Definition at line 149 of file ship.h.

◆ sound

int Ship::sound

Sound engine uses.

Definition at line 167 of file ship.h.

◆ speed

double Ship::speed

Ship's max speed in "pixel/sec"

Definition at line 127 of file ship.h.

◆ stats

ShipStatList* Ship::stats

Ship statistics properties.

Definition at line 181 of file ship.h.

◆ stats_array

ShipStats Ship::stats_array

Laid out stats for referencing purposes.

Definition at line 182 of file ship.h.

◆ sx

int Ship::sx

Definition at line 160 of file ship.h.

◆ sy

int Ship::sy

Definition at line 161 of file ship.h.

◆ tags

char** Ship::tags

Ship tags.

Definition at line 185 of file ship.h.

◆ trail_emitters

ShipTrailEmitter* Ship::trail_emitters

Trail emitters.

Definition at line 159 of file ship.h.

◆ turn

double Ship::turn

Ship's turn in rad/s

Definition at line 126 of file ship.h.


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