author | glx |
Fri, 13 Jun 2008 15:43:39 +0000 | |
branch | noai |
changeset 10955 | 56b381e5253f |
parent 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 |
||
10829 | 8 |
#ifndef VARDEF |
9 |
#define VARDEF extern |
|
10 |
#endif |
|
11 |
||
9574 | 12 |
/* Amount of game ticks */ |
0 | 13 |
VARDEF uint16 _tick_counter; |
14 |
||
9574 | 15 |
/* Skip aging of cargo? */ |
0 | 16 |
VARDEF byte _age_cargo_skip_counter; |
17 |
||
9574 | 18 |
/* Also save scrollpos_x, scrollpos_y and zoom */ |
0 | 19 |
VARDEF uint16 _disaster_delay; |
20 |
||
9574 | 21 |
/* Determines what station to operate on in the |
22 |
* tick handler. */ |
|
0 | 23 |
VARDEF uint16 _station_tick_ctr; |
24 |
||
9574 | 25 |
/* 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
|
26 |
VARDEF uint32 _cur_town_ctr; |
9574 | 27 |
/* 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
|
28 |
VARDEF uint32 _cur_town_iter; |
0 | 29 |
|
30 |
VARDEF uint _cur_player_tick_index; |
|
31 |
VARDEF uint _next_competitor_start; |
|
32 |
||
9574 | 33 |
/* Determines how often to run the tree loop */ |
0 | 34 |
VARDEF byte _trees_tick_ctr; |
35 |
||
9574 | 36 |
/* Keep track of current game position */ |
0 | 37 |
VARDEF int _saved_scrollpos_x; |
38 |
VARDEF int _saved_scrollpos_y; |
|
39 |
||
9574 | 40 |
/* NOSAVE: Used in palette animations only, not really important. */ |
9629 | 41 |
VARDEF int _palette_animation_counter; |
0 | 42 |
|
43 |
||
206 | 44 |
VARDEF uint32 _frame_counter; |
9629 | 45 |
VARDEF uint32 _realtime_tick; |
0 | 46 |
|
47 |
VARDEF bool _do_autosave; |
|
48 |
VARDEF int _autosave_ctr; |
|
49 |
||
50 |
VARDEF byte _display_opt; |
|
51 |
VARDEF int _caret_timer; |
|
52 |
||
53 |
VARDEF bool _rightclick_emulate; |
|
54 |
||
9574 | 55 |
/* IN/OUT parameters to commands */ |
0 | 56 |
VARDEF bool _generating_world; |
57 |
||
9574 | 58 |
/* Used when switching from the intro menu. */ |
0 | 59 |
VARDEF byte _switch_mode; |
60 |
||
61 |
VARDEF char _savegame_format[8]; |
|
62 |
||
63 |
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
|
64 |
VARDEF char *_highscore_file; |
704
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
65 |
VARDEF char *_log_file; |
0 | 66 |
|
9574 | 67 |
/* landscape.cpp */ |
0 | 68 |
extern const byte _tileh_to_sprite[32]; |
69 |
||
70 |
/* misc */ |
|
71 |
VARDEF char _screenshot_name[128]; |
|
72 |
VARDEF byte _vehicle_design_names; |
|
73 |
||
704
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
74 |
/* Forking stuff */ |
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
75 |
VARDEF bool _dedicated_forks; |
a526dc96fbfc
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
76 |
|
0 | 77 |
#endif /* VARIABLES_H */ |