naev 0.12.5
Outfit Struct Reference

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

#include <outfit.h>

Collaboration diagram for Outfit:

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
char * gfx_store_path
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 372 of file outfit.h.

Field Documentation

◆ afb

OutfitAfterburnerData Outfit::afb

AFTERBURNER

Definition at line 458 of file outfit.h.

◆ bay

OutfitFighterBayData Outfit::bay

FIGHTER_BAY

Definition at line 459 of file outfit.h.

◆ bem

OutfitBeamData Outfit::bem

BEAM

Definition at line 455 of file outfit.h.

◆ blt

OutfitBoltData Outfit::blt

BOLT

Definition at line 454 of file outfit.h.

◆ cond

char* Outfit::cond

Conditional Lua string.

Definition at line 382 of file outfit.h.

◆ condstr

char* Outfit::condstr

Human readable description of the conditional.

Definition at line 383 of file outfit.h.

◆ cpu

double Outfit::cpu

CPU usage.

Definition at line 385 of file outfit.h.

◆ desc_extra

char* Outfit::desc_extra

Extra description string (if static).

Definition at line 394 of file outfit.h.

◆ desc_raw

char* Outfit::desc_raw

Base store description.

Definition at line 392 of file outfit.h.

◆ filename

char* Outfit::filename

File data was loaded from.

Definition at line 377 of file outfit.h.

◆ gfx_overlays

glTexture** Outfit::gfx_overlays

Array (array.h): Store overlay graphics.

Definition at line 399 of file outfit.h.

◆ gfx_store

glTexture* Outfit::gfx_store

Store graphic.

Definition at line 398 of file outfit.h.

◆ gfx_store_path

char* Outfit::gfx_store_path

Store graphic path.

Definition at line 397 of file outfit.h.

◆ group

unsigned int Outfit::group

Weapon group to use when autoweap is enabled.

Definition at line 407 of file outfit.h.

◆ gui

OutfitGUIData Outfit::gui

GUI

Definition at line 462 of file outfit.h.

◆ illegalto

int* Outfit::illegalto

Factions this outfit is illegal to.

Definition at line 387 of file outfit.h.

◆ illegaltoS

char** Outfit::illegaltoS

Temporary buffer to set up illegality.

Definition at line 388 of file outfit.h.

◆ lau

OutfitLauncherData Outfit::lau

LAUNCHER

Definition at line 456 of file outfit.h.

◆ lic

OutfitLicenseData Outfit::lic

LICENSE.

Definition at line 463 of file outfit.h.

◆ license

char* Outfit::license

Licenses needed to buy it.

Definition at line 381 of file outfit.h.

◆ limit

char* Outfit::limit

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

Definition at line 386 of file outfit.h.

◆ lmap

OutfitLocalMapData Outfit::lmap

LOCALMAP

Definition at line 461 of file outfit.h.

◆ lua_board

int Outfit::lua_board

Run when the player boards a ship.

Definition at line 439 of file outfit.h.

◆ lua_buy

int Outfit::lua_buy

Run when the outfit is boughten.

Definition at line 448 of file outfit.h.

◆ lua_cleanup

int Outfit::lua_cleanup

Run when the pilot is erased.

Definition at line 425 of file outfit.h.

◆ lua_cooldown

int Outfit::lua_cooldown

Run when cooldown is started or stopped.

Definition at line 435 of file outfit.h.

◆ lua_descextra

int Outfit::lua_descextra

Run to get the extra description status.

Definition at line 419 of file outfit.h.

◆ lua_env

nlua_env Outfit::lua_env

Lua environment. Shared for each outfit to allow globals.

Definition at line 418 of file outfit.h.

◆ lua_file

char* Outfit::lua_file

Lua File.

Definition at line 416 of file outfit.h.

◆ lua_init

int Outfit::lua_init

Run when pilot enters a system.

Definition at line 424 of file outfit.h.

◆ lua_jumpin

int Outfit::lua_jumpin

Run when the player jumps in.

Definition at line 438 of file outfit.h.

◆ lua_keydoubletap

int Outfit::lua_keydoubletap

Run when a key is double tapped.

Definition at line 440 of file outfit.h.

◆ lua_keyrelease

int Outfit::lua_keyrelease

Run when a key is released.

Definition at line 441 of file outfit.h.

◆ lua_land

int Outfit::lua_land

Run when the player lands.

Definition at line 436 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 421 of file outfit.h.

◆ lua_onhit

int Outfit::lua_onhit

Run when pilot takes damage.

Definition at line 429 of file outfit.h.

◆ lua_onimpact

int Outfit::lua_onimpact

Run when weapon hits the enemy.

Definition at line 443 of file outfit.h.

◆ lua_onmiss

int Outfit::lua_onmiss

Run when weapon particle expires.

Definition at line 444 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 422 of file outfit.h.

◆ lua_onscan

int Outfit::lua_onscan

Run when the pilot scans another pilot.

Definition at line 434 of file outfit.h.

◆ lua_onscanned

int Outfit::lua_onscanned

Run when the pilot is scanned by another pilot.

Definition at line 433 of file outfit.h.

◆ lua_onshoot

int Outfit::lua_onshoot

Run when shooting.

Definition at line 428 of file outfit.h.

◆ lua_onshootany

int Outfit::lua_onshootany

Run when pilot shoots ANY weapon.

Definition at line 431 of file outfit.h.

◆ lua_onstealth

int Outfit::lua_onstealth

Run when pilot toggles stealth.

Definition at line 432 of file outfit.h.

◆ lua_ontoggle

int Outfit::lua_ontoggle

Run when toggled.

Definition at line 427 of file outfit.h.

◆ lua_outofenergy

int Outfit::lua_outofenergy

Run when the pilot runs out of energy.

Definition at line 430 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 446 of file outfit.h.

◆ lua_sell

int Outfit::lua_sell

Run when the outfit is sold.

Definition at line 449 of file outfit.h.

◆ lua_takeoff

int Outfit::lua_takeoff

Run when the player takes off.

Definition at line 437 of file outfit.h.

◆ lua_update

int Outfit::lua_update

Run periodically.

Definition at line 426 of file outfit.h.

◆ map

OutfitMapData_t* Outfit::map

MAP

Definition at line 460 of file outfit.h.

◆ mass

double Outfit::mass

How much weapon capacity is needed.

Definition at line 384 of file outfit.h.

◆ mod

MODIFICATION

Definition at line 457 of file outfit.h.

◆ name

char* Outfit::name

Name of the outfit.

Definition at line 373 of file outfit.h.

◆ overheat_max

double Outfit::overheat_max

Temperature at which the outfit overheats (K).

Definition at line 404 of file outfit.h.

◆ overheat_min

double Outfit::overheat_min

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

Definition at line 402 of file outfit.h.

◆ price

credits_t Outfit::price

Base sell price.

Definition at line 391 of file outfit.h.

◆ priority

int Outfit::priority

Sort priority, highest first.

Definition at line 395 of file outfit.h.

◆ properties

unsigned int Outfit::properties

Properties stored bitwise.

Definition at line 406 of file outfit.h.

◆ rarity

int Outfit::rarity

Rarity of the outfit.

Definition at line 376 of file outfit.h.

◆ shortname

char* Outfit::shortname

Shorter version of the name for GUI and such.

Definition at line 375 of file outfit.h.

◆ slot

OutfitSlot Outfit::slot

Slot the outfit fits into.

Definition at line 380 of file outfit.h.

◆ stats

ShipStatList* Outfit::stats

Stat list.

Definition at line 410 of file outfit.h.

◆ summary_raw

char* Outfit::summary_raw

Short outfit summary (stored translated).

Definition at line 393 of file outfit.h.

◆ tags

char** Outfit::tags

Outfit tags.

Definition at line 413 of file outfit.h.

◆ type

OutfitType Outfit::type

Type of the outfit.

Definition at line 452 of file outfit.h.

◆ typename

char* Outfit::typename

Overrides the base type.

Definition at line 374 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: