#include "lcconfig.h"#include <stdio.h>#include <stdlib.h>#include "lin-city.h"#include "lctypes.h"#include "engglobs.h"#include "pbar.h"#include "stats.h"Go to the source code of this file.
|
|
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 }
|
|
|
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 }
|
|
|
Definition at line 186 of file stats.c. 00187 {
00188 init_daily();
00189 init_monthly();
00190 init_yearly();
00191 init_lastyear();
00192 }
|
|
|
Definition at line 144 of file stats.c. 00145 {
00146 ly_income_tax = 0;
00147 ly_coal_tax = 0;
00148 ly_goods_tax = 0;
00149 ly_export_tax = 0;
00150 ly_import_cost = 0;
00151 ly_other_cost = 0;
00152 ly_unemployment_cost = 0;
00153 ly_transport_cost = 0;
00154 ly_university_cost = 0;
00155 ly_recycle_cost = 0;
00156 ly_school_cost = 0;
00157 ly_deaths_cost = 0;
00158 ly_health_cost = 0;
00159 ly_rocket_pad_cost = 0;
00160 ly_interest = 0;
00161 ly_windmill_cost = 0;
00162 ly_cricket_cost = 0;
00163 ly_fire_cost = 0;
00164 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
||||||||||||
|
Definition at line 195 of file stats.c. 00196 {
00197 food_in_markets += MP_INFO(x,y).int_1;
00198 jobs_in_markets += MP_INFO(x,y).int_2;
00199 coal_in_markets += MP_INFO(x,y).int_3;
00200 goods_in_markets += MP_INFO(x,y).int_4;
00201 ore_in_markets += MP_INFO(x,y).int_5;
00202 steel_in_markets += MP_INFO(x,y).int_6;
00203 waste_in_markets += MP_INFO(x,y).int_7;
00204 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1