1
/* $Id: variables.h 11839 2008-01-13 21:41:24Z rubidium $ */
1
/* $Id: variables.h 15584 2009-02-25 21:45:14Z yexo $ */
3
/** @file variables.h */
3
/** @file variables.h Messing file that will cease to exist some time in the future. */
9
#include "strings_type.h"
11
12
/* Amount of game ticks */
12
13
VARDEF uint16 _tick_counter;
14
15
/* Skip aging of cargo? */
15
16
VARDEF byte _age_cargo_skip_counter;
17
/* Position in tile loop */
18
VARDEF TileIndex _cur_tileloop_tile;
20
18
/* Also save scrollpos_x, scrollpos_y and zoom */
21
19
VARDEF uint16 _disaster_delay;
25
23
VARDEF uint16 _station_tick_ctr;
27
/* Iterator through all towns in OnTick_Town */
28
VARDEF uint32 _cur_town_ctr;
29
/* Frequency iterator at the same place */
30
VARDEF uint32 _cur_town_iter;
32
VARDEF uint _cur_player_tick_index;
33
VARDEF uint _next_competitor_start;
35
25
/* Determines how often to run the tree loop */
36
26
VARDEF byte _trees_tick_ctr;
38
/* Keep track of current game position */
39
VARDEF int _saved_scrollpos_x;
40
VARDEF int _saved_scrollpos_y;
43
bool been_used; // has this cheat been used before?
44
bool value; // tells if the bool cheat is active or not
48
/* WARNING! Do _not_ remove entries in Cheats struct or change the order
49
* of the existing ones! Would break downward compatibility.
50
* Only add new entries at the end of the struct! */
53
Cheat magic_bulldozer; // dynamite industries, unmovables
54
Cheat switch_player; // change to another player
55
Cheat money; // get rich
56
Cheat crossing_tunnels; // allow tunnels that cross each other
57
Cheat build_in_pause; // build while in pause mode
58
Cheat no_jetcrash; // no jet will crash on small airports anymore
60
Cheat change_date; // changes date ingame
61
Cheat setup_prod; // setup raw-material production in game
62
Cheat dummy; // empty cheat (enable running el-engines on normal rail)
65
VARDEF Cheats _cheats;
67
28
/* NOSAVE: Used in palette animations only, not really important. */
68
29
VARDEF int _palette_animation_counter;
71
VARDEF uint32 _frame_counter;
72
31
VARDEF uint32 _realtime_tick;
74
VARDEF bool _is_old_ai_player; // current player is an oldAI player? (enables a lot of cheats..)
76
33
VARDEF bool _do_autosave;
77
34
VARDEF int _autosave_ctr;
79
36
VARDEF byte _display_opt;
80
VARDEF int _caret_timer;
82
38
VARDEF bool _rightclick_emulate;
84
40
/* IN/OUT parameters to commands */
85
VARDEF TileIndex _build_tunnel_endtile;
86
41
VARDEF bool _generating_world;
88
/* Used when switching from the intro menu. */
89
VARDEF byte _switch_mode;
90
VARDEF StringID _switch_mode_errorstr;
92
VARDEF char _savegame_format[8];
94
43
VARDEF char *_config_file;
95
44
VARDEF char *_highscore_file;
96
45
VARDEF char *_log_file;