1 /* ---------------------------------------------------------------------- * 2 * stats.h 3 * This file is part of lincity. 4 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2002. 5 * Portions copyright (c) Corey Keasling, 2000-2002. 6 * ---------------------------------------------------------------------- */ 7 8 #ifndef __stats_h__ 9 #define __stats_h__ 10 11 /* Statistics, Accumulators and Counters all reside here */ 12 13 /* Daily accumulators */ 14 15 /* 16 Note on variables (GCS): 17 -- 18 Variables that begin with a "t" (e.g. tpopulation) are monthly 19 accumulators. They are initialized to zero on the first day of 20 the month. 21 -- 22 The yearly accumulators have no prefix (e.g. income_tax). 23 -- 24 The daily accumulators have no prefix either (e.g. population). 25 -- 26 Variables that begin with a "ly" (Last Year; e.g. ly_university_cost) 27 are yearly display variables. They will be displayed in the mini-map 28 when the user clicks on the pound sterling icon. 29 */ 30 31 /* daily */ 32 extern int food_in_markets; 33 extern int jobs_in_markets; 34 extern int coal_in_markets; 35 extern int goods_in_markets; 36 extern int ore_in_markets; 37 extern int steel_in_markets; 38 extern int waste_in_markets; 39 40 /* monthly */ 41 extern int tfood_in_markets; 42 extern int tjobs_in_markets; 43 extern int tcoal_in_markets; 44 extern int tgoods_in_markets; 45 extern int tore_in_markets; 46 extern int tsteel_in_markets; 47 extern int twaste_in_markets; 48 extern int tpopulation; 49 extern int tstarving_population; 50 extern int tunemployed_population; 51 extern int twaste_in_markets; 52 53 /* yearly */ 54 extern int income_tax; 55 extern int coal_tax; 56 extern int goods_tax; 57 extern int export_tax; 58 extern int import_cost; 59 extern int unemployment_cost; 60 extern int transport_cost; 61 extern int windmill_cost; 62 extern int university_cost; 63 extern int recycle_cost; 64 extern int deaths_cost; 65 extern int health_cost; 66 extern int rocket_pad_cost; 67 extern int school_cost; 68 extern int fire_cost; 69 extern int cricket_cost; 70 extern int other_cost; 71 72 /* yearly */ 73 extern int ly_income_tax; 74 extern int ly_coal_tax; 75 extern int ly_goods_tax; 76 extern int ly_export_tax; 77 extern int ly_import_cost; 78 extern int ly_other_cost; 79 extern int ly_unemployment_cost; 80 extern int ly_transport_cost; 81 extern int ly_fire_cost; 82 extern int ly_university_cost; 83 extern int ly_recycle_cost; 84 extern int ly_school_cost; 85 extern int ly_deaths_cost; 86 extern int ly_health_cost; 87 extern int ly_rocket_pad_cost; 88 extern int ly_interest; 89 extern int ly_windmill_cost; 90 extern int ly_cricket_cost; 91 92 /* Averaging variables */ 93 extern int data_last_month; 94 95 /* Function prototypes */ 96 void init_inventory(void); 97 void inventory(int x, int y); 98 void init_daily(void); 99 void init_monthly(void); 100 void init_yearly(void); 101 void add_daily_to_monthly(void); 102 103 #endif 104