Campaign nations headers. More...
Go to the source code of this file.
Functions | |
void | CP_NationHandleBudget (void) |
Update the nation data from all parsed nation each month. | |
void | CP_NationBackupMonthlyData (void) |
Backs up each nation's relationship values. |
Campaign nations headers.
Definition in file cp_nations.h.
void CP_NationBackupMonthlyData | ( | void | ) |
Backs up each nation's relationship values.
Back up nation relationship . "inuse" is copied as well so we do not need to set it anywhere.
Definition at line 157 of file cp_nations.c.
References ccs, i, MONTHS_PER_YEAR, ccs_s::nations, ccs_s::numNations, and nation_s::stats.
Referenced by CL_CampaignRun().
void CP_NationHandleBudget | ( | void | ) |
Update the nation data from all parsed nation each month.
Definition at line 41 of file cp_nations.c.
References _, AIR_GetNextFromBase(), B_GetFoundedBaseByIDX(), ccs, employee_s::chr, CL_GameTimeStop(), CL_UpdateCredits(), Com_sprintf(), CP_GetSalaryAdministrative(), CP_GetSalaryBaseEmployee(), CP_GetSalaryRankBonusEmployee(), CP_GetSalaryUpKeepBase(), ccs_s::credits, E_CreateEmployee(), E_GetEmployeeString(), E_GetNextHired(), E_RefreshUnhiredEmployeeGlobalList(), EMPL_PILOT, EMPL_SCIENTIST, EMPL_SOLDIER, EMPL_WORKER, nationInfo_s::happiness, i, int(), MAX_BASES, MAX_EMPL, nation_s::maxScientists, nation_s::maxSoldiers, MS_AddNewMessageSound(), MSG_STANDARD, base_s::name, nation_s::name, NAT_GetFunding(), NAT_GetHappinessString(), ccs_s::nations, ngettext, ccs_s::numNations, aircraft_s::price, qfalse, qtrue, chrScoreGlobal_s::rank, SALARY_AIRCRAFT_DIVISOR, SALARY_AIRCRAFT_FACTOR, SALARY_DEBT_INTEREST, character_s::score, nation_s::stats, and employee_s::type.
Referenced by CL_CampaignRun().