author | rubidium |
Fri, 18 Apr 2008 16:51:54 +0000 | |
changeset 8979 | d7ba4e5eac9c |
parent 8973 | 749e572f9378 |
child 9111 | 48ce04029fe4 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
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
|
3 |
/** @file variables.h */ |
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 |
||
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
|
8 |
/* Amount of game ticks */ |
0 | 9 |
VARDEF uint16 _tick_counter; |
10 |
||
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
|
11 |
/* Skip aging of cargo? */ |
0 | 12 |
VARDEF byte _age_cargo_skip_counter; |
13 |
||
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
|
14 |
/* Also save scrollpos_x, scrollpos_y and zoom */ |
0 | 15 |
VARDEF uint16 _disaster_delay; |
16 |
||
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
|
17 |
/* 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
|
18 |
* tick handler. */ |
0 | 19 |
VARDEF uint16 _station_tick_ctr; |
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 |
/* 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
|
22 |
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
|
23 |
/* 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
|
24 |
VARDEF uint32 _cur_town_iter; |
0 | 25 |
|
26 |
VARDEF uint _cur_player_tick_index; |
|
27 |
VARDEF uint _next_competitor_start; |
|
28 |
||
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
|
29 |
/* Determines how often to run the tree loop */ |
0 | 30 |
VARDEF byte _trees_tick_ctr; |
31 |
||
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
|
32 |
/* Keep track of current game position */ |
0 | 33 |
VARDEF int _saved_scrollpos_x; |
34 |
VARDEF int _saved_scrollpos_y; |
|
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 |
/* 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
|
37 |
VARDEF int _palette_animation_counter; |
0 | 38 |
|
39 |
||
206 | 40 |
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
|
41 |
VARDEF uint32 _realtime_tick; |
0 | 42 |
|
2422
897a01f7c624
(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of special
truelight
parents:
2304
diff
changeset
|
43 |
VARDEF bool _is_old_ai_player; // current player is an oldAI player? (enables a lot of cheats..) |
0 | 44 |
|
45 |
VARDEF bool _do_autosave; |
|
46 |
VARDEF int _autosave_ctr; |
|
47 |
||
48 |
VARDEF byte _display_opt; |
|
49 |
VARDEF int _caret_timer; |
|
50 |
||
51 |
VARDEF bool _rightclick_emulate; |
|
52 |
||
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
|
53 |
/* IN/OUT parameters to commands */ |
0 | 54 |
VARDEF bool _generating_world; |
55 |
||
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
|
56 |
/* Used when switching from the intro menu. */ |
0 | 57 |
VARDEF byte _switch_mode; |
58 |
||
59 |
VARDEF char _savegame_format[8]; |
|
60 |
||
61 |
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
|
62 |
VARDEF char *_highscore_file; |
704
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
63 |
VARDEF char *_log_file; |
0 | 64 |
|
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
|
65 |
/* landscape.cpp */ |
0 | 66 |
extern const byte _tileh_to_sprite[32]; |
67 |
||
68 |
/* misc */ |
|
69 |
VARDEF char _screenshot_name[128]; |
|
70 |
VARDEF byte _vehicle_design_names; |
|
71 |
||
704
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
72 |
/* Forking stuff */ |
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
73 |
VARDEF bool _dedicated_forks; |
e843dd369938
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
truelight
parents:
679
diff
changeset
|
74 |
|
0 | 75 |
#endif /* VARIABLES_H */ |