equal
deleted
inserted
replaced
18 #include "livery.h" |
18 #include "livery.h" |
19 #include "player_face.h" |
19 #include "player_face.h" |
20 |
20 |
21 /** Change the player's face. |
21 /** Change the player's face. |
22 * @param tile unused |
22 * @param tile unused |
|
23 * @param flags operation to perform |
23 * @param p1 unused |
24 * @param p1 unused |
24 * @param p2 face bitmasked |
25 * @param p2 face bitmasked |
25 */ |
26 */ |
26 int32 CmdSetPlayerFace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
27 int32 CmdSetPlayerFace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
27 { |
28 { |
36 return 0; |
37 return 0; |
37 } |
38 } |
38 |
39 |
39 /** Change the player's company-colour |
40 /** Change the player's company-colour |
40 * @param tile unused |
41 * @param tile unused |
|
42 * @param flags operation to perform |
41 * @param p1 bitstuffed: |
43 * @param p1 bitstuffed: |
42 * p1 bits 0-7 scheme to set |
44 * p1 bits 0-7 scheme to set |
43 * p1 bits 8-9 set in use state or first/second colour |
45 * p1 bits 8-9 set in use state or first/second colour |
44 * @param p2 new colour for vehicles, property, etc. |
46 * @param p2 new colour for vehicles, property, etc. |
45 */ |
47 */ |
115 return 0; |
117 return 0; |
116 } |
118 } |
117 |
119 |
118 /** Increase the loan of your company. |
120 /** Increase the loan of your company. |
119 * @param tile unused |
121 * @param tile unused |
|
122 * @param flags operation to perform |
120 * @param p1 unused |
123 * @param p1 unused |
121 * @param p2 when set, loans the maximum amount in one go (press CTRL) |
124 * @param p2 when set, loans the maximum amount in one go (press CTRL) |
122 */ |
125 */ |
123 int32 CmdIncreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
126 int32 CmdIncreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
124 { |
127 { |
144 return 0; |
147 return 0; |
145 } |
148 } |
146 |
149 |
147 /** Decrease the loan of your company. |
150 /** Decrease the loan of your company. |
148 * @param tile unused |
151 * @param tile unused |
|
152 * @param flags operation to perform |
149 * @param p1 unused |
153 * @param p1 unused |
150 * @param p2 when set, pays back the maximum loan permitting money (press CTRL) |
154 * @param p2 when set, pays back the maximum loan permitting money (press CTRL) |
151 */ |
155 */ |
152 int32 CmdDecreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
156 int32 CmdDecreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
153 { |
157 { |
184 return 0; |
188 return 0; |
185 } |
189 } |
186 |
190 |
187 /** Change the name of the company. |
191 /** Change the name of the company. |
188 * @param tile unused |
192 * @param tile unused |
|
193 * @param flags operation to perform |
189 * @param p1 unused |
194 * @param p1 unused |
190 * @param p2 unused |
195 * @param p2 unused |
191 */ |
196 */ |
192 int32 CmdChangeCompanyName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
197 int32 CmdChangeCompanyName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
193 { |
198 { |
211 return 0; |
216 return 0; |
212 } |
217 } |
213 |
218 |
214 /** Change the name of the president. |
219 /** Change the name of the president. |
215 * @param tile unused |
220 * @param tile unused |
|
221 * @param flags operation to perform |
216 * @param p1 unused |
222 * @param p1 unused |
217 * @param p2 unused |
223 * @param p2 unused |
218 */ |
224 */ |
219 int32 CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
225 int32 CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
220 { |
226 { |
249 /** Pause/Unpause the game (server-only). |
255 /** Pause/Unpause the game (server-only). |
250 * Increase or decrease the pause counter. If the counter is zero, |
256 * Increase or decrease the pause counter. If the counter is zero, |
251 * the game is unpaused. A counter is used instead of a boolean value |
257 * the game is unpaused. A counter is used instead of a boolean value |
252 * to have more control over the game when saving/loading, etc. |
258 * to have more control over the game when saving/loading, etc. |
253 * @param tile unused |
259 * @param tile unused |
|
260 * @param flags operation to perform |
254 * @param p1 0 = decrease pause counter; 1 = increase pause counter |
261 * @param p1 0 = decrease pause counter; 1 = increase pause counter |
255 * @param p2 unused |
262 * @param p2 unused |
256 */ |
263 */ |
257 int32 CmdPause(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
264 int32 CmdPause(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
258 { |
265 { |
267 |
274 |
268 /** Change the financial flow of your company. |
275 /** Change the financial flow of your company. |
269 * This is normally only enabled in offline mode, but if there is a debug |
276 * This is normally only enabled in offline mode, but if there is a debug |
270 * build, you can cheat (to test). |
277 * build, you can cheat (to test). |
271 * @param tile unused |
278 * @param tile unused |
|
279 * @param flags operation to perform |
272 * @param p1 the amount of money to receive (if negative), or spend (if positive) |
280 * @param p1 the amount of money to receive (if negative), or spend (if positive) |
273 * @param p2 unused |
281 * @param p2 unused |
274 */ |
282 */ |
275 int32 CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
283 int32 CmdMoneyCheat(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
276 { |
284 { |
284 /** Transfer funds (money) from one player to another. |
292 /** Transfer funds (money) from one player to another. |
285 * To prevent abuse in multiplayer games you can only send money to other |
293 * To prevent abuse in multiplayer games you can only send money to other |
286 * players if you have paid off your loan (either explicitely, or implicitely |
294 * players if you have paid off your loan (either explicitely, or implicitely |
287 * given the fact that you have more money than loan). |
295 * given the fact that you have more money than loan). |
288 * @param tile unused |
296 * @param tile unused |
|
297 * @param flags operation to perform |
289 * @param p1 the amount of money to transfer; max 20.000.000 |
298 * @param p1 the amount of money to transfer; max 20.000.000 |
290 * @param p2 the player to transfer the money to |
299 * @param p2 the player to transfer the money to |
291 */ |
300 */ |
292 int32 CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
301 int32 CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
293 { |
302 { |
315 /** Change difficulty level/settings (server-only). |
324 /** Change difficulty level/settings (server-only). |
316 * We cannot really check for valid values of p2 (too much work mostly); stored |
325 * We cannot really check for valid values of p2 (too much work mostly); stored |
317 * in file 'settings_gui.c' _game_setting_info[]; we'll just trust the server it knows |
326 * in file 'settings_gui.c' _game_setting_info[]; we'll just trust the server it knows |
318 * what to do and does this correctly |
327 * what to do and does this correctly |
319 * @param tile unused |
328 * @param tile unused |
|
329 * @param flags operation to perform |
320 * @param p1 the difficulty setting being changed. If it is -1, the difficulty level |
330 * @param p1 the difficulty setting being changed. If it is -1, the difficulty level |
321 * itself is changed. The new value is inside p2 |
331 * itself is changed. The new value is inside p2 |
322 * @param p2 new value for a difficulty setting or difficulty level |
332 * @param p2 new value for a difficulty setting or difficulty level |
323 */ |
333 */ |
324 int32 CmdChangeDifficultyLevel(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
334 int32 CmdChangeDifficultyLevel(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |