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

cliglobs.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * cliglobs.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 __cliglobs_h__
00007 #define __cliglobs_h__
00008 
00009 #include "common.h"
00010 #include "lin-city.h"
00011 #include "geometry.h"
00012 
00013 extern Screen_Geometry scr;
00014 extern short mappointoldtype[WORLD_SIDE_LEN][WORLD_SIDE_LEN];
00015 
00016 extern int lc_mouse_type;
00017 extern char progbox[(PROGBOXW + 16) * (PROGBOXH + 16)];
00018 
00019 /* Preferences */
00020 extern int time_multiplex_stats;
00021 extern int suppress_popups;
00022 extern int overwrite_transport_flag;
00023 extern int confine_flag;
00024 extern int skip_splash_screen;
00025 extern int no_init_help;
00026 extern int suppress_firsttime_module_help;
00027 
00028 extern int main_screen_flag;
00029 extern int mappoint_stats_flag, mappoint_stats_time;
00030 extern int mini_screen_flags, mini_screen_time;
00031 extern int mini_screen_port_x, mini_screen_port_y;
00032 
00033 extern float gamma_correct_red, gamma_correct_green, gamma_correct_blue;
00034 
00035 extern int mouse_initialized; /* wcoreyk */
00036 extern int cs_mouse_x, cs_mouse_y, cs_mouse_button;     /* current mouse status */
00037 extern int cs_mouse_shifted;    /* shift key pressed with mouse. */
00038 extern int cs_mouse_xmax, cs_mouse_ymax, omx, omy, mox, moy;
00039 
00040 extern int mouse_hide_count;
00041 #if defined (WIN32)
00042 /* extern int cs_current_mouse_x, cs_current_mouse_y, cs_current_mouse_button; */
00043 extern int cs_square_mouse_visible;
00044 #endif
00045 extern int kmousex, kmousey, kmouse_val, reset_mouse_flag, mt_flag;
00046 extern int modern_windmill_flag;
00047 
00048 extern char under_square_mouse_pointer_top[20 * 2 * 4];
00049 extern char under_square_mouse_pointer_left[18 * 2 * 4];
00050 extern char under_square_mouse_pointer_right[18 * 2 * 4];
00051 extern char under_square_mouse_pointer_bottom[20 * 2 * 4];
00052 extern int mouse_type;
00053 
00054 extern int mt_start_posx, mt_start_posy, mt_current_posx, mt_current_posy;
00055 extern int main_screen_originx, main_screen_originy;
00056 
00057 extern long real_time;
00058 extern int screen_refresh_flag;
00059 
00060 extern int total_money, income_tax_rate, coal_tax_rate;
00061 extern int dole_rate, transport_cost_rate;
00062 extern int goods_tax_rate;
00063 extern int export_tax_rate, import_cost_rate;
00064 extern int tech_level, highest_tech_level, unnat_deaths;
00065 
00066 extern char *months[];
00067 
00068 extern int monthgraph_size;
00069 extern int *monthgraph_pop;
00070 extern int *monthgraph_starve;
00071 extern int *monthgraph_nojobs;
00072 extern int *monthgraph_ppool;
00073 
00074 extern char *up_pbar1_graphic, *up_pbar2_graphic;
00075 extern char *down_pbar1_graphic, *down_pbar2_graphic, *pop_pbar_graphic;
00076 extern char *tech_pbar_graphic, *food_pbar_graphic, *jobs_pbar_graphic;
00077 extern char *money_pbar_graphic, *coal_pbar_graphic, *goods_pbar_graphic;
00078 extern char *ore_pbar_graphic, *steel_pbar_graphic;
00079 extern char *pause_button1_off, *pause_button2_off;
00080 extern char *pause_button1_on, *pause_button2_on;
00081 extern char *fast_button1_off, *fast_button2_off;
00082 extern char *fast_button1_on, *fast_button2_on;
00083 extern char *med_button1_off, *med_button2_off;
00084 extern char *med_button1_on, *med_button2_on;
00085 extern char *slow_button1_off, *slow_button2_off;
00086 extern char *slow_button1_on, *slow_button2_on;
00087 extern char *results_button1, *results_button2;
00088 extern char *toveron_button1, *toveron_button2;
00089 extern char *toveroff_button1, *toveroff_button2;
00090 #ifdef LC_X11
00091 extern char *confine_button, *unconfine_button;
00092 #endif
00093 extern int pause_flag, slow_flag, med_flag, fast_flag;
00094 extern int prefs_flag;
00095 extern int prefs_drawn_flag;
00096 
00097 extern char *ms_pollution_button_graphic, *ms_normal_button_graphic;
00098 extern char *ms_fire_cover_button_graphic, *ms_health_cover_button_graphic;
00099 extern char *ms_cricket_cover_button_graphic;
00100 extern char *ms_ub40_button_graphic, *ms_coal_button_graphic;
00101 extern char *ms_starve_button_graphic, *ms_ocost_button_graphic;
00102 extern char *ms_power_button_graphic;
00103 extern char *checked_box_graphic, *unchecked_box_graphic;
00104 
00105 extern char market_cb_gbuf[MARKET_CB_W * MARKET_CB_H];
00106 extern int market_cb_flag, mcbx, mcby, market_cb_drawn_flag;
00107 extern int port_cb_flag, port_cb_drawn_flag;
00108 
00109 #if defined (commentout)
00110 extern int diffgraph_power[MAPPOINT_STATS_W], diffgraph_coal[MAPPOINT_STATS_W];
00111 extern int diffgraph_goods[MAPPOINT_STATS_W], diffgraph_ore[MAPPOINT_STATS_W];
00112 extern int diffgraph_population[MAPPOINT_STATS_W], diff_old_population;
00113 #endif
00114 
00115 /* GCS -- this one is difficult to deal with.
00116    LinCity will give your money back if you bulldoze
00117    the most recently constructed building (i.e. if 
00118    you make a mistake.  How does this fit into a 
00119    multiplayer game?  Not at all, I suppose... */
00120 extern int last_built_x, last_built_y;
00121 
00122 extern int help_flag, numof_help_buttons, help_history_count, help_return_val;
00123 extern int block_help_exit;
00124 extern int help_button_x[MAX_NUMOF_HELP_BUTTONS];
00125 extern int help_button_y[MAX_NUMOF_HELP_BUTTONS];
00126 extern int help_button_w[MAX_NUMOF_HELP_BUTTONS];
00127 extern int help_button_h[MAX_NUMOF_HELP_BUTTONS];
00128 extern char help_button_s[MAX_NUMOF_HELP_BUTTONS][MAX_LENOF_HELP_FILENAME];
00129 extern char help_button_history[MAX_HELP_HISTORY][MAX_LENOF_HELP_FILENAME];
00130 extern char *help_button_graphic, help_graphic[MAX_ICON_LEN];
00131 extern char *quit_button_graphic, *load_button_graphic, *save_button_graphic;
00132 extern char *menu_button_graphic;
00133 extern int quit_flag, network_flag, load_flag, save_flag, cheat_flag;
00134 extern int monument_bul_flag, river_bul_flag, shanty_bul_flag;
00135 extern int must_release_button, let_one_through;
00136 
00137 extern int db_yesbox_x1, db_yesbox_x2, db_yesbox_y1, db_yesbox_y2;
00138 extern int db_nobox_x1, db_nobox_x2, db_nobox_y1, db_nobox_y2;
00139 extern int db_flag, db_yesbox_clicked, db_nobox_clicked;
00140 extern char okmessage[22][74];
00141 extern int db_okbox_x1, db_okbox_x2, db_okbox_y1, db_okbox_y2, db_okflag, db_okbox_clicked;
00142 extern int suppress_ok_buttons;
00143 
00144 extern int pbar_pops[12], pbar_pop_oldtot, pop_diff, pbar_pop_olddiff;
00145 extern int pbar_techs[12], pbar_tech_oldtot, tech_diff, pbar_tech_olddiff;
00146 extern int pbar_foods[12], pbar_food_oldtot, food_diff, pbar_food_olddiff;
00147 extern int pbar_jobs[12], pbar_jobs_oldtot, jobs_diff, pbar_jobs_olddiff;
00148 extern int pbar_coal[12], pbar_coal_oldtot, coal_diff, pbar_coal_olddiff;
00149 extern int pbar_goods[12], pbar_goods_oldtot, goods_diff, pbar_goods_olddiff;
00150 extern int pbar_ore[12], pbar_ore_oldtot, ore_diff, pbar_ore_olddiff;
00151 extern int pbar_steel[12], pbar_steel_oldtot, steel_diff, pbar_steel_olddiff;
00152 extern int pbar_money[12], pbar_money_oldtot, money_diff, pbar_money_olddiff;
00153 
00154 extern int askdir_lines;
00155 extern char *askdir_path[4];
00156 extern int lc_save_dir_len;
00157 
00158 
00159 extern struct _disp display;
00160 extern int borderx, bordery;
00161 
00162 extern int command_line_debug;
00163 
00164 #ifdef LC_X11
00165 extern int winX, winY, mouse_button;
00166 extern unsigned int winW, winH;
00167 
00168 extern char *bg_color;
00169 /*extern char* pixmap;*/
00170 extern char dummy2[1024];
00171 extern int verbose;             /* display settings if TRUE */
00172 extern int stay_in_front;       /* Try to stay in clear area of the screen. */
00173 extern int text_bg;
00174 extern int text_fg;
00175 extern int x_key_value;
00176 extern int x_key_shifted;       /* Is the key shifted? */
00177 extern int xclip_x1, xclip_y1, xclip_x2, xclip_y2, clipping_flag;
00178 extern long unsigned int colour_table[256];
00179 extern unsigned char *open_font;
00180 extern int open_font_height, suppress_next_expose;
00181 extern Cursor pirate_cursor;
00182 
00183 #ifdef USE_PIXMAPS
00184 extern Pixmap icon_pixmap[NUM_OF_TYPES];
00185 extern char icon_pixmap_flag[NUM_OF_TYPES];
00186 #endif
00187 #endif
00188 
00189 #ifdef WIN32
00190 extern int mouse_button;
00191 extern char *bg_color;
00192 extern int verbose;             /* display settings if TRUE */
00193 extern int stay_in_front;       /* Try to stay in clear area of the screen. */
00194 extern int text_bg;
00195 extern int text_fg;
00196 extern int x_key_value;         /* GCS: Add initialization value */
00197 extern BOOL x_key_shifted;      /* Is the key shifted? */
00198 extern int xclip_x1, xclip_y1, xclip_x2, xclip_y2, clipping_flag;
00199 extern long unsigned int colour_table[256];
00200 extern unsigned char *open_font;
00201 extern int open_font_height, suppress_next_expose;
00202 
00203 #if defined (USE_PIXMAPS)
00204 extern HBITMAP icon_pixmap[NUM_OF_TYPES];
00205 extern char icon_pixmap_flag[NUM_OF_TYPES];
00206 #endif
00207 
00208 #endif /* WIN32 */
00209 #endif /* __cliglobs_h__ */

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