naev 0.10.4
Data Fields
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
 
double thrust
 
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
 
char * gui
 
int sound
 
double engine_pitch
 
ShipOutfitSlotoutfit_structure
 
ShipOutfitSlotoutfit_utility
 
ShipOutfitSlotoutfit_weapon
 
double mangle
 
char * desc_stats
 
ShipStatListstats
 
ShipStats stats_array
 
char ** tags
 

Detailed Description

Represents a space ship.

Definition at line 94 of file ship.h.

Field Documentation

◆ armour

double Ship::armour

Maximum base armour in MJ.

Definition at line 126 of file ship.h.

◆ armour_regen

double Ship::armour_regen

Maximum armour regeneration in MJ/s.

Definition at line 127 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 122 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 119 of file ship.h.

◆ crew

int Ship::crew

Crew members.

Definition at line 117 of file ship.h.

◆ desc_stats

char* Ship::desc_stats

Ship statistics information.

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

◆ dt_default

double Ship::dt_default

Default/minimum time delta.

Definition at line 123 of file ship.h.

◆ energy

double Ship::energy

Maximum base energy in MJ.

Definition at line 130 of file ship.h.

◆ energy_regen

double Ship::energy_regen

Maximum energy regeneration in MJ/s.

Definition at line 131 of file ship.h.

◆ engine_pitch

double Ship::engine_pitch

Sets the base pitch of the engine.

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

◆ fuel_consumption

int Ship::fuel_consumption

Fuel consumption by engine.

Definition at line 121 of file ship.h.

◆ gfx_3d

Object* Ship::gfx_3d

3d model of the ship

Definition at line 135 of file ship.h.

◆ gfx_3d_scale

double Ship::gfx_3d_scale

scale for 3d model of the ship

Definition at line 136 of file ship.h.

◆ gfx_comm

char* Ship::gfx_comm

Name of graphic for communication.

Definition at line 141 of file ship.h.

◆ gfx_engine

glTexture* Ship::gfx_engine

Space engine glow sprite sheet.

Definition at line 138 of file ship.h.

◆ gfx_overlays

glTexture** Ship::gfx_overlays

Array (array.h): Store overlay graphics.

Definition at line 142 of file ship.h.

◆ gfx_space

glTexture* Ship::gfx_space

Space sprite sheet.

Definition at line 137 of file ship.h.

◆ gfx_store

glTexture* Ship::gfx_store

Store graphic.

Definition at line 140 of file ship.h.

◆ gfx_target

glTexture* Ship::gfx_target

Targeting window graphic.

Definition at line 139 of file ship.h.

◆ gui

char* Ship::gui

Name of the GUI the ship uses by default.

Definition at line 149 of file ship.h.

◆ license

char* Ship::license

License needed to buy it.

Definition at line 105 of file ship.h.

◆ mangle

double Ship::mangle

Mount angle to simplify mount calculations.

Definition at line 161 of file ship.h.

◆ mass

double Ship::mass

Mass ship has.

Definition at line 118 of file ship.h.

◆ name

char* Ship::name

Ship name.

Definition at line 95 of file ship.h.

◆ outfit_structure

ShipOutfitSlot* Ship::outfit_structure

Array (array.h): Outfit structure slots.

Definition at line 156 of file ship.h.

◆ outfit_utility

ShipOutfitSlot* Ship::outfit_utility

Array (array.h): Outfit utility slots.

Definition at line 157 of file ship.h.

◆ outfit_weapon

ShipOutfitSlot* Ship::outfit_weapon

Array (array.h): Outfit weapons slots.

Definition at line 158 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 146 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 128 of file ship.h.

◆ shield_regen

double Ship::shield_regen

Maximum shield regeneration in MJ/s.

Definition at line 129 of file ship.h.

◆ sound

int Ship::sound

Sound engine uses.

Definition at line 152 of file ship.h.

◆ speed

double Ship::speed

Ship's max speed in "pixel/sec"

Definition at line 114 of file ship.h.

◆ stats

ShipStatList* Ship::stats

Ship statistics properties.

Definition at line 165 of file ship.h.

◆ stats_array

ShipStats Ship::stats_array

Laid out stats for referencing purposes.

Definition at line 166 of file ship.h.

◆ tags

char** Ship::tags

Ship tags.

Definition at line 169 of file ship.h.

◆ thrust

double Ship::thrust

Ship's thrust in "pixel/sec^2" (not multiplied by mass)

Definition at line 112 of file ship.h.

◆ trail_emitters

ShipTrailEmitter* Ship::trail_emitters

Trail emitters.

Definition at line 143 of file ship.h.

◆ turn

double Ship::turn

Ship's turn in rad/s

Definition at line 113 of file ship.h.


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