naev 0.12.6
Commodity Struct Reference

Represents a commodity. More...

#include <commodity.h>

Collaboration diagram for Commodity:

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 57 of file commodity.h.

Field Documentation

◆ description

char* Commodity::description

Description of the commodity.

Definition at line 59 of file commodity.h.

◆ faction_modifier

CommodityModifier* Commodity::faction_modifier

Price modifier for different factions.

Definition at line 84 of file commodity.h.

◆ flags

unsigned int Commodity::flags

Commodity flags.

Definition at line 60 of file commodity.h.

◆ gfx_space

glTexture* Commodity::gfx_space

Space graphic.

Definition at line 69 of file commodity.h.

◆ gfx_store

glTexture* Commodity::gfx_store

Store graphic.

Definition at line 68 of file commodity.h.

◆ illegalto

int* Commodity::illegalto

Factions this commodity is illegal to.

Definition at line 75 of file commodity.h.

◆ istemp

int Commodity::istemp

This commodity is temporary.

Definition at line 74 of file commodity.h.

◆ lastPurchasePrice

credits_t Commodity::lastPurchasePrice

Price paid when last purchasing this commodity.

Definition at line 73 of file commodity.h.

◆ name

char* Commodity::name

Name of the commodity.

Definition at line 58 of file commodity.h.

◆ period

double Commodity::period

Period of price fluctuation.

Definition at line 80 of file commodity.h.

◆ population_modifier

double Commodity::population_modifier

Scale of price modification due to population.

Definition at line 81 of file commodity.h.

◆ price

double Commodity::price

Base price of the commodity.

Definition at line 67 of file commodity.h.

◆ price_mod

double Commodity::price_mod

Modifier on price_ref.

Definition at line 65 of file commodity.h.

◆ price_ref

char* Commodity::price_ref

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

Definition at line 63 of file commodity.h.

◆ raw_price

double Commodity::raw_price

Raw price of the commodity.

Definition at line 66 of file commodity.h.

◆ spob_modifier

CommodityModifier* Commodity::spob_modifier

The price modifier for different spob types.

Definition at line 79 of file commodity.h.


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