Main Page | Data Structures | Directories | File List | Data Fields | Globals

stats.h File Reference

Go to the source code of this file.

Functions

void init_inventory (void)
void inventory (int x, int y)
void init_daily (void)
void init_monthly (void)
void init_yearly (void)
void add_daily_to_monthly (void)

Variables

int food_in_markets
int jobs_in_markets
int coal_in_markets
int goods_in_markets
int ore_in_markets
int steel_in_markets
int waste_in_markets
int tfood_in_markets
int tjobs_in_markets
int tcoal_in_markets
int tgoods_in_markets
int tore_in_markets
int tsteel_in_markets
int twaste_in_markets
int tpopulation
int tstarving_population
int tunemployed_population
int income_tax
int coal_tax
int goods_tax
int export_tax
int import_cost
int unemployment_cost
int transport_cost
int windmill_cost
int university_cost
int recycle_cost
int deaths_cost
int health_cost
int rocket_pad_cost
int school_cost
int fire_cost
int cricket_cost
int other_cost
int ly_income_tax
int ly_coal_tax
int ly_goods_tax
int ly_export_tax
int ly_import_cost
int ly_other_cost
int ly_unemployment_cost
int ly_transport_cost
int ly_fire_cost
int ly_university_cost
int ly_recycle_cost
int ly_school_cost
int ly_deaths_cost
int ly_health_cost
int ly_rocket_pad_cost
int ly_interest
int ly_windmill_cost
int ly_cricket_cost
int data_last_month


Function Documentation

void add_daily_to_monthly void   ) 
 

Definition at line 211 of file stats.c.

00212 {
00213     data_last_month++;
00214     
00215     tpopulation += population;
00216     tstarving_population += starving_population;
00217     tfood_in_markets += food_in_markets / 1000;
00218     tjobs_in_markets += jobs_in_markets / 1000;
00219     tcoal_in_markets += coal_in_markets / 250;
00220     tgoods_in_markets += goods_in_markets / 500;
00221     tore_in_markets += ore_in_markets / 500;
00222     tsteel_in_markets += steel_in_markets / 25;
00223     twaste_in_markets += waste_in_markets;
00224     tunemployed_population += unemployed_population;
00225 }

void init_daily void   ) 
 

Definition at line 92 of file stats.c.

00093 {
00094     population = 0;
00095     starving_population = 0;
00096     unemployed_population = 0;
00097     food_in_markets = 0;
00098     jobs_in_markets = 0;
00099     coal_in_markets = 0;
00100     goods_in_markets = 0;
00101     ore_in_markets = 0;
00102     steel_in_markets = 0;
00103 }

void init_inventory void   ) 
 

Definition at line 186 of file stats.c.

00187 {
00188     init_daily();
00189     init_monthly();
00190     init_yearly();
00191     init_lastyear();
00192 }

void init_monthly void   ) 
 

Definition at line 106 of file stats.c.

00107 {
00108     data_last_month = 0;
00109     
00110     tpopulation = 0;
00111     tstarving_population = 0;
00112     tfood_in_markets = 0;
00113     tjobs_in_markets = 0;
00114     tcoal_in_markets = 0;
00115     tgoods_in_markets = 0;
00116     tore_in_markets = 0;
00117     tsteel_in_markets = 0;
00118     tunemployed_population = 0;
00119     unnat_deaths = 0;
00120 }

void init_yearly void   ) 
 

Definition at line 123 of file stats.c.

00124 {
00125     income_tax = 0;
00126     coal_tax = 0;
00127     unemployment_cost = 0;
00128     transport_cost = 0;
00129     goods_tax = 0;
00130     export_tax = 0;
00131     import_cost = 0;
00132     windmill_cost = 0;
00133     university_cost = 0;
00134     recycle_cost = 0;
00135     deaths_cost = 0;
00136     health_cost = 0;
00137     rocket_pad_cost = 0;
00138     school_cost = 0;
00139     fire_cost = 0;
00140     cricket_cost = 0;
00141 }

void inventory int  x,
int  y
 

Definition at line 167 of file stats.c.

00168 {
00169 
00170     switch(get_group_of_type(MP_TYPE(x,y))) {
00171 
00172     case GROUP_MARKET: 
00173         inventory_market(x, y); 
00174         break;
00175     
00176     default: {
00177         printf("Default in inventory(%d,%d): got %d\n"), 
00178             x, y, get_group_of_type(MP_TYPE(x,y));
00179         break;
00180     }
00181 
00182     }
00183 }


Variable Documentation

int coal_in_markets
 

Definition at line 24 of file stats.c.

int coal_tax
 

Definition at line 44 of file stats.c.

int cricket_cost
 

Definition at line 58 of file stats.c.

int data_last_month
 

Definition at line 82 of file stats.c.

int deaths_cost
 

Definition at line 53 of file stats.c.

int export_tax
 

Definition at line 46 of file stats.c.

int fire_cost
 

Definition at line 57 of file stats.c.

int food_in_markets
 

Definition at line 22 of file stats.c.

int goods_in_markets
 

Definition at line 25 of file stats.c.

int goods_tax
 

Definition at line 45 of file stats.c.

int health_cost
 

Definition at line 54 of file stats.c.

int import_cost
 

Definition at line 47 of file stats.c.

int income_tax
 

Definition at line 43 of file stats.c.

int jobs_in_markets
 

Definition at line 23 of file stats.c.

int ly_coal_tax
 

Definition at line 63 of file stats.c.

int ly_cricket_cost
 

Definition at line 78 of file stats.c.

int ly_deaths_cost
 

Definition at line 73 of file stats.c.

int ly_export_tax
 

Definition at line 65 of file stats.c.

int ly_fire_cost
 

Definition at line 79 of file stats.c.

int ly_goods_tax
 

Definition at line 64 of file stats.c.

int ly_health_cost
 

Definition at line 74 of file stats.c.

int ly_import_cost
 

Definition at line 66 of file stats.c.

int ly_income_tax
 

Definition at line 62 of file stats.c.

int ly_interest
 

Definition at line 76 of file stats.c.

int ly_other_cost
 

Definition at line 67 of file stats.c.

int ly_recycle_cost
 

Definition at line 71 of file stats.c.

int ly_rocket_pad_cost
 

Definition at line 75 of file stats.c.

int ly_school_cost
 

Definition at line 72 of file stats.c.

int ly_transport_cost
 

Definition at line 69 of file stats.c.

int ly_unemployment_cost
 

Definition at line 68 of file stats.c.

int ly_university_cost
 

Definition at line 70 of file stats.c.

int ly_windmill_cost
 

Definition at line 77 of file stats.c.

int ore_in_markets
 

Definition at line 26 of file stats.c.

int other_cost
 

Definition at line 59 of file stats.c.

int recycle_cost
 

Definition at line 52 of file stats.c.

int rocket_pad_cost
 

Definition at line 55 of file stats.c.

int school_cost
 

Definition at line 56 of file stats.c.

int steel_in_markets
 

Definition at line 27 of file stats.c.

int tcoal_in_markets
 

Definition at line 33 of file stats.c.

int tfood_in_markets
 

Definition at line 31 of file stats.c.

int tgoods_in_markets
 

Definition at line 34 of file stats.c.

int tjobs_in_markets
 

Definition at line 32 of file stats.c.

int tore_in_markets
 

Definition at line 35 of file stats.c.

int tpopulation
 

Definition at line 38 of file stats.c.

int transport_cost
 

Definition at line 49 of file stats.c.

int tstarving_population
 

Definition at line 39 of file stats.c.

int tsteel_in_markets
 

Definition at line 36 of file stats.c.

int tunemployed_population
 

Definition at line 40 of file stats.c.

int twaste_in_markets
 

Definition at line 51 of file stats.h.

int unemployment_cost
 

Definition at line 48 of file stats.c.

int university_cost
 

Definition at line 51 of file stats.c.

int waste_in_markets
 

Definition at line 28 of file stats.c.

int windmill_cost
 

Definition at line 50 of file stats.c.


Generated on Sun Dec 26 11:23:42 2004 for lincity by  doxygen 1.3.9.1