80 #define NAT_Foreach(var) LIST_Foreach(ccs.nations, nation_t, var)
struct city_s city_t
City definition.
city_t * CITY_GetByPos(vec2_t pos)
Finds a city by it's geoscape coordinates.
void NAT_UpdateHappinessForAllNations(const float minhappiness)
Lower happiness of nations depending on alien activity.
void CITY_Parse(const char *name, const char **text)
Parse the city data from script file.
city_t * CITY_GetById(const char *cityId)
Finds a city by it's scripted identifier.
int NAT_GetFunding(const nation_t *const nation, int month)
Get the funding of a nation at a certain month.
const nationInfo_t * NAT_GetCurrentMonthInfo(const nation_t *const nation)
Get the current month nation stats.
void CL_ParseNations(const char *name, const char **text)
Parse the nation data from script file.
void NAT_Shutdown(void)
Closing actions for nation-subsystem.
struct nationInfo_s nationInfo_t
Detailed information about the nation relationship (currently per month, but could be used elsewhere)...
void NAT_BackupMonthlyData(void)
Backs up each nation's relationship values.
nationInfo_t stats[MONTHS_PER_YEAR]
nation_t * NAT_GetNationByID(const char *nationID)
Return a nation-pointer by the nations id.
const char * NAT_GetCurrentHappinessString(const nation_t *nation)
Translates the current nation happiness float value to a string.
nation_t * NAT_GetRandom(void)
Return a pointer to a random nation.
void NAT_HandleBudget(const struct campaign_s *campaign)
void NAT_SetHappiness(const float minhappiness, nation_t *nation, const float happiness)
Updates the nation happiness.
bool NAT_ScriptSanityCheck(void)
Checks the parsed nations and cities for errors.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
const char * NAT_GetHappinessString(const float happiness)
Translates the nation happiness float value to a string.
void CP_HandleNationData(float minHappiness, struct mission_s *mis, const nation_t *nation, const struct missionResults_s *results, bool won)
struct nation_s nation_t
Nation definition.
void NAT_InitStartup(void)
Init actions for nation-subsystem.
Structure with mission info needed to create results summary at menu won.
Detailed information about the nation relationship (currently per month, but could be used elsewhere)...