naev 0.11.5
Outfit Struct Reference

A ship outfit, depends radically on the type. More...

#include <outfit.h>

Data Fields

char * name
 
char * typename
 
char * shortname
 
int rarity
 
char * filename
 
OutfitSlot slot
 
char * license
 
char * cond
 
char * condstr
 
double mass
 
double cpu
 
char * limit
 
int * illegalto
 
char ** illegaltoS
 
credits_t price
 
char * desc_raw
 
char * summary_raw
 
char * desc_extra
 
int priority
 
glTexturegfx_store
 
glTexture ** gfx_overlays
 
double overheat_min
 
double overheat_max
 
unsigned int properties
 
unsigned int group
 
ShipStatListstats
 
char ** tags
 
char * lua_file
 
nlua_env lua_env
 
int lua_descextra
 
int lua_onadd
 
int lua_onremove
 
int lua_init
 
int lua_cleanup
 
int lua_update
 
int lua_ontoggle
 
int lua_onshoot
 
int lua_onhit
 
int lua_outofenergy
 
int lua_onshootany
 
int lua_onstealth
 
int lua_onscanned
 
int lua_onscan
 
int lua_cooldown
 
int lua_land
 
int lua_takeoff
 
int lua_jumpin
 
int lua_board
 
int lua_keydoubletap
 
int lua_keyrelease
 
int lua_onimpact
 
int lua_onmiss
 
int lua_price
 
int lua_buy
 
int lua_sell
 
OutfitType type
 
union { 
 
   OutfitBoltData   blt 
 
   OutfitBeamData   bem 
 
   OutfitLauncherData   lau 
 
   OutfitModificationData   mod 
 
   OutfitAfterburnerData   afb 
 
   OutfitFighterBayData   bay 
 
   OutfitMapData_t *   map 
 
   OutfitLocalMapData   lmap 
 
   OutfitGUIData   gui 
 
   OutfitLicenseData   lic 
 
u 
 

Detailed Description

A ship outfit, depends radically on the type.

Definition at line 328 of file outfit.h.

Field Documentation

◆ afb

OutfitAfterburnerData Outfit::afb

AFTERBURNER

Definition at line 408 of file outfit.h.

◆ bay

OutfitFighterBayData Outfit::bay

FIGHTER_BAY

Definition at line 409 of file outfit.h.

◆ bem

OutfitBeamData Outfit::bem

BEAM

Definition at line 405 of file outfit.h.

◆ blt

OutfitBoltData Outfit::blt

BOLT

Definition at line 404 of file outfit.h.

◆ cond

char* Outfit::cond

Conditional Lua string.

Definition at line 338 of file outfit.h.

◆ condstr

char* Outfit::condstr

Human readable description of the conditional.

Definition at line 339 of file outfit.h.

◆ cpu

double Outfit::cpu

CPU usage.

Definition at line 341 of file outfit.h.

◆ desc_extra

char* Outfit::desc_extra

Extra description string (if static).

Definition at line 350 of file outfit.h.

◆ desc_raw

char* Outfit::desc_raw

Base store description.

Definition at line 348 of file outfit.h.

◆ filename

char* Outfit::filename

File data was loaded from.

Definition at line 333 of file outfit.h.

◆ gfx_overlays

glTexture** Outfit::gfx_overlays

Array (array.h): Store overlay graphics.

Definition at line 354 of file outfit.h.

◆ gfx_store

glTexture* Outfit::gfx_store

Store graphic.

Definition at line 353 of file outfit.h.

◆ group

unsigned int Outfit::group

Weapon group to use when autoweap is enabled.

Definition at line 361 of file outfit.h.

◆ gui

OutfitGUIData Outfit::gui

GUI

Definition at line 412 of file outfit.h.

◆ illegalto

int* Outfit::illegalto

Factions this outfit is illegal to.

Definition at line 343 of file outfit.h.

◆ illegaltoS

char** Outfit::illegaltoS

Temporary buffer to set up illegality.

Definition at line 344 of file outfit.h.

◆ lau

OutfitLauncherData Outfit::lau

LAUNCHER

Definition at line 406 of file outfit.h.

◆ lic

OutfitLicenseData Outfit::lic

LICENSE.

Definition at line 413 of file outfit.h.

◆ license

char* Outfit::license

Licenses needed to buy it.

Definition at line 337 of file outfit.h.

◆ limit

char* Outfit::limit

Name to limit to one per ship (ignored if NULL).

Definition at line 342 of file outfit.h.

◆ lmap

OutfitLocalMapData Outfit::lmap

LOCALMAP

Definition at line 411 of file outfit.h.

◆ lua_board

int Outfit::lua_board

Run when the player boards a ship.

Definition at line 390 of file outfit.h.

◆ lua_buy

int Outfit::lua_buy

Run when the outfit is boughten.

Definition at line 398 of file outfit.h.

◆ lua_cleanup

int Outfit::lua_cleanup

Run when the pilot is erased.

Definition at line 376 of file outfit.h.

◆ lua_cooldown

int Outfit::lua_cooldown

Run when cooldown is started or stopped.

Definition at line 386 of file outfit.h.

◆ lua_descextra

int Outfit::lua_descextra

Run to get the extra description status.

Definition at line 372 of file outfit.h.

◆ lua_env

nlua_env Outfit::lua_env

Lua environment. Shared for each outfit to allow globals.

Definition at line 371 of file outfit.h.

◆ lua_file

char* Outfit::lua_file

Lua File.

Definition at line 370 of file outfit.h.

◆ lua_init

int Outfit::lua_init

Run when pilot enters a system.

Definition at line 375 of file outfit.h.

◆ lua_jumpin

int Outfit::lua_jumpin

Run when the player jumps in.

Definition at line 389 of file outfit.h.

◆ lua_keydoubletap

int Outfit::lua_keydoubletap

Run when a key is double tapped.

Definition at line 391 of file outfit.h.

◆ lua_keyrelease

int Outfit::lua_keyrelease

Run when a key is released.

Definition at line 392 of file outfit.h.

◆ lua_land

int Outfit::lua_land

Run when the player lands.

Definition at line 387 of file outfit.h.

◆ lua_onadd

int Outfit::lua_onadd

Run when added to a pilot or player swaps to this ship.

Definition at line 373 of file outfit.h.

◆ lua_onhit

int Outfit::lua_onhit

Run when pilot takes damage.

Definition at line 380 of file outfit.h.

◆ lua_onimpact

int Outfit::lua_onimpact

Run when weapon hits the enemy.

Definition at line 394 of file outfit.h.

◆ lua_onmiss

int Outfit::lua_onmiss

Run when weapon particle expires.

Definition at line 395 of file outfit.h.

◆ lua_onremove

int Outfit::lua_onremove

Run when removed to a pilot or when player swaps away from this ship.

Definition at line 374 of file outfit.h.

◆ lua_onscan

int Outfit::lua_onscan

Run when the pilot scans another pilot.

Definition at line 385 of file outfit.h.

◆ lua_onscanned

int Outfit::lua_onscanned

Run when the pilot is scanned by another pilot.

Definition at line 384 of file outfit.h.

◆ lua_onshoot

int Outfit::lua_onshoot

Run when shooting.

Definition at line 379 of file outfit.h.

◆ lua_onshootany

int Outfit::lua_onshootany

Run when pilot shoots ANY weapon.

Definition at line 382 of file outfit.h.

◆ lua_onstealth

int Outfit::lua_onstealth

Run when pilot toggles stealth.

Definition at line 383 of file outfit.h.

◆ lua_ontoggle

int Outfit::lua_ontoggle

Run when toggled.

Definition at line 378 of file outfit.h.

◆ lua_outofenergy

int Outfit::lua_outofenergy

Run when the pilot runs out of energy.

Definition at line 381 of file outfit.h.

◆ lua_price

int Outfit::lua_price

Determines the "cost" string and whether or not the player can buy or sell the outfit when available.

Definition at line 397 of file outfit.h.

◆ lua_sell

int Outfit::lua_sell

Run when the outfit is sold.

Definition at line 399 of file outfit.h.

◆ lua_takeoff

int Outfit::lua_takeoff

Run when the player takes off.

Definition at line 388 of file outfit.h.

◆ lua_update

int Outfit::lua_update

Run periodically.

Definition at line 377 of file outfit.h.

◆ map

OutfitMapData_t* Outfit::map

MAP

Definition at line 410 of file outfit.h.

◆ mass

double Outfit::mass

How much weapon capacity is needed.

Definition at line 340 of file outfit.h.

◆ mod

MODIFICATION

Definition at line 407 of file outfit.h.

◆ name

char* Outfit::name

Name of the outfit.

Definition at line 329 of file outfit.h.

◆ overheat_max

double Outfit::overheat_max

Temperature at which the outfit overheats (K).

Definition at line 358 of file outfit.h.

◆ overheat_min

double Outfit::overheat_min

Temperature at which the outfit BEGINS to overheat(K).

Definition at line 357 of file outfit.h.

◆ price

credits_t Outfit::price

Base sell price.

Definition at line 347 of file outfit.h.

◆ priority

int Outfit::priority

Sort priority, highest first.

Definition at line 351 of file outfit.h.

◆ properties

unsigned int Outfit::properties

Properties stored bitwise.

Definition at line 360 of file outfit.h.

◆ rarity

int Outfit::rarity

Rarity of the outfit.

Definition at line 332 of file outfit.h.

◆ shortname

char* Outfit::shortname

Shorter version of the name for GUI and such.

Definition at line 331 of file outfit.h.

◆ slot

OutfitSlot Outfit::slot

Slot the outfit fits into.

Definition at line 336 of file outfit.h.

◆ stats

ShipStatList* Outfit::stats

Stat list.

Definition at line 364 of file outfit.h.

◆ summary_raw

char* Outfit::summary_raw

Short outfit summary (stored translated).

Definition at line 349 of file outfit.h.

◆ tags

char** Outfit::tags

Outfit tags.

Definition at line 367 of file outfit.h.

◆ type

OutfitType Outfit::type

Type of the outfit.

Definition at line 402 of file outfit.h.

◆ typename

char* Outfit::typename

Overrides the base type.

Definition at line 330 of file outfit.h.

◆ [union]

union { ... } Outfit::u

Holds the type-based outfit data.


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