UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
production_s Struct Reference

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

#include <cp_produce.h>

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

bool production_s::creditMessage

Used in No Credits message adding.

Definition at line 67 of file cp_produce.h.

Referenced by PR_CheckFrame().

int production_s::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().

int production_s::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_ProductionDown_f(), PR_ProductionIncrease_f(), PR_ProductionStop_f(), PR_ProductionUp_f(), PR_QueueMove(), PR_QueueNew(), PR_ShowActiveProduction_f(), and US_RemoveStoredUFO().

int production_s::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: