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

Nation definition. More...

#include <cp_nation.h>

Collaboration diagram for nation_t:
Collaboration graph

Data Fields

const char * id
const char * name
int idx
vec4_t color
vec2_t pos
nationInfo_t stats [DateTime::MONTHS_PER_YEAR]
int maxFunding
int maxSoldiers
int maxScientists
int maxWorkers
int maxPilots

Detailed Description

Nation definition.

Definition at line 46 of file cp_nation.h.

Field Documentation

◆ color

vec4_t nation_t::color

The color this nation uses in the color-coded earth-map

Definition at line 51 of file cp_nation.h.

◆ id

const char* nation_t::id

Unique ID of this nation.

Definition at line 47 of file cp_nation.h.

Referenced by CL_ParseNations(), CP_CreateCivilianTeam(), and GEO_PositionFitsTCPNTypes().

◆ idx

int nation_t::idx

position in the nations array

Definition at line 49 of file cp_nation.h.

Referenced by CL_ParseNations(), and CP_UpdateNationXVIInfection().

◆ maxFunding

int nation_t::maxFunding

How many (monthly) credits.

Definition at line 60 of file cp_nation.h.

Referenced by NAT_GetFunding().

◆ maxPilots

int nation_t::maxPilots

How many (monthly) pilots.

Definition at line 64 of file cp_nation.h.

◆ maxScientists

int nation_t::maxScientists

How many (monthly) scientists.

Definition at line 62 of file cp_nation.h.

◆ maxSoldiers

int nation_t::maxSoldiers

How many (monthly) soldiers.

Definition at line 61 of file cp_nation.h.

◆ maxWorkers

int nation_t::maxWorkers

How many (monthly) workers.

Definition at line 63 of file cp_nation.h.

◆ name

◆ pos

vec2_t nation_t::pos

Nation position on geoscape.

Definition at line 52 of file cp_nation.h.

◆ stats

Detailed information about the history of this nations relationship toward PHALANX and the aliens. The first entry [0] is the current month - all following entries are stored older months. Combined with the funding info below we can generate an overview over time.

Definition at line 54 of file cp_nation.h.

Referenced by CL_ParseNations(), NAT_GetCurrentMonthInfo(), NAT_GetFunding(), NAT_LoadXML(), and NAT_SetHappiness().


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