equal
deleted
inserted
replaced
6 #define OPENTTD_H |
6 #define OPENTTD_H |
7 |
7 |
8 #ifndef VARDEF |
8 #ifndef VARDEF |
9 #define VARDEF extern |
9 #define VARDEF extern |
10 #endif |
10 #endif |
11 |
|
12 // Forward declarations of structs. |
|
13 typedef byte LandscapeID; |
|
14 typedef uint16 UnitID; |
|
15 |
11 |
16 enum GameModes { |
12 enum GameModes { |
17 GM_MENU, |
13 GM_MENU, |
18 GM_NORMAL, |
14 GM_NORMAL, |
19 GM_EDITOR |
15 GM_EDITOR |
46 enum InitializeGameModes { |
42 enum InitializeGameModes { |
47 IG_NONE = 0, /* Don't do anything special */ |
43 IG_NONE = 0, /* Don't do anything special */ |
48 IG_DATE_RESET = 1, /* Reset the date when initializing a game */ |
44 IG_DATE_RESET = 1, /* Reset the date when initializing a game */ |
49 }; |
45 }; |
50 |
46 |
51 enum TransportType { |
|
52 /* These constants are for now linked to the representation of bridges |
|
53 * and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge. |
|
54 * In an ideal world, these constants would be used everywhere when |
|
55 * accessing tunnels and bridges. For now, you should just not change |
|
56 * the values for road and rail. |
|
57 */ |
|
58 TRANSPORT_BEGIN = 0, |
|
59 TRANSPORT_RAIL = TRANSPORT_BEGIN, |
|
60 TRANSPORT_ROAD, |
|
61 TRANSPORT_WATER, |
|
62 TRANSPORT_AIR, |
|
63 TRANSPORT_END, |
|
64 INVALID_TRANSPORT = 0xff, |
|
65 }; |
|
66 |
|
67 /* Display Options */ |
47 /* Display Options */ |
68 enum { |
48 enum { |
69 DO_SHOW_TOWN_NAMES = 0, |
49 DO_SHOW_TOWN_NAMES = 0, |
70 DO_SHOW_STATION_NAMES = 1, |
50 DO_SHOW_STATION_NAMES = 1, |
71 DO_SHOW_SIGNS = 2, |
51 DO_SHOW_SIGNS = 2, |
72 DO_FULL_ANIMATION = 3, |
52 DO_FULL_ANIMATION = 3, |
73 DO_FULL_DETAIL = 5, |
53 DO_FULL_DETAIL = 5, |
74 DO_WAYPOINTS = 6, |
54 DO_WAYPOINTS = 6, |
75 }; |
|
76 |
|
77 /* Landscape types */ |
|
78 enum { |
|
79 LT_TEMPERATE = 0, |
|
80 LT_ARCTIC = 1, |
|
81 LT_TROPIC = 2, |
|
82 LT_TOYLAND = 3, |
|
83 |
|
84 NUM_LANDSCAPE = 4, |
|
85 }; |
55 }; |
86 |
56 |
87 struct ViewportSign { |
57 struct ViewportSign { |
88 int32 left; |
58 int32 left; |
89 int32 top; |
59 int32 top; |