1 /* ---------------------------------------------------------------------- * 2 * engglobs.c 3 * This file is part of lincity. 4 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001. 5 * ---------------------------------------------------------------------- */ 6 #include "engglobs.h" 7 //#include "common.h" 8 #include "fileutil.h" 9 10 /* load/save version for compatibility with(out) waterwell */ 11 int ldsv_version; 12 int use_waterwell=true; 13 14 Map map; 15 16 int mappoint_array_x[WORLD_SIDE_LEN]; 17 int mappoint_array_y[WORLD_SIDE_LEN]; 18 int numof_shanties; 19 int numof_communes; 20 int main_screen_originx, main_screen_originy; 21 22 int pix_double = 0; 23 24 int cheat_flag; 25 int modern_windmill_flag = 0; 26 27 int askdir_lines; 28 char *askdir_path[4]; 29 30 int monthgraph_size = 0; 31 int *monthgraph_pop; 32 int *monthgraph_starve; 33 int *monthgraph_nojobs; 34 int *monthgraph_ppool; 35 36 int sust_dig_ore_coal_tip_flag = 0, sust_port_flag = 0, sustain_flag = 0; 37 int sust_dig_ore_coal_count = 0, sust_port_count = 0, sust_old_money = 0; 38 int sust_old_money_count = 0, sust_old_population = 0, sust_old_population_count = 0; 39 int sust_old_tech = 0, sust_old_tech_count = 0, sust_fire_count = 0; 40 41 int total_time = 0; /* game time */ 42 int deadline = 0; 43 44 int population, starving_population; 45 int housed_population; 46 int unemployed_population, people_pool; 47 int substationx[MAX_NUMOF_SUBSTATIONS], substationy[MAX_NUMOF_SUBSTATIONS]; 48 int numof_substations = 0; 49 int marketx[MAX_NUMOF_MARKETS], markety[MAX_NUMOF_MARKETS], numof_markets = 0; 50 int numof_health_centres, max_pop_ever = 0, total_evacuated = 0, total_births = 0; 51 int numof_waterwell = 0; 52 53 int total_money = 0, income_tax_rate, coal_tax_rate; 54 int dole_rate, transport_cost_rate; 55 int goods_tax_rate; 56 int export_tax_rate, import_cost_rate; 57 int tech_level, highest_tech_level, unnat_deaths; 58 59 int total_pollution_deaths = 0, total_starve_deaths = 0, total_unemployed_days = 0; 60 int total_unemployed_years = 0; 61 float pollution_deaths_history = 0.0, starve_deaths_history = 0.0; 62 float unemployed_history = 0.0; 63 64 int university_intake_rate; 65 int power_made, power_used, coal_made, coal_used; 66 int goods_made, goods_used, ore_made, ore_used; 67 int rockets_launched, rockets_launched_success; 68 int coal_survey_done; 69 70 int selected_type_cost; 71 72 int ex_tax_dis[NUMOF_DISCOUNT_TRIGGERS] = { 73 EX_DISCOUNT_TRIGGER_1, 74 EX_DISCOUNT_TRIGGER_2, 75 EX_DISCOUNT_TRIGGER_3, 76 EX_DISCOUNT_TRIGGER_4, 77 EX_DISCOUNT_TRIGGER_5, 78 EX_DISCOUNT_TRIGGER_6, 79 }; 80 81 82 int global_aridity; 83 int global_mountainity; 84 ground_struct ground[WORLD_SIDE_LEN][WORLD_SIDE_LEN]; 85 int alt_min, alt_max, alt_step; 86 87 int fast_time_for_year; 88