2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file variables.h Messing file that will cease to exist some time in the future. */
|
2007-04-04 04:08:47 +00:00
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
#ifndef VARIABLES_H
|
|
|
|
#define VARIABLES_H
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Amount of game ticks */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF uint16 _tick_counter;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Skip aging of cargo? */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF byte _age_cargo_skip_counter;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Also save scrollpos_x, scrollpos_y and zoom */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF uint16 _disaster_delay;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Determines what station to operate on in the
|
|
|
|
* tick handler. */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF uint16 _station_tick_ctr;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Iterator through all towns in OnTick_Town */
|
2005-03-17 23:12:23 +00:00
|
|
|
VARDEF uint32 _cur_town_ctr;
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Frequency iterator at the same place */
|
2005-03-20 00:32:26 +00:00
|
|
|
VARDEF uint32 _cur_town_iter;
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
VARDEF uint _cur_player_tick_index;
|
|
|
|
VARDEF uint _next_competitor_start;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Determines how often to run the tree loop */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF byte _trees_tick_ctr;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Keep track of current game position */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF int _saved_scrollpos_x;
|
|
|
|
VARDEF int _saved_scrollpos_y;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* NOSAVE: Used in palette animations only, not really important. */
|
2007-06-22 20:04:21 +00:00
|
|
|
VARDEF int _palette_animation_counter;
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
|
2004-09-11 19:34:11 +00:00
|
|
|
VARDEF uint32 _frame_counter;
|
2007-06-22 20:04:21 +00:00
|
|
|
VARDEF uint32 _realtime_tick;
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2005-09-13 12:19:27 +00:00
|
|
|
VARDEF bool _is_old_ai_player; // current player is an oldAI player? (enables a lot of cheats..)
|
2004-08-09 17:04:08 +00:00
|
|
|
|
|
|
|
VARDEF bool _do_autosave;
|
|
|
|
VARDEF int _autosave_ctr;
|
|
|
|
|
|
|
|
VARDEF byte _display_opt;
|
|
|
|
VARDEF int _caret_timer;
|
|
|
|
|
|
|
|
VARDEF bool _rightclick_emulate;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* IN/OUT parameters to commands */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF bool _generating_world;
|
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* Used when switching from the intro menu. */
|
2004-08-09 17:04:08 +00:00
|
|
|
VARDEF byte _switch_mode;
|
|
|
|
|
|
|
|
VARDEF char _savegame_format[8];
|
|
|
|
|
|
|
|
VARDEF char *_config_file;
|
2005-01-11 00:54:06 +00:00
|
|
|
VARDEF char *_highscore_file;
|
2004-12-18 14:19:21 +00:00
|
|
|
VARDEF char *_log_file;
|
2004-08-09 17:04:08 +00:00
|
|
|
|
2007-04-04 04:08:47 +00:00
|
|
|
/* landscape.cpp */
|
2004-08-09 17:04:08 +00:00
|
|
|
extern const byte _tileh_to_sprite[32];
|
|
|
|
|
|
|
|
/* misc */
|
|
|
|
VARDEF char _screenshot_name[128];
|
|
|
|
VARDEF byte _vehicle_design_names;
|
|
|
|
|
2004-12-18 14:19:21 +00:00
|
|
|
/* Forking stuff */
|
|
|
|
VARDEF bool _dedicated_forks;
|
|
|
|
|
2004-08-09 17:04:08 +00:00
|
|
|
#endif /* VARIABLES_H */
|