27 SM_START_SCENARIO = 10, |
23 SM_START_SCENARIO = 10, |
28 SM_START_HEIGHTMAP = 11, |
24 SM_START_HEIGHTMAP = 11, |
29 SM_LOAD_HEIGHTMAP = 12, |
25 SM_LOAD_HEIGHTMAP = 12, |
30 }; |
26 }; |
31 |
27 |
32 |
|
33 /* Modes for GenerateWorld */ |
|
34 enum GenerateWorldModes { |
|
35 GW_NEWGAME = 0, /* Generate a map for a new game */ |
|
36 GW_EMPTY = 1, /* Generate an empty map (sea-level) */ |
|
37 GW_RANDOM = 2, /* Generate a random map for SE */ |
|
38 GW_HEIGHTMAP = 3, /* Generate a newgame from a heightmap */ |
|
39 }; |
|
40 |
|
41 /* Modes for InitializeGame, those are _bits_! */ |
|
42 enum InitializeGameModes { |
|
43 IG_NONE = 0, /* Don't do anything special */ |
|
44 IG_DATE_RESET = 1, /* Reset the date when initializing a game */ |
|
45 }; |
|
46 |
|
47 /* Display Options */ |
28 /* Display Options */ |
48 enum { |
29 enum { |
49 DO_SHOW_TOWN_NAMES = 0, |
30 DO_SHOW_TOWN_NAMES = 0, |
50 DO_SHOW_STATION_NAMES = 1, |
31 DO_SHOW_STATION_NAMES = 1, |
51 DO_SHOW_SIGNS = 2, |
32 DO_SHOW_SIGNS = 2, |
52 DO_FULL_ANIMATION = 3, |
33 DO_FULL_ANIMATION = 3, |
53 DO_FULL_DETAIL = 5, |
34 DO_FULL_DETAIL = 5, |
54 DO_WAYPOINTS = 6, |
35 DO_WAYPOINTS = 6, |
55 }; |
36 }; |
56 |
37 |
57 enum { |
|
58 SORT_ASCENDING = 0, |
|
59 SORT_DESCENDING = 1, |
|
60 SORT_BY_DATE = 0, |
|
61 SORT_BY_NAME = 2 |
|
62 }; |
|
63 |
|
64 extern byte _savegame_sort_order; |
|
65 |
|
66 /* In certain windows you navigate with the arrow keys. Do not scroll the |
|
67 * gameview when here. Bitencoded variable that only allows scrolling if all |
|
68 * elements are zero */ |
|
69 enum { |
|
70 SCROLL_CON = 0, |
|
71 SCROLL_EDIT = 1, |
|
72 SCROLL_SAVE = 2, |
|
73 SCROLL_CHAT = 4, |
|
74 }; |
|
75 extern byte _no_scroll; |
|
76 |
|
77 extern byte _game_mode; |
38 extern byte _game_mode; |
78 extern bool _exit_game; |
39 extern bool _exit_game; |
79 extern int8 _pause_game; |
40 extern int8 _pause_game; |
80 |
41 |
81 #endif /* OPENTTD_H */ |
42 #endif /* OPENTTD_H */ |