UFO: Alien Invasion
Loading...
Searching...
No Matches
production_t Struct Reference

Holds all information for the production of one item-type. More...

#include <cp_produce.h>

Collaboration diagram for production_t:
Collaboration graph

Data Fields

int idx
productionData_t data
int totalFrames
int frame
signed int amount
bool creditMessage

Detailed Description

Holds all information for the production of one item-type.

Definition at line 59 of file cp_produce.h.

Field Documentation

◆ amount

◆ creditMessage

bool production_t::creditMessage

Used in No Credits message adding.

Definition at line 67 of file cp_produce.h.

Referenced by PR_CheckFrame().

◆ data

◆ frame

int production_t::frame

the actual frame counter

Definition at line 65 of file cp_produce.h.

Referenced by PR_FinishProduction(), PR_GetRemainingMinutes(), PR_LoadXML(), PR_ProductionRun(), PR_SaveXML(), and PR_UpdateProductionCap().

◆ idx

int production_t::idx

Self reference in the production list. Mainly used for moving/deleting them.

Definition at line 61 of file cp_produce.h.

Referenced by PR_DecreaseProduction(), PR_LoadXML(), PR_QueueMove(), PR_QueueNew(), PR_ShowActiveProduction_f(), and US_RemoveStoredUFO().

◆ totalFrames

int production_t::totalFrames

total number of frames needed to finish the production (it can change with worker count and so)

Definition at line 64 of file cp_produce.h.

Referenced by PR_GetRemainingMinutes(), PR_LoadXML(), PR_PostLoadInitProgress(), PR_QueueNew(), and PR_UpdateProductionCap().


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