author | peter1138 |
Sun, 03 Aug 2008 17:35:08 +0000 | |
changeset 9834 | 7474149531c1 |
parent 9452 | d901f00aeed6 |
child 10207 | c291a21b304e |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
9111
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
8979
diff
changeset
|
3 |
/** @file variables.h Messing file that will cease to exist some time in the future. */ |
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
4 |
|
0 | 5 |
#ifndef VARIABLES_H |
6 |
#define VARIABLES_H |
|
7 |
||
9452
d901f00aeed6
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
rubidium
parents:
9111
diff
changeset
|
8 |
#ifndef VARDEF |
d901f00aeed6
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
rubidium
parents:
9111
diff
changeset
|
9 |
#define VARDEF extern |
d901f00aeed6
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
rubidium
parents:
9111
diff
changeset
|
10 |
#endif |
d901f00aeed6
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
rubidium
parents:
9111
diff
changeset
|
11 |
|
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
12 |
/* Amount of game ticks */ |
0 | 13 |
VARDEF uint16 _tick_counter; |
14 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
15 |
/* Skip aging of cargo? */ |
0 | 16 |
VARDEF byte _age_cargo_skip_counter; |
17 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
18 |
/* Also save scrollpos_x, scrollpos_y and zoom */ |
0 | 19 |
VARDEF uint16 _disaster_delay; |
20 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
21 |
/* Determines what station to operate on in the |
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
22 |
* tick handler. */ |
0 | 23 |
VARDEF uint16 _station_tick_ctr; |
24 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
25 |
/* Iterator through all towns in OnTick_Town */ |
1517
596d52828893
(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; |
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
27 |
/* Frequency iterator at the same place */ |
1529
3a8196d15b01
(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 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
33 |
/* Determines how often to run the tree loop */ |
0 | 34 |
VARDEF byte _trees_tick_ctr; |
35 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
36 |
/* Keep track of current game position */ |
0 | 37 |
VARDEF int _saved_scrollpos_x; |
38 |
VARDEF int _saved_scrollpos_y; |
|
39 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
40 |
/* NOSAVE: Used in palette animations only, not really important. */ |
7018
71e174292e42
(svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
truelight
parents:
7002
diff
changeset
|
41 |
VARDEF int _palette_animation_counter; |
0 | 42 |
|
43 |
||
206 | 44 |
VARDEF uint32 _frame_counter; |
7018
71e174292e42
(svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
truelight
parents:
7002
diff
changeset
|
45 |
VARDEF uint32 _realtime_tick; |
0 | 46 |
|
2422
897a01f7c624
(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of special
truelight
parents:
2304
diff
changeset
|
47 |
VARDEF bool _is_old_ai_player; // current player is an oldAI player? (enables a lot of cheats..) |
0 | 48 |
|
49 |
VARDEF bool _do_autosave; |
|
50 |
VARDEF int _autosave_ctr; |
|
51 |
||
52 |
VARDEF byte _display_opt; |
|
53 |
VARDEF int _caret_timer; |
|
54 |
||
55 |
VARDEF bool _rightclick_emulate; |
|
56 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
57 |
/* IN/OUT parameters to commands */ |
0 | 58 |
VARDEF bool _generating_world; |
59 |
||
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
60 |
/* Used when switching from the intro menu. */ |
0 | 61 |
VARDEF byte _switch_mode; |
62 |
||
63 |
VARDEF char _savegame_format[8]; |
|
64 |
||
65 |
VARDEF char *_config_file; |
|
983
4765bf636f6b
(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
|
66 |
VARDEF char *_highscore_file; |
704
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
67 |
VARDEF char *_log_file; |
0 | 68 |
|
6423
8e10e79e0fd1
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
belugas
parents:
6344
diff
changeset
|
69 |
/* landscape.cpp */ |
0 | 70 |
extern const byte _tileh_to_sprite[32]; |
71 |
||
72 |
/* misc */ |
|
73 |
VARDEF char _screenshot_name[128]; |
|
74 |
VARDEF byte _vehicle_design_names; |
|
75 |
||
704
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
76 |
/* Forking stuff */ |
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
77 |
VARDEF bool _dedicated_forks; |
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
78 |
|
0 | 79 |
#endif /* VARIABLES_H */ |