author | glx |
Mon, 26 May 2008 17:40:33 +0000 | |
branch | noai |
changeset 10718 | 7e9d9e40e16f |
parent 10455 | 22c441f5adf9 |
child 10829 | 8a0ec0f0f928 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
10249
diff
changeset
|
3 |
/** @file variables.h Messing file that will cease to exist some time in the future. */ |
9574 | 4 |
|
0 | 5 |
#ifndef VARIABLES_H |
6 |
#define VARIABLES_H |
|
7 |
||
9574 | 8 |
/* Amount of game ticks */ |
0 | 9 |
VARDEF uint16 _tick_counter; |
10 |
||
9574 | 11 |
/* Skip aging of cargo? */ |
0 | 12 |
VARDEF byte _age_cargo_skip_counter; |
13 |
||
9574 | 14 |
/* Also save scrollpos_x, scrollpos_y and zoom */ |
0 | 15 |
VARDEF uint16 _disaster_delay; |
16 |
||
9574 | 17 |
/* Determines what station to operate on in the |
18 |
* tick handler. */ |
|
0 | 19 |
VARDEF uint16 _station_tick_ctr; |
20 |
||
9574 | 21 |
/* Iterator through all towns in OnTick_Town */ |
1517
b77361b13ae4
(svn r2021) Fix: Enlarge _cur_town_ctr from byte to uint32 so that all the towns are considered when growing them even for big maps, where much more than 256 towns are around; reported by Tomasz Dubi?ski <uboottd@hydra.polsl.gliwice.pl>. The savegame still saves just the lowest 8 bits but that doesn't hurt so much.
pasky
parents:
1500
diff
changeset
|
22 |
VARDEF uint32 _cur_town_ctr; |
9574 | 23 |
/* Frequency iterator at the same place */ |
1529
be4a2259d2ff
(svn r2033) - Fix: Fix some more desync by saving the town growth frequency iterator _cur_town_iter. Needed to bump a svg revision for that thanks to the braindead SlGlob thing, or at least I don't know how to do it without bumping it.
pasky
parents:
1517
diff
changeset
|
24 |
VARDEF uint32 _cur_town_iter; |
0 | 25 |
|
26 |
VARDEF uint _cur_player_tick_index; |
|
27 |
VARDEF uint _next_competitor_start; |
|
28 |
||
9574 | 29 |
/* Determines how often to run the tree loop */ |
0 | 30 |
VARDEF byte _trees_tick_ctr; |
31 |
||
9574 | 32 |
/* Keep track of current game position */ |
0 | 33 |
VARDEF int _saved_scrollpos_x; |
34 |
VARDEF int _saved_scrollpos_y; |
|
35 |
||
9574 | 36 |
/* NOSAVE: Used in palette animations only, not really important. */ |
9629 | 37 |
VARDEF int _palette_animation_counter; |
0 | 38 |
|
39 |
||
206 | 40 |
VARDEF uint32 _frame_counter; |
9629 | 41 |
VARDEF uint32 _realtime_tick; |
0 | 42 |
|
43 |
VARDEF bool _do_autosave; |
|
44 |
VARDEF int _autosave_ctr; |
|
45 |
||
46 |
VARDEF byte _display_opt; |
|
47 |
VARDEF int _caret_timer; |
|
48 |
||
49 |
VARDEF bool _rightclick_emulate; |
|
50 |
||
9574 | 51 |
/* IN/OUT parameters to commands */ |
0 | 52 |
VARDEF bool _generating_world; |
53 |
||
9574 | 54 |
/* Used when switching from the intro menu. */ |
0 | 55 |
VARDEF byte _switch_mode; |
56 |
||
57 |
VARDEF char _savegame_format[8]; |
|
58 |
||
59 |
VARDEF char *_config_file; |
|
983
1be852dcdd4c
(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
darkvater
parents:
930
diff
changeset
|
60 |
VARDEF char *_highscore_file; |
704
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
61 |
VARDEF char *_log_file; |
0 | 62 |
|
9574 | 63 |
/* landscape.cpp */ |
0 | 64 |
extern const byte _tileh_to_sprite[32]; |
65 |
||
66 |
/* misc */ |
|
67 |
VARDEF char _screenshot_name[128]; |
|
68 |
VARDEF byte _vehicle_design_names; |
|
69 |
||
704
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
70 |
/* Forking stuff */ |
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
71 |
VARDEF bool _dedicated_forks; |
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
72 |
|
0 | 73 |
#endif /* VARIABLES_H */ |