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 Map map;
11 
12 int mappoint_array_x[WORLD_SIDE_LEN];
13 int mappoint_array_y[WORLD_SIDE_LEN];
14 int numof_shanties;
15 int numof_communes;
16 int last_built_x, last_built_y;
17 int main_screen_originx, main_screen_originy;
18 
19 int pix_double = 0;
20 
21 #if defined (WIN32)
22 char windowsfontfile[LC_PATH_MAX];
23 #endif
24 
25 int cheat_flag;
26 int modern_windmill_flag = 0;
27 
28 int askdir_lines;
29 char *askdir_path[4];
30 
31 int monthgraph_size = 0;
32 int *monthgraph_pop;
33 int *monthgraph_starve;
34 int *monthgraph_nojobs;
35 int *monthgraph_ppool;
36 
37 #if defined (commentout)
38 int monthgraph_pop[MAPPOINT_STATS_W], monthgraph_starve[MAPPOINT_STATS_W];
39 int monthgraph_nojobs[MAPPOINT_STATS_W], monthgraph_ppool[MAPPOINT_STATS_W];
40 #endif
41 
42 #if defined (commentout)
43 int diffgraph_power[MAPPOINT_STATS_W], diffgraph_coal[MAPPOINT_STATS_W];
44 int diffgraph_goods[MAPPOINT_STATS_W], diffgraph_ore[MAPPOINT_STATS_W];
45 int diffgraph_population[MAPPOINT_STATS_W];
46 int diff_old_population;
47 #endif
48 
49 int sust_dig_ore_coal_tip_flag = 0, sust_port_flag = 0, sustain_flag = 0;
50 int sust_dig_ore_coal_count = 0, sust_port_count = 0, sust_old_money = 0;
51 int sust_old_money_count = 0, sust_old_population = 0, sust_old_population_count = 0;
52 int sust_old_tech = 0, sust_old_tech_count = 0, sust_fire_count = 0;
53 
54 int total_time = 0;    /* game time */
55 
56 int population, starving_population;
57 int housed_population;
58 int unemployed_population, people_pool;
59 int substationx[MAX_NUMOF_SUBSTATIONS], substationy[MAX_NUMOF_SUBSTATIONS];
60 int numof_substations = 0;
61 int marketx[MAX_NUMOF_MARKETS], markety[MAX_NUMOF_MARKETS], numof_markets = 0;
62 int numof_health_centres, max_pop_ever = 0, total_evacuated = 0, total_births = 0;
63 
64 int total_money = 0, income_tax_rate, coal_tax_rate;
65 int dole_rate, transport_cost_rate;
66 int goods_tax_rate;
67 int export_tax_rate, import_cost_rate;
68 int tech_level, highest_tech_level, unnat_deaths;
69 
70 int total_pollution_deaths = 0, total_starve_deaths = 0, total_unemployed_days = 0;
71 int total_unemployed_years = 0;
72 float pollution_deaths_history = 0.0, starve_deaths_history = 0.0;
73 float unemployed_history = 0.0;
74 
75 int university_intake_rate;
76 int power_made, power_used, coal_made, coal_used;
77 int goods_made, goods_used, ore_made, ore_used;
78 int rockets_launched, rockets_launched_success;
79 int coal_survey_done;
80 
81 int selected_type_cost;
82 
83 int ex_tax_dis[NUMOF_DISCOUNT_TRIGGERS] =
84 {
85   EX_DISCOUNT_TRIGGER_1,
86   EX_DISCOUNT_TRIGGER_2,
87   EX_DISCOUNT_TRIGGER_3,
88   EX_DISCOUNT_TRIGGER_4,
89   EX_DISCOUNT_TRIGGER_5,
90   EX_DISCOUNT_TRIGGER_6,
91 };
92 
93 
94