author | rubidium |
Thu, 24 May 2007 22:41:50 +0000 | |
changeset 7179 | 3e123c2b7c93 |
parent 7139 | 4ae3ab180d05 |
child 7439 | 0c0e2945c890 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2536
8c4e298f4886
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
celestar
parents:
2526
diff
changeset
|
2 |
/** @file openttd.h */ |
2186 | 3 |
|
2075
7f0ca01392db
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
4 |
#ifndef OPENTTD_H |
7f0ca01392db
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
5 |
#define OPENTTD_H |
0 | 6 |
|
7 |
#ifndef VARDEF |
|
8 |
#define VARDEF extern |
|
9 |
#endif |
|
10 |
||
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
11 |
#include "hal.h" |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
12 |
#include "helpers.hpp" |
0 | 13 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
14 |
struct Oblong { |
4956
76db5a2689fc
(svn r6955) -Codechange: Change some variable names for _textmessage_box, and replace 5 different
Darkvater
parents:
4849
diff
changeset
|
15 |
int x, y; |
76db5a2689fc
(svn r6955) -Codechange: Change some variable names for _textmessage_box, and replace 5 different
Darkvater
parents:
4849
diff
changeset
|
16 |
int width, height; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
17 |
}; |
4956
76db5a2689fc
(svn r6955) -Codechange: Change some variable names for _textmessage_box, and replace 5 different
Darkvater
parents:
4849
diff
changeset
|
18 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
19 |
struct BoundingRect { |
4609
6c337b3fbf4b
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
Darkvater
parents:
4554
diff
changeset
|
20 |
int width; |
6c337b3fbf4b
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
Darkvater
parents:
4554
diff
changeset
|
21 |
int height; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
22 |
}; |
4609
6c337b3fbf4b
(svn r6462) -Codechange: Have GetStringWidth() return width as well as the height bounding
Darkvater
parents:
4554
diff
changeset
|
23 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
24 |
struct Pair { |
0 | 25 |
int a; |
26 |
int b; |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
27 |
}; |
0 | 28 |
|
2159
3b634157c3b2
(svn r2669) Shuffle some more stuff around to reduce dependencies
tron
parents:
2153
diff
changeset
|
29 |
#include "map.h" |
3636
d87b21df2944
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
tron
parents:
3529
diff
changeset
|
30 |
#include "slope.h" |
0 | 31 |
|
32 |
// Forward declarations of structs. |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
33 |
struct Vehicle; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
34 |
struct Depot; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
35 |
struct Waypoint; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
36 |
struct Window; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
37 |
struct Station; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
38 |
struct ViewPort; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
39 |
struct Town; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
40 |
struct NewsItem; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
41 |
struct Industry; |
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
42 |
struct DrawPixelInfo; |
7139
4ae3ab180d05
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
rubidium
parents:
7087
diff
changeset
|
43 |
struct Group; |
4401
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
44 |
typedef byte VehicleOrderID; ///< The index of an order within its current vehicle (not pool related) |
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
45 |
typedef byte CargoID; |
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
46 |
typedef byte LandscapeID; |
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
47 |
typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colortables |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
48 |
struct PalSpriteID { |
5919
2b58160d667d
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
peter1138
parents:
5838
diff
changeset
|
49 |
SpriteID sprite; |
2b58160d667d
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
peter1138
parents:
5838
diff
changeset
|
50 |
SpriteID pal; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
51 |
}; |
4401
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
52 |
typedef uint16 EngineID; |
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
53 |
typedef uint16 UnitID; |
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
54 |
typedef uint16 StringID; |
5187
d1f4e447a7eb
(svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified a bit:
KUDr
parents:
5108
diff
changeset
|
55 |
typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp) |
4401
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
56 |
|
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
57 |
/* IDs used in Pools */ |
0 | 58 |
typedef uint16 VehicleID; |
3347
d5d8ace1bb13
(svn r4131) - CodeChange: Add proper semantics for StationID for such variables instead of using the general uint16-type. StationID was added for depots, waypoints and stations where necessary. We probably need to change GetDepot(), IsDepotIndex(), IsStationIndex(), GetWaypoint() and IsWaypointIndex() as well to use StationID.
Darkvater
parents:
3346
diff
changeset
|
59 |
typedef uint16 StationID; |
4397
e538e96d8f6a
(svn r6150) -Codechange: introduced and used RoadStopID where needed
truelight
parents:
4394
diff
changeset
|
60 |
typedef uint16 RoadStopID; |
3346
96c5db77aa83
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
Darkvater
parents:
3344
diff
changeset
|
61 |
typedef uint16 TownID; |
4330
7306bda145ab
(svn r6005) -Cleanup: introduce IndustryID and use it
rubidium
parents:
4326
diff
changeset
|
62 |
typedef uint16 IndustryID; |
4388
e5a166837162
(svn r6141) -Codechange: introduced DepotID and used it as much as possible
truelight
parents:
4349
diff
changeset
|
63 |
typedef uint16 DepotID; |
4389
e4555522d257
(svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)
truelight
parents:
4388
diff
changeset
|
64 |
typedef uint16 WaypointID; |
4392
6e2600cb8972
(svn r6145) -Codechange: added OrderID to indicate Order indexes out of the pool
truelight
parents:
4391
diff
changeset
|
65 |
typedef uint16 OrderID; |
4401
9320726518bf
(svn r6154) -Cleanup: ordered the IDs that have to do with pools from the others
truelight
parents:
4397
diff
changeset
|
66 |
typedef uint16 SignID; |
7139
4ae3ab180d05
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
rubidium
parents:
7087
diff
changeset
|
67 |
typedef uint16 GroupID; |
4348
95ba9ff1612e
(svn r6049) -Codechange: forgot EngineRenew in r6047
truelight
parents:
4344
diff
changeset
|
68 |
typedef uint16 EngineRenewID; |
4527
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
69 |
typedef uint16 DestinationID; |
4389
e4555522d257
(svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)
truelight
parents:
4388
diff
changeset
|
70 |
|
4527
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
71 |
/* DestinationID must be at least as large as every these below, because it can |
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
72 |
* be any of them |
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
73 |
*/ |
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
74 |
assert_compile(sizeof(DestinationID) == sizeof(DepotID)); |
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
75 |
assert_compile(sizeof(DestinationID) == sizeof(WaypointID)); |
b18634a31a4a
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
tron
parents:
4434
diff
changeset
|
76 |
assert_compile(sizeof(DestinationID) == sizeof(StationID)); |
0 | 77 |
|
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
78 |
typedef int32 WindowNumber; |
0 | 79 |
|
4293
2c24234a7aec
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
rubidium
parents:
4268
diff
changeset
|
80 |
enum { |
2c24234a7aec
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
rubidium
parents:
4268
diff
changeset
|
81 |
INVALID_YEAR = -1, |
4326
c2ae4dbc1074
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
rubidium
parents:
4323
diff
changeset
|
82 |
INVALID_DATE = -1, |
4293
2c24234a7aec
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
rubidium
parents:
4268
diff
changeset
|
83 |
}; |
2c24234a7aec
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
rubidium
parents:
4268
diff
changeset
|
84 |
|
4326
c2ae4dbc1074
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
rubidium
parents:
4323
diff
changeset
|
85 |
typedef int32 Year; |
c2ae4dbc1074
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
rubidium
parents:
4323
diff
changeset
|
86 |
typedef int32 Date; |
4261
2ec8f5a9747b
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
rubidium
parents:
4238
diff
changeset
|
87 |
|
0 | 88 |
|
89 |
enum SwitchModes { |
|
4344
5d0e40cd67b9
(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
|
90 |
SM_NONE = 0, |
5d0e40cd67b9
(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
|
91 |
SM_NEWGAME = 1, |
5d0e40cd67b9
(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
|
92 |
SM_EDITOR = 2, |
5d0e40cd67b9
(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
|
93 |
SM_LOAD = 3, |
5d0e40cd67b9
(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
|
94 |
SM_MENU = 4, |
5d0e40cd67b9
(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
|
95 |
SM_SAVE = 5, |
5d0e40cd67b9
(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
|
96 |
SM_GENRANDLAND = 6, |
5d0e40cd67b9
(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
|
97 |
SM_LOAD_SCENARIO = 9, |
5d0e40cd67b9
(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
|
98 |
SM_START_SCENARIO = 10, |
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
99 |
SM_START_HEIGHTMAP = 11, |
4344
5d0e40cd67b9
(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
|
100 |
SM_LOAD_HEIGHTMAP = 12, |
0 | 101 |
}; |
102 |
||
2828
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
103 |
|
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
104 |
/* Modes for GenerateWorld */ |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
105 |
enum GenerateWorldModes { |
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
106 |
GW_NEWGAME = 0, /* Generate a map for a new game */ |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
107 |
GW_EMPTY = 1, /* Generate an empty map (sea-level) */ |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
108 |
GW_RANDOM = 2, /* Generate a random map for SE */ |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4297
diff
changeset
|
109 |
GW_HEIGHTMAP = 3, /* Generate a newgame from a heightmap */ |
2828
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
110 |
}; |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
111 |
|
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
112 |
/* Modes for InitializeGame, those are _bits_! */ |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
113 |
enum InitializeGameModes { |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
114 |
IG_NONE = 0, /* Don't do anything special */ |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
115 |
IG_DATE_RESET = 1, /* Reset the date when initializing a game */ |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
116 |
}; |
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
117 |
|
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
118 |
enum Owner { |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
119 |
PLAYER_INACTIVE_CLIENT = 253, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
120 |
PLAYER_NEW_COMPANY = 254, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
121 |
PLAYER_SPECTATOR = 255, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
122 |
OWNER_BEGIN = 0x00, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
123 |
PLAYER_FIRST = 0x00, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
124 |
MAX_PLAYERS = 8, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
125 |
OWNER_TOWN = 0x0F, // a town owns the tile |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
126 |
OWNER_NONE = 0x10, // nobody owns the tile |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
127 |
OWNER_WATER = 0x11, // "water" owns the tile |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
128 |
OWNER_END = 0x12, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
129 |
INVALID_OWNER = 0xFF, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
130 |
INVALID_PLAYER = 0xFF, |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
131 |
/* Player identifiers All players below MAX_PLAYERS are playable |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
132 |
* players, above, they are special, computer controlled players */ |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
133 |
}; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
134 |
|
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
135 |
typedef Owner PlayerID; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
136 |
|
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
137 |
DECLARE_POSTFIX_INCREMENT(Owner); |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
138 |
|
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
139 |
/** Define basic enum properties */ |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
140 |
template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {}; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
141 |
typedef TinyEnumT<Owner> OwnerByte; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
142 |
typedef OwnerByte PlayerByte; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
143 |
|
2828
996de8e891c7
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
truelight
parents:
2794
diff
changeset
|
144 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
145 |
enum TransportType { |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
146 |
/* These constants are for now linked to the representation of bridges |
3333 | 147 |
* and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge. |
148 |
* In an ideal world, these constants would be used everywhere when |
|
149 |
* accessing tunnels and bridges. For now, you should just not change |
|
150 |
* the values for road and rail. |
|
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
151 |
*/ |
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
152 |
TRANSPORT_BEGIN = 0, |
3017
915fae59d5e0
(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
tron
parents:
2828
diff
changeset
|
153 |
TRANSPORT_RAIL = 0, |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
154 |
TRANSPORT_ROAD = 1, |
4434
4175805666a5
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
rubidium
parents:
4401
diff
changeset
|
155 |
TRANSPORT_WATER, // = 2 |
1967
c57192f4c121
(svn r2473) - Add: VehicleMayEnterTile(), which checks if the tile owner of a tile is correct for a vehicle to enter it. Based upon glx's code.
matthijs
parents:
1932
diff
changeset
|
156 |
TRANSPORT_END, |
c57192f4c121
(svn r2473) - Add: VehicleMayEnterTile(), which checks if the tile owner of a tile is correct for a vehicle to enter it. Based upon glx's code.
matthijs
parents:
1932
diff
changeset
|
157 |
INVALID_TRANSPORT = 0xff, |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
158 |
}; |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
159 |
|
5838
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
160 |
/** Define basic enum properties */ |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
161 |
template <> struct EnumPropsT<TransportType> : MakeEnumPropsT<TransportType, byte, TRANSPORT_BEGIN, TRANSPORT_END, INVALID_TRANSPORT> {}; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
162 |
typedef TinyEnumT<TransportType> TransportTypeByte; |
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
163 |
|
9c3129cb019b
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5726
diff
changeset
|
164 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
165 |
struct TileInfo { |
0 | 166 |
uint x; |
167 |
uint y; |
|
3636
d87b21df2944
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
tron
parents:
3529
diff
changeset
|
168 |
Slope tileh; |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
169 |
TileIndex tile; |
0 | 170 |
uint z; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
171 |
}; |
0 | 172 |
|
173 |
||
174 |
/* Display Options */ |
|
175 |
enum { |
|
7087
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
176 |
DO_SHOW_TOWN_NAMES = 0, |
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
177 |
DO_SHOW_STATION_NAMES = 1, |
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
178 |
DO_SHOW_SIGNS = 2, |
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
179 |
DO_FULL_ANIMATION = 3, |
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
180 |
DO_FULL_DETAIL = 5, |
b65f7298f106
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
peter1138
parents:
7073
diff
changeset
|
181 |
DO_WAYPOINTS = 6, |
6923
6913c8a82cc0
(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:
6683
diff
changeset
|
182 |
}; |
6913c8a82cc0
(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:
6683
diff
changeset
|
183 |
|
6913c8a82cc0
(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:
6683
diff
changeset
|
184 |
enum { |
6913c8a82cc0
(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:
6683
diff
changeset
|
185 |
TO_SIGNS, |
6913c8a82cc0
(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:
6683
diff
changeset
|
186 |
TO_TREES, |
6913c8a82cc0
(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:
6683
diff
changeset
|
187 |
TO_HOUSES, |
6913c8a82cc0
(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:
6683
diff
changeset
|
188 |
TO_INDUSTRIES, |
6913c8a82cc0
(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:
6683
diff
changeset
|
189 |
TO_BUILDINGS, |
6913c8a82cc0
(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:
6683
diff
changeset
|
190 |
TO_BRIDGES, |
6913c8a82cc0
(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:
6683
diff
changeset
|
191 |
TO_STRUCTURES, |
0 | 192 |
}; |
193 |
||
194 |
/* Landscape types */ |
|
195 |
enum { |
|
6683
7ec558346172
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
belugas
parents:
6574
diff
changeset
|
196 |
LT_TEMPERATE = 0, |
7ec558346172
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
belugas
parents:
6574
diff
changeset
|
197 |
LT_ARCTIC = 1, |
7ec558346172
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
belugas
parents:
6574
diff
changeset
|
198 |
LT_TROPIC = 2, |
7ec558346172
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
belugas
parents:
6574
diff
changeset
|
199 |
LT_TOYLAND = 3, |
0 | 200 |
|
201 |
NUM_LANDSCAPE = 4, |
|
202 |
}; |
|
203 |
||
7067
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
204 |
/** |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
205 |
* Town Layouts |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
206 |
*/ |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
207 |
enum TownLayout { |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
208 |
TL_NO_ROADS = 0, ///< Build no more roads, but still build houses |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
209 |
TL_ORIGINAL, ///< Original algorithm (min. 1 distance between roads) |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
210 |
TL_BETTER_ROADS, ///< Extended original algorithm (min. 2 distance between roads) |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
211 |
TL_2X2_GRID, ///< Geometric 2x2 grid algorithm |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
212 |
TL_3X3_GRID, ///< Geometric 3x3 grid algorithm |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
213 |
|
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
214 |
NUM_TLS, ///< Number of town layouts |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
215 |
}; |
ea55b6046015
(svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
belugas
parents:
7058
diff
changeset
|
216 |
|
7073
72dc5a55e16b
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
glx
parents:
7067
diff
changeset
|
217 |
/* It needs to be 8bits, because we save and load it as such */ |
72dc5a55e16b
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
glx
parents:
7067
diff
changeset
|
218 |
/** Define basic enum properties */ |
72dc5a55e16b
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
glx
parents:
7067
diff
changeset
|
219 |
template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_NO_ROADS, NUM_TLS, NUM_TLS> {}; |
72dc5a55e16b
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
glx
parents:
7067
diff
changeset
|
220 |
typedef TinyEnumT<TownLayout> TownLayoutByte; //typedefing-enumification of TownLayout |
72dc5a55e16b
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
glx
parents:
7067
diff
changeset
|
221 |
|
0 | 222 |
enum { |
223 |
NUM_PRICES = 49, |
|
224 |
}; |
|
225 |
||
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
226 |
struct Prices { |
0 | 227 |
int32 station_value; |
228 |
int32 build_rail; |
|
229 |
int32 build_road; |
|
230 |
int32 build_signals; |
|
231 |
int32 build_bridge; |
|
232 |
int32 build_train_depot; |
|
233 |
int32 build_road_depot; |
|
234 |
int32 build_ship_depot; |
|
235 |
int32 build_tunnel; |
|
236 |
int32 train_station_track; |
|
237 |
int32 train_station_length; |
|
238 |
int32 build_airport; |
|
239 |
int32 build_bus_station; |
|
240 |
int32 build_truck_station; |
|
241 |
int32 build_dock; |
|
242 |
int32 build_railvehicle; |
|
243 |
int32 build_railwagon; |
|
244 |
int32 aircraft_base; |
|
245 |
int32 roadveh_base; |
|
246 |
int32 ship_base; |
|
247 |
int32 build_trees; |
|
248 |
int32 terraform; |
|
249 |
int32 clear_1; |
|
250 |
int32 purchase_land; |
|
251 |
int32 clear_2; |
|
252 |
int32 clear_3; |
|
253 |
int32 remove_trees; |
|
254 |
int32 remove_rail; |
|
255 |
int32 remove_signals; |
|
256 |
int32 clear_bridge; |
|
257 |
int32 remove_train_depot; |
|
258 |
int32 remove_road_depot; |
|
259 |
int32 remove_ship_depot; |
|
260 |
int32 clear_tunnel; |
|
261 |
int32 clear_water; |
|
262 |
int32 remove_rail_station; |
|
263 |
int32 remove_airport; |
|
264 |
int32 remove_bus_station; |
|
265 |
int32 remove_truck_station; |
|
266 |
int32 remove_dock; |
|
267 |
int32 remove_house; |
|
268 |
int32 remove_road; |
|
269 |
int32 running_rail[3]; |
|
270 |
int32 aircraft_running; |
|
271 |
int32 roadveh_running; |
|
272 |
int32 ship_running; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
168
diff
changeset
|
273 |
int32 build_industry; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
274 |
}; |
0 | 275 |
|
276 |
#define GAME_DIFFICULTY_NUM 18 |
|
277 |
||
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
278 |
struct GameDifficulty { |
0 | 279 |
int max_no_competitors; |
280 |
int competitor_start_time; |
|
281 |
int number_towns; |
|
282 |
int number_industries; |
|
283 |
int max_loan; |
|
284 |
int initial_interest; |
|
285 |
int vehicle_costs; |
|
286 |
int competitor_speed; |
|
2395
19b4da30806b
(svn r2921) -Codechange: moved all AI-code to 1 central place (ai/ai.c)
truelight
parents:
2380
diff
changeset
|
287 |
int competitor_intelligence; // no longer in use |
0 | 288 |
int vehicle_breakdowns; |
289 |
int subsidy_multiplier; |
|
290 |
int construction_cost; |
|
291 |
int terrain_type; |
|
292 |
int quantity_sea_lakes; |
|
293 |
int economy; |
|
294 |
int line_reverse_mode; |
|
295 |
int disasters; |
|
4434
4175805666a5
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
rubidium
parents:
4401
diff
changeset
|
296 |
int town_council_tolerance; // minimum required town ratings to be allowed to demolish stuff |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
297 |
}; |
0 | 298 |
|
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
299 |
enum { |
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
300 |
// Temperate |
4344
5d0e40cd67b9
(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
|
301 |
CT_PASSENGERS = 0, |
5d0e40cd67b9
(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
|
302 |
CT_COAL = 1, |
5d0e40cd67b9
(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
|
303 |
CT_MAIL = 2, |
5d0e40cd67b9
(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
|
304 |
CT_OIL = 3, |
5d0e40cd67b9
(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
|
305 |
CT_LIVESTOCK = 4, |
5d0e40cd67b9
(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
|
306 |
CT_GOODS = 5, |
5d0e40cd67b9
(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
|
307 |
CT_GRAIN = 6, |
5d0e40cd67b9
(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
|
308 |
CT_WOOD = 7, |
5d0e40cd67b9
(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
|
309 |
CT_IRON_ORE = 8, |
5d0e40cd67b9
(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
|
310 |
CT_STEEL = 9, |
5d0e40cd67b9
(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
|
311 |
CT_VALUABLES = 10, |
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
312 |
|
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
313 |
// Arctic |
4344
5d0e40cd67b9
(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
|
314 |
CT_WHEAT = 6, |
5d0e40cd67b9
(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
|
315 |
CT_HILLY_UNUSED = 8, |
5d0e40cd67b9
(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
|
316 |
CT_PAPER = 9, |
5d0e40cd67b9
(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
|
317 |
CT_GOLD = 10, |
6976
0bc7efb388a7
(svn r9658) -Codechange: CT_FOOD is not part of temperate climate, place it accordingly in arctic.
belugas
parents:
6959
diff
changeset
|
318 |
CT_FOOD = 11, |
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
319 |
|
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
320 |
// Tropic |
4344
5d0e40cd67b9
(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
|
321 |
CT_RUBBER = 1, |
5d0e40cd67b9
(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
|
322 |
CT_FRUIT = 4, |
5d0e40cd67b9
(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
|
323 |
CT_MAIZE = 6, |
5d0e40cd67b9
(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
|
324 |
CT_COPPER_ORE = 8, |
5d0e40cd67b9
(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
|
325 |
CT_WATER = 9, |
5d0e40cd67b9
(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
|
326 |
CT_DIAMONDS = 10, |
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
327 |
|
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
328 |
// Toyland |
4344
5d0e40cd67b9
(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
|
329 |
CT_SUGAR = 1, |
5d0e40cd67b9
(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
|
330 |
CT_TOYS = 3, |
5d0e40cd67b9
(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
|
331 |
CT_BATTERIES = 4, |
5d0e40cd67b9
(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
|
332 |
CT_CANDY = 5, |
5d0e40cd67b9
(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
|
333 |
CT_TOFFEE = 6, |
5d0e40cd67b9
(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
|
334 |
CT_COLA = 7, |
5d0e40cd67b9
(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
|
335 |
CT_COTTON_CANDY = 8, |
5d0e40cd67b9
(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
|
336 |
CT_BUBBLES = 9, |
5d0e40cd67b9
(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
|
337 |
CT_PLASTIC = 10, |
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
338 |
CT_FIZZY_DRINKS = 11, |
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
339 |
|
6959
0066ab0d9b93
(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.
peter1138
parents:
6923
diff
changeset
|
340 |
NUM_CARGO = 32, |
1004 | 341 |
|
4554
ff008b423676
(svn r6393) -Fix: [autoreplace] now refit costs are added to the estimated costs (could spend more than allowed when estimate and actual cost were not the same)
bjarni
parents:
4527
diff
changeset
|
342 |
CT_NO_REFIT = 0xFE, |
4344
5d0e40cd67b9
(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
|
343 |
CT_INVALID = 0xFF |
473
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
344 |
}; |
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
345 |
|
0da86c59e3ae
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
395
diff
changeset
|
346 |
typedef uint AcceptedCargo[NUM_CARGO]; |
0 | 347 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
348 |
struct TileDesc { |
0 | 349 |
StringID str; |
4849
9a3c3ae7f62f
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
Darkvater
parents:
4659
diff
changeset
|
350 |
Owner owner; |
4297
47ce9665b4af
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
rubidium
parents:
4293
diff
changeset
|
351 |
Date build_date; |
0 | 352 |
uint32 dparam[2]; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
353 |
}; |
0 | 354 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
355 |
struct ViewportSign { |
849
c6223dbdb202
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
tron
parents:
842
diff
changeset
|
356 |
int32 left; |
c6223dbdb202
(svn r1330) Increase size of some vars from int16 to int32 to guard against future overflows
tron
parents:
842
diff
changeset
|
357 |
int32 top; |
0 | 358 |
byte width_1, width_2; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
359 |
}; |
0 | 360 |
|
361 |
||
362 |
typedef void DrawTileProc(TileInfo *ti); |
|
4231
dea6a63dd058
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
tron
parents:
4143
diff
changeset
|
363 |
typedef uint GetSlopeZProc(TileIndex tile, uint x, uint y); |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
364 |
typedef int32 ClearTileProc(TileIndex tile, byte flags); |
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
365 |
typedef void GetAcceptedCargoProc(TileIndex tile, AcceptedCargo res); |
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
366 |
typedef void GetTileDescProc(TileIndex tile, TileDesc *td); |
7179
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
367 |
/** |
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
368 |
* GetTileTrackStatusProcs return a value that contains the possible tracks |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
369 |
* that can be taken on a given tile by a given transport. The return value is |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
370 |
* composed as follows: 0xaabbccdd. ccdd and aabb are bitmasks of trackdirs, |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
371 |
* where bit n corresponds to trackdir n. ccdd are the trackdirs that are |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
372 |
* present in the tile (1==present, 0==not present), aabb is the signal |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
373 |
* status, if applicable (0==green/no signal, 1==red, note that this is |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
374 |
* reversed from map3/2[tile] for railway signals). |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
375 |
* |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
376 |
* The result (let's call it ts) is often used as follows: |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
377 |
* tracks = (byte)(ts | ts >>8) |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
378 |
* This effectively converts the present part of the result (ccdd) to a |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
379 |
* track bitmask, which disregards directions. Normally, this is the same as just |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
168
diff
changeset
|
380 |
* doing (byte)ts I think, although I am not really sure |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
381 |
* |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
382 |
* A trackdir is combination of a track and a dir, where the lower three bits |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
383 |
* are a track, the fourth bit is the direction. these give 12 (or 14) |
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
384 |
* possible options: 0-5 and 8-13, so we need 14 bits for a trackdir bitmask |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
168
diff
changeset
|
385 |
* above. |
7179
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
386 |
* @param tile the tile to get the track status from |
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
387 |
* @param mode the mode of transportation |
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
388 |
* @param sub_mode used to differentiate between different kinds within the mode |
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
389 |
* @return the above mentions track status information |
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
390 |
*/ |
7179
3e123c2b7c93
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
rubidium
parents:
7139
diff
changeset
|
391 |
typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode); |
3344
d86c852715fa
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
Darkvater
parents:
3333
diff
changeset
|
392 |
typedef void GetProducedCargoProc(TileIndex tile, CargoID *b); |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
393 |
typedef void ClickTileProc(TileIndex tile); |
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
394 |
typedef void AnimateTileProc(TileIndex tile); |
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
395 |
typedef void TileLoopProc(TileIndex tile); |
2436
177cb6a8339f
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2431
diff
changeset
|
396 |
typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player); |
6317
c73bda71ac16
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
rubidium
parents:
6144
diff
changeset
|
397 |
/** @see VehicleEnterTileStatus to see what the return values mean */ |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
398 |
typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); |
3636
d87b21df2944
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
tron
parents:
3529
diff
changeset
|
399 |
typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh); |
0 | 400 |
|
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
401 |
struct TileTypeProcs { |
0 | 402 |
DrawTileProc *draw_tile_proc; |
403 |
GetSlopeZProc *get_slope_z_proc; |
|
404 |
ClearTileProc *clear_tile_proc; |
|
405 |
GetAcceptedCargoProc *get_accepted_cargo_proc; |
|
406 |
GetTileDescProc *get_tile_desc_proc; |
|
407 |
GetTileTrackStatusProc *get_tile_track_status_proc; |
|
408 |
ClickTileProc *click_tile_proc; |
|
409 |
AnimateTileProc *animate_tile_proc; |
|
410 |
TileLoopProc *tile_loop_proc; |
|
411 |
ChangeTileOwnerProc *change_tile_owner_proc; |
|
412 |
GetProducedCargoProc *get_produced_cargo_proc; |
|
413 |
VehicleEnterTileProc *vehicle_enter_tile_proc; |
|
39 | 414 |
GetSlopeTilehProc *get_slope_tileh_proc; |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
415 |
}; |
0 | 416 |
|
417 |
||
6144
5a0ffbf27ced
(svn r8511) -Codechange: make WindowClass an enumerated value.
rubidium
parents:
5919
diff
changeset
|
418 |
enum WindowClass { |
5a0ffbf27ced
(svn r8511) -Codechange: make WindowClass an enumerated value.
rubidium
parents:
5919
diff
changeset
|
419 |
WC_NONE, |
5a0ffbf27ced
(svn r8511) -Codechange: make WindowClass an enumerated value.
rubidium
parents:
5919
diff
changeset
|
420 |
WC_MAIN_WINDOW = WC_NONE, |
5664 | 421 |
WC_MAIN_TOOLBAR, |
422 |
WC_STATUS_BAR, |
|
423 |
WC_BUILD_TOOLBAR, |
|
424 |
WC_NEWS_WINDOW, |
|
425 |
WC_TOWN_DIRECTORY, |
|
426 |
WC_STATION_LIST, |
|
427 |
WC_TOWN_VIEW, |
|
428 |
WC_SMALLMAP, |
|
429 |
WC_TRAINS_LIST, |
|
430 |
WC_ROADVEH_LIST, |
|
431 |
WC_SHIPS_LIST, |
|
432 |
WC_AIRCRAFT_LIST, |
|
433 |
WC_VEHICLE_VIEW, |
|
434 |
WC_VEHICLE_DETAILS, |
|
435 |
WC_VEHICLE_REFIT, |
|
436 |
WC_VEHICLE_ORDERS, |
|
437 |
WC_STATION_VIEW, |
|
438 |
WC_VEHICLE_DEPOT, |
|
439 |
WC_BUILD_VEHICLE, |
|
440 |
WC_BUILD_BRIDGE, |
|
441 |
WC_ERRMSG, |
|
442 |
WC_BUILD_STATION, |
|
443 |
WC_BUS_STATION, |
|
444 |
WC_TRUCK_STATION, |
|
445 |
WC_BUILD_DEPOT, |
|
446 |
WC_COMPANY, |
|
447 |
WC_FINANCES, |
|
448 |
WC_PLAYER_COLOR, |
|
449 |
WC_QUERY_STRING, |
|
450 |
WC_SAVELOAD, |
|
451 |
WC_SELECT_GAME, |
|
452 |
WC_TOOLBAR_MENU, |
|
453 |
WC_INCOME_GRAPH, |
|
454 |
WC_OPERATING_PROFIT, |
|
455 |
WC_TOOLTIPS, |
|
456 |
WC_INDUSTRY_VIEW, |
|
457 |
WC_PLAYER_FACE, |
|
458 |
WC_LAND_INFO, |
|
459 |
WC_TOWN_AUTHORITY, |
|
460 |
WC_SUBSIDIES_LIST, |
|
461 |
WC_GRAPH_LEGEND, |
|
462 |
WC_DELIVERED_CARGO, |
|
463 |
WC_PERFORMANCE_HISTORY, |
|
464 |
WC_COMPANY_VALUE, |
|
465 |
WC_COMPANY_LEAGUE, |
|
466 |
WC_BUY_COMPANY, |
|
467 |
WC_PAYMENT_RATES, |
|
468 |
WC_ENGINE_PREVIEW, |
|
469 |
WC_MUSIC_WINDOW, |
|
470 |
WC_MUSIC_TRACK_SELECTION, |
|
471 |
WC_SCEN_LAND_GEN, |
|
472 |
WC_SCEN_TOWN_GEN, |
|
473 |
WC_SCEN_INDUSTRY, |
|
474 |
WC_SCEN_BUILD_ROAD, |
|
475 |
WC_BUILD_TREES, |
|
476 |
WC_SEND_NETWORK_MSG, |
|
477 |
WC_DROPDOWN_MENU, |
|
478 |
WC_BUILD_INDUSTRY, |
|
479 |
WC_GAME_OPTIONS, |
|
480 |
WC_NETWORK_WINDOW, |
|
481 |
WC_INDUSTRY_DIRECTORY, |
|
482 |
WC_MESSAGE_HISTORY, |
|
483 |
WC_CHEATS, |
|
484 |
WC_PERFORMANCE_DETAIL, |
|
485 |
WC_CONSOLE, |
|
486 |
WC_EXTRA_VIEW_PORT, |
|
487 |
WC_CLIENT_LIST, |
|
488 |
WC_NETWORK_STATUS_WINDOW, |
|
489 |
WC_CUSTOM_CURRENCY, |
|
490 |
WC_REPLACE_VEHICLE, |
|
491 |
WC_HIGHSCORE, |
|
492 |
WC_ENDSCREEN, |
|
493 |
WC_SIGN_LIST, |
|
494 |
WC_GENERATE_LANDSCAPE, |
|
495 |
WC_GENERATE_PROGRESS_WINDOW, |
|
5669
ea25407ffa55
(svn r7621) -Codechange: Rework ShowQuery into a general modal popup window. It gets passed
Darkvater
parents:
5664
diff
changeset
|
496 |
WC_CONFIRM_POPUP_QUERY, |
6923
6913c8a82cc0
(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:
6683
diff
changeset
|
497 |
WC_TRANSPARENCY_TOOLBAR, |
0 | 498 |
}; |
499 |
||
500 |
||
7058
b541279ca705
(svn r9764) -Codechange: replace some lookup tables by functions.
rubidium
parents:
6976
diff
changeset
|
501 |
enum ExpensesType { |
4344
5d0e40cd67b9
(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
|
502 |
EXPENSES_CONSTRUCTION = 0, |
5d0e40cd67b9
(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
|
503 |
EXPENSES_NEW_VEHICLES = 1, |
5d0e40cd67b9
(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
|
504 |
EXPENSES_TRAIN_RUN = 2, |
5d0e40cd67b9
(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
|
505 |
EXPENSES_ROADVEH_RUN = 3, |
5d0e40cd67b9
(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
|
506 |
EXPENSES_AIRCRAFT_RUN = 4, |
5d0e40cd67b9
(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
|
507 |
EXPENSES_SHIP_RUN = 5, |
5d0e40cd67b9
(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
|
508 |
EXPENSES_PROPERTY = 6, |
5d0e40cd67b9
(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
|
509 |
EXPENSES_TRAIN_INC = 7, |
5d0e40cd67b9
(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
|
510 |
EXPENSES_ROADVEH_INC = 8, |
5d0e40cd67b9
(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
|
511 |
EXPENSES_AIRCRAFT_INC = 9, |
5d0e40cd67b9
(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
|
512 |
EXPENSES_SHIP_INC = 10, |
5d0e40cd67b9
(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
|
513 |
EXPENSES_LOAN_INT = 11, |
5d0e40cd67b9
(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
|
514 |
EXPENSES_OTHER = 12, |
0 | 515 |
}; |
516 |
||
5108
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
517 |
enum { |
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
518 |
MAX_LANG = 64, |
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
519 |
}; |
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
520 |
|
0 | 521 |
// special string constants |
522 |
enum SpecialStrings { |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
168
diff
changeset
|
523 |
|
0 | 524 |
// special strings for town names. the town name is generated dynamically on request. |
4344
5d0e40cd67b9
(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
|
525 |
SPECSTR_TOWNNAME_START = 0x20C0, |
5d0e40cd67b9
(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
|
526 |
SPECSTR_TOWNNAME_ENGLISH = SPECSTR_TOWNNAME_START, |
0 | 527 |
SPECSTR_TOWNNAME_FRENCH, |
528 |
SPECSTR_TOWNNAME_GERMAN, |
|
529 |
SPECSTR_TOWNNAME_AMERICAN, |
|
530 |
SPECSTR_TOWNNAME_LATIN, |
|
531 |
SPECSTR_TOWNNAME_SILLY, |
|
532 |
SPECSTR_TOWNNAME_SWEDISH, |
|
533 |
SPECSTR_TOWNNAME_DUTCH, |
|
534 |
SPECSTR_TOWNNAME_FINNISH, |
|
535 |
SPECSTR_TOWNNAME_POLISH, |
|
536 |
SPECSTR_TOWNNAME_SLOVAKISH, |
|
948 | 537 |
SPECSTR_TOWNNAME_NORWEGIAN, |
0 | 538 |
SPECSTR_TOWNNAME_HUNGARIAN, |
265 | 539 |
SPECSTR_TOWNNAME_AUSTRIAN, |
540 |
SPECSTR_TOWNNAME_ROMANIAN, |
|
541 |
SPECSTR_TOWNNAME_CZECH, |
|
1030
a5e4705a738c
(svn r1531) -Feature: [1039061] Swiss town-names (vulvulune)
darkvater
parents:
1004
diff
changeset
|
542 |
SPECSTR_TOWNNAME_SWISS, |
2431
c720f620253e
(svn r2957) - Feature: [ 1263280 ] Danish town names (fey_dk)
Darkvater
parents:
2395
diff
changeset
|
543 |
SPECSTR_TOWNNAME_DANISH, |
3698 | 544 |
SPECSTR_TOWNNAME_TURKISH, |
4143
5e6c2cfa6baa
(svn r5504) Feature : Added Italian town name generator. (sidew)
belugas
parents:
3825
diff
changeset
|
545 |
SPECSTR_TOWNNAME_ITALIAN, |
4312
b5867bca34c1
(svn r5965) -Feature: FS#261 Catalan Town Names generator (arnau)
bjarni
parents:
4300
diff
changeset
|
546 |
SPECSTR_TOWNNAME_CATALAN, |
4344
5d0e40cd67b9
(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
|
547 |
SPECSTR_TOWNNAME_LAST = SPECSTR_TOWNNAME_CATALAN, |
0 | 548 |
|
549 |
// special strings for player names on the form "TownName transport". |
|
4344
5d0e40cd67b9
(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
|
550 |
SPECSTR_PLAYERNAME_START = 0x70EA, |
0 | 551 |
SPECSTR_PLAYERNAME_ENGLISH = SPECSTR_PLAYERNAME_START, |
552 |
SPECSTR_PLAYERNAME_FRENCH, |
|
553 |
SPECSTR_PLAYERNAME_GERMAN, |
|
554 |
SPECSTR_PLAYERNAME_AMERICAN, |
|
555 |
SPECSTR_PLAYERNAME_LATIN, |
|
556 |
SPECSTR_PLAYERNAME_SILLY, |
|
4344
5d0e40cd67b9
(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
|
557 |
SPECSTR_PLAYERNAME_LAST = SPECSTR_PLAYERNAME_SILLY, |
0 | 558 |
|
4344
5d0e40cd67b9
(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
|
559 |
SPECSTR_ANDCO_NAME = 0x70E6, |
5d0e40cd67b9
(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
|
560 |
SPECSTR_PRESIDENT_NAME = 0x70E7, |
5d0e40cd67b9
(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
|
561 |
SPECSTR_SONGNAME = 0x70E8, |
0 | 562 |
|
5108
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
563 |
// reserve MAX_LANG strings for the *.lng files |
4344
5d0e40cd67b9
(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
|
564 |
SPECSTR_LANGUAGE_START = 0x7100, |
5108
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
565 |
SPECSTR_LANGUAGE_END = SPECSTR_LANGUAGE_START + MAX_LANG - 1, |
0 | 566 |
|
567 |
// reserve 32 strings for various screen resolutions |
|
5108
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
568 |
SPECSTR_RESOLUTION_START = SPECSTR_LANGUAGE_END + 1, |
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
569 |
SPECSTR_RESOLUTION_END = SPECSTR_RESOLUTION_START + 0x1F, |
0 | 570 |
|
571 |
// reserve 32 strings for screenshot formats |
|
5108
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
572 |
SPECSTR_SCREENSHOT_START = SPECSTR_RESOLUTION_END + 1, |
dc67d70b5a45
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
peter1138
parents:
4956
diff
changeset
|
573 |
SPECSTR_SCREENSHOT_END = SPECSTR_SCREENSHOT_START + 0x1F, |
0 | 574 |
|
2055
9361b56db8ba
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".
ludde
parents:
1977
diff
changeset
|
575 |
// Used to implement SetDParamStr |
4344
5d0e40cd67b9
(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
|
576 |
STR_SPEC_DYNSTRING = 0xF800, |
5d0e40cd67b9
(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
|
577 |
STR_SPEC_USERSTRING = 0xF808, |
0 | 578 |
}; |
579 |
||
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1967
diff
changeset
|
580 |
typedef void PlaceProc(TileIndex tile); |
0 | 581 |
|
2526
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
582 |
enum { |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
583 |
SORT_ASCENDING = 0, |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
584 |
SORT_DESCENDING = 1, |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
585 |
SORT_BY_DATE = 0, |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
586 |
SORT_BY_NAME = 2 |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
587 |
}; |
cae4842086a9
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron
parents:
2436
diff
changeset
|
588 |
|
0 | 589 |
VARDEF byte _savegame_sort_order; |
590 |
||
591 |
#define INVALID_STRING_ID 0xFFFF |
|
592 |
||
593 |
enum { |
|
4344
5d0e40cd67b9
(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
|
594 |
MAX_SCREEN_WIDTH = 2048, |
0 | 595 |
MAX_SCREEN_HEIGHT = 1200, |
596 |
}; |
|
597 |
||
1397
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
598 |
/* In certain windows you navigate with the arrow keys. Do not scroll the |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
599 |
* gameview when here. Bitencoded variable that only allows scrolling if all |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
600 |
* elements are zero */ |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
601 |
enum { |
4344
5d0e40cd67b9
(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
|
602 |
SCROLL_CON = 0, |
1397
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
603 |
SCROLL_EDIT = 1, |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
604 |
SCROLL_SAVE = 2, |
1843
733f83b6483a
(svn r2348) - Fix: Do not scroll the game with the arrow keys when the chatbox is open
Darkvater
parents:
1802
diff
changeset
|
605 |
SCROLL_CHAT = 4, |
1397
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
606 |
}; |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
607 |
VARDEF byte _no_scroll; |
b04402b901cd
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1363
diff
changeset
|
608 |
|
2380
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
609 |
/** To have a concurrently running thread interface with the main program, use |
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
610 |
* the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled |
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
611 |
* in the ProcessSentMessage() function */ |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
612 |
enum ThreadMsg { |
4323
78204e7c3100
(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
truelight
parents:
4312
diff
changeset
|
613 |
MSG_OTTD_NO_MESSAGE, |
78204e7c3100
(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
truelight
parents:
4312
diff
changeset
|
614 |
MSG_OTTD_SAVETHREAD_DONE, |
78204e7c3100
(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
truelight
parents:
4312
diff
changeset
|
615 |
MSG_OTTD_SAVETHREAD_ERROR, |
6574
e1d1a12faaf7
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
6317
diff
changeset
|
616 |
}; |
2380
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
617 |
|
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
618 |
void OTTD_SendThreadMessage(ThreadMsg msg); |
3b26659b4a9a
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Darkvater
parents:
2254
diff
changeset
|
619 |
|
2075
7f0ca01392db
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater
parents:
2055
diff
changeset
|
620 |
#endif /* OPENTTD_H */ |