nation_s Struct Reference

Nation definition. More...

#include <cp_nation.h>

Collaboration diagram for nation_s:
Collaboration graph
[legend]

Data Fields

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

Detailed Description

Nation definition.

Definition at line 45 of file cp_nation.h.


Field Documentation

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

Definition at line 50 of file cp_nation.h.

Referenced by MAP_GetNation().

const char* nation_s::id

position in the nations array

Definition at line 48 of file cp_nation.h.

Referenced by CL_ParseNations(), and CP_UpdateNationXVIInfection().

How many (monthly) credits.

Definition at line 59 of file cp_nation.h.

Referenced by NAT_GetFunding().

How many (monthly) scientists.

Definition at line 61 of file cp_nation.h.

Referenced by CP_NationHandleBudget().

How many (monthly) soldiers.

Definition at line 60 of file cp_nation.h.

Referenced by CP_NationHandleBudget().

const char* nation_s::name

Nation position on geoscape.

Definition at line 51 of file cp_nation.h.

Referenced by MAP_DrawMapMarkers().

nationInfo_t nation_s::stats[MONTHS_PER_YEAR]

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 53 of file cp_nation.h.

Referenced by AB_BaseSearchedByNations(), CL_HandleNationData(), CL_NationDrawStats(), CL_NationsMaxFunding(), CL_ParseNations(), CP_BuildBaseGovernmentLeave(), CP_ChangeNationHappiness_f(), CP_CheckLostCondition(), CP_ChooseNation(), CP_GetAverageXVIRate(), CP_NationBackupMonthlyData(), CP_NationHandleBudget(), CP_UpdateNationXVIInfection(), E_RefreshUnhiredEmployeeGlobalList(), MAP_DrawMapMarkers(), NAT_GetFunding(), NAT_GetHappinessString(), NAT_LoadXML(), NAT_SaveXML(), NAT_SetHappiness(), UR_CompareByHappiness(), UR_DialogInitSell_f(), and UR_DialogStartSell_f().


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

Generated by  doxygen 1.6.2