variables.h

Go to the documentation of this file.
00001 /* $Id: variables.h 14910 2009-01-08 13:57:50Z rubidium $ */
00002 
00005 #ifndef VARIABLES_H
00006 #define VARIABLES_H
00007 
00008 #ifndef VARDEF
00009 #define VARDEF extern
00010 #endif
00011 
00012 /* Amount of game ticks */
00013 VARDEF uint16 _tick_counter;
00014 
00015 /* Skip aging of cargo? */
00016 VARDEF byte _age_cargo_skip_counter;
00017 
00018 /* Also save scrollpos_x, scrollpos_y and zoom */
00019 VARDEF uint16 _disaster_delay;
00020 
00021 /* Determines what station to operate on in the
00022  *  tick handler. */
00023 VARDEF uint16 _station_tick_ctr;
00024 
00025 /* Iterator through all towns in OnTick_Town */
00026 VARDEF uint32 _cur_town_ctr;
00027 /* Frequency iterator at the same place */
00028 VARDEF uint32 _cur_town_iter;
00029 
00030 VARDEF uint _cur_company_tick_index;
00031 VARDEF uint _next_competitor_start;
00032 
00033 /* Determines how often to run the tree loop */
00034 VARDEF byte _trees_tick_ctr;
00035 
00036 /* NOSAVE: Used in palette animations only, not really important. */
00037 VARDEF int _palette_animation_counter;
00038 
00039 VARDEF uint32 _realtime_tick;
00040 
00041 VARDEF bool _is_old_ai_company; // current company is an oldAI company? (enables a lot of cheats..)
00042 
00043 VARDEF bool _do_autosave;
00044 VARDEF int _autosave_ctr;
00045 
00046 VARDEF byte _display_opt;
00047 VARDEF int _caret_timer;
00048 
00049 VARDEF bool _rightclick_emulate;
00050 
00051 /* IN/OUT parameters to commands */
00052 VARDEF bool _generating_world;
00053 
00054 /* Used when switching from the intro menu. */
00055 VARDEF byte _switch_mode;
00056 
00057 VARDEF char _savegame_format[8];
00058 
00059 VARDEF char *_config_file;
00060 VARDEF char *_highscore_file;
00061 VARDEF char *_log_file;
00062 
00063 /* landscape.cpp */
00064 extern const byte _tileh_to_sprite[32];
00065 
00066 /* misc */
00067 VARDEF char _screenshot_name[128];
00068 VARDEF byte _vehicle_design_names;
00069 
00070 /* Forking stuff */
00071 VARDEF bool _dedicated_forks;
00072 
00073 #endif /* VARIABLES_H */

Generated on Fri Jan 9 19:01:53 2009 for openttd by  doxygen 1.5.6