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

engglobs.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * engglobs.h
00003  * This file is part of lincity.
00004  * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001.
00005  * ---------------------------------------------------------------------- */
00006 #ifndef __engglobs_h__
00007 #define __engglobs_h__
00008 
00009 #include "lin-city.h"
00010 #include "common.h"
00011 #include "geometry.h"
00012 
00013 
00014 /* GCS -- One of these days I will get this right. */
00015 struct map_struct
00016 {
00017     short type[WORLD_SIDE_LEN][WORLD_SIDE_LEN];
00018     short group[WORLD_SIDE_LEN][WORLD_SIDE_LEN];
00019     int pollution[WORLD_SIDE_LEN][WORLD_SIDE_LEN];
00020     Map_Point_Info info[WORLD_SIDE_LEN][WORLD_SIDE_LEN];
00021 };
00022 typedef struct map_struct Map;
00023 
00024 extern Map map;
00025 
00026 #define MP_TYPE(x,y)   map.type[x][y]
00027 #define MP_GROUP(x,y)  map.group[x][y]
00028 #define MP_POL(x,y)    map.pollution[x][y]
00029 #define MP_INFO(x,y)   map.info[x][y]
00030 
00031 #define MP_SIZE(x,y)   main_groups[MP_GROUP(x,y)].size
00032 #define MP_COLOR(x,y)  main_groups[MP_GROUP(x,y)].colour
00033 #define MP_GROUP_IS_RESIDENCE(x,y)  (GROUP_IS_RESIDENCE(MP_GROUP(x,y)))
00034 
00035 
00036 
00037 extern int mappoint_array_x[WORLD_SIDE_LEN], mappoint_array_y[WORLD_SIDE_LEN];
00038 extern int numof_shanties, numof_communes;
00039 extern int last_built_x, last_built_y;
00040 
00041 extern int sust_dig_ore_coal_tip_flag, sust_port_flag, sustain_flag;
00042 extern int sust_dig_ore_coal_count, sust_port_count, sust_old_money;
00043 extern int sust_old_money_count, sust_old_population, sust_old_population_count;
00044 extern int sust_old_tech, sust_old_tech_count, sust_fire_count;
00045 
00046 extern int total_time;    /* game time */
00047 
00048 extern int population, starving_population;
00049 extern int housed_population;
00050 extern int unemployed_population, people_pool;
00051 extern int substationx[MAX_NUMOF_SUBSTATIONS], substationy[MAX_NUMOF_SUBSTATIONS];
00052 extern int numof_substations;
00053 extern int marketx[MAX_NUMOF_MARKETS], markety[MAX_NUMOF_MARKETS], numof_markets;
00054 extern int numof_health_centres, max_pop_ever, total_evacuated, total_births;
00055 
00056 extern int total_money, income_tax_rate, coal_tax_rate;
00057 extern int dole_rate, transport_cost_rate;
00058 extern int goods_tax_rate;
00059 extern int export_tax_rate, import_cost_rate;
00060 extern int tech_level, highest_tech_level, unnat_deaths;
00061 
00062 extern int total_pollution_deaths, total_starve_deaths, total_unemployed_days;
00063 extern int total_unemployed_years;
00064 extern float pollution_deaths_history, starve_deaths_history;
00065 extern float unemployed_history;
00066 
00067 extern int university_intake_rate;
00068 extern int power_made, power_used, coal_made, coal_used;
00069 extern int goods_made, goods_used, ore_made, ore_used;
00070 extern int rockets_launched, rockets_launched_success;
00071 extern int coal_survey_done;
00072 
00073 extern int selected_type_cost;
00074 
00075 extern int ex_tax_dis[NUMOF_DISCOUNT_TRIGGERS];
00076 
00077 #endif /* __engglobs_h__ */

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