cp_nations.c File Reference

Campaign nations code. More...

#include "../cl_shared.h"
#include "cp_campaign.h"
#include "cp_nations.h"
#include "cp_time.h"
Include dependency graph for cp_nations.c:

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.

Detailed Description

Campaign nations code.

Definition in file cp_nations.c.


Function Documentation

void CP_NationBackupMonthlyData ( void   ) 

Backs up each nation's relationship values.

Note:
Right after the copy the stats for the current month are the same as the ones from the (end of the) previous month. They will change while the curent month is running of course :)
Todo:
other stuff to back up?

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   ) 

Generated by  doxygen 1.6.2