author | rubidium |
Sat, 19 Apr 2008 08:21:55 +0000 | |
changeset 8987 | 80d22b9c2a0c |
parent 8258 | 9fa31acb07bc |
child 8991 | 749d842945cc |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
3 |
/** @file functions.h */ |
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
4 |
|
0 | 5 |
#ifndef FUNCTIONS_H |
6 |
#define FUNCTIONS_H |
|
7 |
||
7935
c2d1b2f4ecd6
(svn r11488) -Codechange: Spilt the random functions out to seperate file
skidd13
parents:
7889
diff
changeset
|
8 |
#include "core/random_func.hpp" |
8119
52b48108425a
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
7971
diff
changeset
|
9 |
#include "command_type.h" |
8138
dbfdc08fa6b9
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8131
diff
changeset
|
10 |
#include "tile_cmd.h" |
5636
3c19b56dc982
(svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h
KUDr
parents:
5587
diff
changeset
|
11 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
12 |
/* clear_land.cpp */ |
2436
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2380
diff
changeset
|
13 |
void DrawHillyLandTile(const TileInfo *ti); |
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2380
diff
changeset
|
14 |
void DrawClearLandTile(const TileInfo *ti, byte set); |
2220 | 15 |
void DrawClearLandFence(const TileInfo *ti); |
1420
83e74e76f600
(svn r1924) Use same type names in declaration and implementation
tron
parents:
1377
diff
changeset
|
16 |
void TileLoopClearHelper(TileIndex tile); |
0 | 17 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
18 |
/* players.cpp */ |
6943
1914f26aee04
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
rubidium
parents:
6879
diff
changeset
|
19 |
bool CheckPlayerHasMoney(CommandCost cost); |
1914f26aee04
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
rubidium
parents:
6879
diff
changeset
|
20 |
void SubtractMoneyFromPlayer(CommandCost cost); |
1914f26aee04
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
rubidium
parents:
6879
diff
changeset
|
21 |
void SubtractMoneyFromPlayerFract(PlayerID player, CommandCost cost); |
4849
1c6f21eb97f2
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
Darkvater
parents:
4833
diff
changeset
|
22 |
bool CheckOwnership(Owner owner); |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1935
diff
changeset
|
23 |
bool CheckTileOwnership(TileIndex tile); |
0 | 24 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
25 |
/* texteff.cpp */ |
7694
3c4a0b7894cd
(svn r11228) -Codechange: implement the "moreanimation" feature of TTDP, so we can properly support newindustries.
rubidium
parents:
7681
diff
changeset
|
26 |
void AddAnimatedTile(TileIndex tile); |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1935
diff
changeset
|
27 |
void DeleteAnimatedTile(TileIndex tile); |
6247 | 28 |
void AnimateAnimatedTiles(); |
29 |
void InitializeAnimatedTiles(); |
|
0 | 30 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
31 |
/* misc_cmd.cpp */ |
6247 | 32 |
void PlaceTreesRandomly(); |
0 | 33 |
|
34 |
void InitializeLandscapeVariables(bool only_constants); |
|
35 |
||
36 |
/* misc functions */ |
|
7545
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
37 |
/** |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
38 |
* Mark a tile given by its coordinate dirty for repaint. |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
39 |
* |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
40 |
* @ingroup dirty |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
41 |
*/ |
0 | 42 |
void MarkTileDirty(int x, int y); |
7545
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
43 |
|
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
44 |
/** |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
45 |
* Mark a tile given by its index dirty for repaint. |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
46 |
* |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
47 |
* @ingroup dirty |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
48 |
*/ |
0 | 49 |
void MarkTileDirtyByTile(TileIndex tile); |
7545
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
50 |
|
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
51 |
/** |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
52 |
* Mark all viewports dirty for repaint. |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
53 |
* |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
54 |
* @ingroup dirty |
d44e19c5671e
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
rubidium
parents:
7516
diff
changeset
|
55 |
*/ |
0 | 56 |
void MarkAllViewportsDirty(int left, int top, int right, int bottom); |
6990
136a08baf0ed
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
rubidium
parents:
6943
diff
changeset
|
57 |
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); |
136a08baf0ed
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
rubidium
parents:
6943
diff
changeset
|
58 |
void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); |
0 | 59 |
|
6879
6f2927f456d7
(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops.
maedhros
parents:
6730
diff
changeset
|
60 |
void ShowHighscoreTable(int difficulty, int8 rank); |
6f2927f456d7
(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops.
maedhros
parents:
6730
diff
changeset
|
61 |
|
6247 | 62 |
void AskExitGame(); |
63 |
void AskExitToGameMenu(); |
|
0 | 64 |
|
6247 | 65 |
void RedrawAutosave(); |
0 | 66 |
|
67 |
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str); |
|
68 |
||
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5668
diff
changeset
|
69 |
/* callback from drivers that is called if the game size changes dynamically */ |
6247 | 70 |
void GameSizeChanged(); |
3329
9885789ecaf7
(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them.
Darkvater
parents:
3297
diff
changeset
|
71 |
const char *GetCurrentLocale(const char *param); |
0 | 72 |
|
73 |
int ttd_main(int argc, char* argv[]); |
|
6247 | 74 |
void HandleExitGameRequest(); |
0 | 75 |
|
76 |
#endif /* FUNCTIONS_H */ |