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

stats.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * stats.h
00003  * This file is part of lincity.
00004  * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2002.
00005  * Portions copyright (c) Corey Keasling, 2000-2002.
00006  * ---------------------------------------------------------------------- */
00007 
00008 #ifndef __stats_h__
00009 #define __stats_h__ 
00010 
00011 /* Statistics, Accumulators and Counters all reside here */
00012 
00013 /* Daily accumulators */
00014 
00015 /*
00016   Note on variables (GCS):
00017   --
00018   Variables that begin with a "t" (e.g. tpopulation) are monthly 
00019   accumulators.  They are initialized to zero on the first day of 
00020   the month.
00021   --
00022   The yearly accumulators have no prefix (e.g. income_tax).
00023   --
00024   The daily accumulators have no prefix either (e.g. population).
00025   --
00026   Variables that begin with a "ly" (Last Year;  e.g. ly_university_cost)
00027   are yearly display variables.  They will be displayed in the mini-map
00028   when the user clicks on the pound sterling icon.
00029 */
00030 
00031 /* daily */
00032 extern int food_in_markets; 
00033 extern int jobs_in_markets; 
00034 extern int coal_in_markets; 
00035 extern int goods_in_markets; 
00036 extern int ore_in_markets; 
00037 extern int steel_in_markets; 
00038 extern int waste_in_markets; 
00039 
00040 /* monthly */
00041 extern int tfood_in_markets; 
00042 extern int tjobs_in_markets; 
00043 extern int tcoal_in_markets; 
00044 extern int tgoods_in_markets; 
00045 extern int tore_in_markets; 
00046 extern int tsteel_in_markets; 
00047 extern int twaste_in_markets;
00048 extern int tpopulation; 
00049 extern int tstarving_population; 
00050 extern int tunemployed_population; 
00051 extern int twaste_in_markets;
00052 
00053 /* yearly */
00054 extern int income_tax; 
00055 extern int coal_tax; 
00056 extern int goods_tax; 
00057 extern int export_tax; 
00058 extern int import_cost;
00059 extern int unemployment_cost; 
00060 extern int transport_cost; 
00061 extern int windmill_cost; 
00062 extern int university_cost; 
00063 extern int recycle_cost; 
00064 extern int deaths_cost; 
00065 extern int health_cost; 
00066 extern int rocket_pad_cost; 
00067 extern int school_cost; 
00068 extern int fire_cost; 
00069 extern int cricket_cost; 
00070 extern int other_cost;
00071 
00072 /* yearly */
00073 extern int ly_income_tax; 
00074 extern int ly_coal_tax; 
00075 extern int ly_goods_tax; 
00076 extern int ly_export_tax; 
00077 extern int ly_import_cost; 
00078 extern int ly_other_cost; 
00079 extern int ly_unemployment_cost; 
00080 extern int ly_transport_cost; 
00081 extern int ly_fire_cost; 
00082 extern int ly_university_cost; 
00083 extern int ly_recycle_cost; 
00084 extern int ly_school_cost; 
00085 extern int ly_deaths_cost; 
00086 extern int ly_health_cost; 
00087 extern int ly_rocket_pad_cost; 
00088 extern int ly_interest; 
00089 extern int ly_windmill_cost;
00090 extern int ly_cricket_cost;
00091 
00092 /* Averaging variables */
00093 extern int data_last_month;
00094 
00095 /* Function prototypes */
00096 void init_inventory(void);
00097 void inventory(int x, int y);
00098 void init_daily(void);
00099 void init_monthly(void);
00100 void init_yearly(void);
00101 void add_daily_to_monthly(void);
00102 
00103 #endif

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