~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/variables.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: variables.h 11839 2008-01-13 21:41:24Z rubidium $ */
 
1
/* $Id: variables.h 15584 2009-02-25 21:45:14Z yexo $ */
2
2
 
3
 
/** @file variables.h */
 
3
/** @file variables.h Messing file that will cease to exist some time in the future. */
4
4
 
5
5
#ifndef VARIABLES_H
6
6
#define VARIABLES_H
7
7
 
8
 
#include "tile_type.h"
9
 
#include "strings_type.h"
 
8
#ifndef VARDEF
 
9
#define VARDEF extern
 
10
#endif
10
11
 
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;
16
17
 
17
 
/* Position in tile loop */
18
 
VARDEF TileIndex _cur_tileloop_tile;
19
 
 
20
18
/* Also save scrollpos_x, scrollpos_y and zoom */
21
19
VARDEF uint16 _disaster_delay;
22
20
 
24
22
 *  tick handler. */
25
23
VARDEF uint16 _station_tick_ctr;
26
24
 
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;
31
 
 
32
 
VARDEF uint _cur_player_tick_index;
33
 
VARDEF uint _next_competitor_start;
34
 
 
35
25
/* Determines how often to run the tree loop */
36
26
VARDEF byte _trees_tick_ctr;
37
27
 
38
 
/* Keep track of current game position */
39
 
VARDEF int _saved_scrollpos_x;
40
 
VARDEF int _saved_scrollpos_y;
41
 
 
42
 
struct Cheat {
43
 
        bool been_used; // has this cheat been used before?
44
 
        bool value;     // tells if the bool cheat is active or not
45
 
};
46
 
 
47
 
 
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! */
51
 
 
52
 
struct Cheats {
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
59
 
        Cheat switch_climate;
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)
63
 
};
64
 
 
65
 
VARDEF Cheats _cheats;
66
 
 
67
28
/* NOSAVE: Used in palette animations only, not really important. */
68
29
VARDEF int _palette_animation_counter;
69
30
 
70
 
 
71
 
VARDEF uint32 _frame_counter;
72
31
VARDEF uint32 _realtime_tick;
73
32
 
74
 
VARDEF bool _is_old_ai_player; // current player is an oldAI player? (enables a lot of cheats..)
75
 
 
76
33
VARDEF bool _do_autosave;
77
34
VARDEF int _autosave_ctr;
78
35
 
79
36
VARDEF byte _display_opt;
80
 
VARDEF int _caret_timer;
81
37
 
82
38
VARDEF bool _rightclick_emulate;
83
39
 
84
40
/* IN/OUT parameters to commands */
85
 
VARDEF TileIndex _build_tunnel_endtile;
86
41
VARDEF bool _generating_world;
87
42
 
88
 
/* Used when switching from the intro menu. */
89
 
VARDEF byte _switch_mode;
90
 
VARDEF StringID _switch_mode_errorstr;
91
 
 
92
 
VARDEF char _savegame_format[8];
93
 
 
94
43
VARDEF char *_config_file;
95
44
VARDEF char *_highscore_file;
96
45
VARDEF char *_log_file;
98
47
/* landscape.cpp */
99
48
extern const byte _tileh_to_sprite[32];
100
49
 
101
 
extern bool _draw_bounding_boxes;
102
 
 
103
 
/* misc */
104
 
VARDEF char _screenshot_name[128];
105
 
VARDEF byte _vehicle_design_names;
106
 
 
107
50
/* Forking stuff */
108
51
VARDEF bool _dedicated_forks;
109
52