author | rubidium |
Tue, 03 Jun 2008 08:06:58 +0000 | |
changeset 9452 | d901f00aeed6 |
parent 9411 | f54d5b3b3bf8 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
8989
42f45270fbca
(svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp.
rubidium
parents:
8985
diff
changeset
|
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:
9080
diff
changeset
|
3 |
/** @file openttd.h Some generic types. */ |
2186 | 4 |
|
2075
21d2986569d1
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
5 |
#ifndef OPENTTD_H |
21d2986569d1
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
6 |
#define OPENTTD_H |
0 | 7 |
|
8121
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
8 |
enum GameModes { |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
9 |
GM_MENU, |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
10 |
GM_NORMAL, |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
11 |
GM_EDITOR |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
12 |
}; |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
13 |
|
0 | 14 |
enum SwitchModes { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
15 |
SM_NONE = 0, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
16 |
SM_NEWGAME = 1, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
17 |
SM_EDITOR = 2, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
18 |
SM_LOAD = 3, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
19 |
SM_MENU = 4, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
20 |
SM_SAVE = 5, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
21 |
SM_GENRANDLAND = 6, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
22 |
SM_LOAD_SCENARIO = 9, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
23 |
SM_START_SCENARIO = 10, |
4300
c7e43c47a2b9
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
24 |
SM_START_HEIGHTMAP = 11, |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
4330
diff
changeset
|
25 |
SM_LOAD_HEIGHTMAP = 12, |
0 | 26 |
}; |
27 |
||
28 |
/* Display Options */ |
|
29 |
enum { |
|
6591
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
30 |
DO_SHOW_TOWN_NAMES = 0, |
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
31 |
DO_SHOW_STATION_NAMES = 1, |
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
32 |
DO_SHOW_SIGNS = 2, |
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
33 |
DO_FULL_ANIMATION = 3, |
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
34 |
DO_FULL_DETAIL = 5, |
514c1a22e10e
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
6577
diff
changeset
|
35 |
DO_WAYPOINTS = 6, |
6427
7dc1012757d8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
peter1138
parents:
6357
diff
changeset
|
36 |
}; |
7dc1012757d8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
peter1138
parents:
6357
diff
changeset
|
37 |
|
8121
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
38 |
extern byte _game_mode; |
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
39 |
extern bool _exit_game; |
8670
4f8e4590be7f
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
peter1138
parents:
8324
diff
changeset
|
40 |
extern int8 _pause_game; |
8121
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
41 |
|
2075
21d2986569d1
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
42 |
#endif /* OPENTTD_H */ |