Nation definition. More...
#include <cp_nation.h>
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 |
Nation definition.
Definition at line 45 of file cp_nation.h.
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 |
Unique ID of this nation.
Definition at line 46 of file cp_nation.h.
Referenced by CL_HandleNationData(), CL_NationDrawStats(), CL_ParseNations(), CP_ChooseNation(), CP_CreateCivilianTeam(), E_SaveXML(), MAP_PositionFitsTCPNTypes(), NAT_GetNationByID(), and NAT_SaveXML().
int nation_s::idx |
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 |
Full name of the nation.
Definition at line 47 of file cp_nation.h.
Referenced by B_BuildBase_f(), CL_NationStatsUpdate_f(), CL_StatsUpdate_f(), CP_HarvestMissionGo(), CP_NationHandleBudget(), CP_ReconMissionGroundGo(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), INS_BuildInstallation_f(), MAP_DrawMapMarkers(), NAT_SetHappiness(), UR_CompareByName(), UR_DialogFillNations(), UR_DialogSelectSellNation_f(), and UR_DialogStartSell_f().
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().