equal
deleted
inserted
replaced
110 LT_TOYLAND = 3, |
110 LT_TOYLAND = 3, |
111 |
111 |
112 NUM_LANDSCAPE = 4, |
112 NUM_LANDSCAPE = 4, |
113 }; |
113 }; |
114 |
114 |
115 #define GAME_DIFFICULTY_NUM 18 |
|
116 |
|
117 /** Specific type for Game Difficulty to ease changing the type */ |
|
118 typedef uint16 GDType; |
|
119 struct GameDifficulty { |
|
120 GDType max_no_competitors; |
|
121 GDType competitor_start_time; |
|
122 GDType number_towns; |
|
123 GDType number_industries; |
|
124 GDType max_loan; |
|
125 GDType initial_interest; |
|
126 GDType vehicle_costs; |
|
127 GDType competitor_speed; |
|
128 GDType competitor_intelligence; // no longer in use |
|
129 GDType vehicle_breakdowns; |
|
130 GDType subsidy_multiplier; |
|
131 GDType construction_cost; |
|
132 GDType terrain_type; |
|
133 GDType quantity_sea_lakes; |
|
134 GDType economy; |
|
135 GDType line_reverse_mode; |
|
136 GDType disasters; |
|
137 GDType town_council_tolerance; // minimum required town ratings to be allowed to demolish stuff |
|
138 }; |
|
139 |
|
140 struct ViewportSign { |
115 struct ViewportSign { |
141 int32 left; |
116 int32 left; |
142 int32 top; |
117 int32 top; |
143 byte width_1, width_2; |
118 byte width_1, width_2; |
144 }; |
119 }; |
148 SORT_DESCENDING = 1, |
123 SORT_DESCENDING = 1, |
149 SORT_BY_DATE = 0, |
124 SORT_BY_DATE = 0, |
150 SORT_BY_NAME = 2 |
125 SORT_BY_NAME = 2 |
151 }; |
126 }; |
152 |
127 |
153 VARDEF byte _savegame_sort_order; |
128 extern byte _savegame_sort_order; |
154 |
129 |
155 enum { |
130 enum { |
156 MAX_SCREEN_WIDTH = 2048, |
131 MAX_SCREEN_WIDTH = 2048, |
157 MAX_SCREEN_HEIGHT = 1200, |
132 MAX_SCREEN_HEIGHT = 1200, |
158 }; |
133 }; |
164 SCROLL_CON = 0, |
139 SCROLL_CON = 0, |
165 SCROLL_EDIT = 1, |
140 SCROLL_EDIT = 1, |
166 SCROLL_SAVE = 2, |
141 SCROLL_SAVE = 2, |
167 SCROLL_CHAT = 4, |
142 SCROLL_CHAT = 4, |
168 }; |
143 }; |
169 VARDEF byte _no_scroll; |
144 extern byte _no_scroll; |
170 |
145 |
171 /** To have a concurrently running thread interface with the main program, use |
146 /** To have a concurrently running thread interface with the main program, use |
172 * the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled |
147 * the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled |
173 * in the ProcessSentMessage() function */ |
148 * in the ProcessSentMessage() function */ |
174 enum ThreadMsg { |
149 enum ThreadMsg { |