naev 0.11.5
Commodity Struct Reference

Represents a commodity. More...

#include <commodity.h>

Data Fields

char * name
 
char * description
 
unsigned int flags
 
char * price_ref
 
double price_mod
 
double raw_price
 
double price
 
glTexturegfx_store
 
glTexturegfx_space
 
credits_t lastPurchasePrice
 
int istemp
 
int * illegalto
 
CommodityModifierspob_modifier
 
double period
 
double population_modifier
 
CommodityModifierfaction_modifier
 

Detailed Description

Represents a commodity.

Definition at line 43 of file commodity.h.

Field Documentation

◆ description

char* Commodity::description

Description of the commodity.

Definition at line 45 of file commodity.h.

◆ faction_modifier

CommodityModifier* Commodity::faction_modifier

Price modifier for different factions.

Definition at line 65 of file commodity.h.

◆ flags

unsigned int Commodity::flags

Commodity flags.

Definition at line 46 of file commodity.h.

◆ gfx_space

glTexture* Commodity::gfx_space

Space graphic.

Definition at line 54 of file commodity.h.

◆ gfx_store

glTexture* Commodity::gfx_store

Store graphic.

Definition at line 53 of file commodity.h.

◆ illegalto

int* Commodity::illegalto

Factions this commodity is illegal to.

Definition at line 59 of file commodity.h.

◆ istemp

int Commodity::istemp

This commodity is temporary.

Definition at line 58 of file commodity.h.

◆ lastPurchasePrice

credits_t Commodity::lastPurchasePrice

Price paid when last purchasing this commodity.

Definition at line 57 of file commodity.h.

◆ name

char* Commodity::name

Name of the commodity.

Definition at line 44 of file commodity.h.

◆ period

double Commodity::period

Period of price fluctuation.

Definition at line 63 of file commodity.h.

◆ population_modifier

double Commodity::population_modifier

Scale of price modification due to population.

Definition at line 64 of file commodity.h.

◆ price

double Commodity::price

Base price of the commodity.

Definition at line 52 of file commodity.h.

◆ price_mod

double Commodity::price_mod

Modifier on price_ref.

Definition at line 50 of file commodity.h.

◆ price_ref

char* Commodity::price_ref

Name of the commodity to which this one is referenced to.

Definition at line 49 of file commodity.h.

◆ raw_price

double Commodity::raw_price

Raw price of the commodity.

Definition at line 51 of file commodity.h.

◆ spob_modifier

CommodityModifier* Commodity::spob_modifier

The price modifier for different spob types.

Definition at line 62 of file commodity.h.


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