author | rubidium |
Sun, 06 Apr 2008 12:26:40 +0000 | |
branch | noai |
changeset 9867 | b7d9ffe24f81 |
parent 9724 | b39bc69bb2f2 |
child 10294 | 7798ae816af8 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
3 |
/** @file functions.h */ |
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
4 |
|
0 | 5 |
#ifndef FUNCTIONS_H |
6 |
#define FUNCTIONS_H |
|
7 |
||
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
8 |
#include "openttd.h" |
9722
ebf0ece7d8f6
(svn r11503) [NoAI] -Sync: with trunk r11308:11502.
rubidium
parents:
9718
diff
changeset
|
9 |
#include "core/random_func.hpp" |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
10 |
#include "command_type.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9722
diff
changeset
|
11 |
#include "tile_cmd.h" |
0 | 12 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
13 |
/* clear_land.cpp */ |
2436
177cb6a8339f
(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 DrawHillyLandTile(const TileInfo *ti); |
177cb6a8339f
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2380
diff
changeset
|
15 |
void DrawClearLandTile(const TileInfo *ti, byte set); |
2220 | 16 |
void DrawClearLandFence(const TileInfo *ti); |
1420
5308b177b5b3
(svn r1924) Use same type names in declaration and implementation
tron
parents:
1377
diff
changeset
|
17 |
void TileLoopClearHelper(TileIndex tile); |
0 | 18 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
19 |
/* players.cpp */ |
9629 | 20 |
bool CheckPlayerHasMoney(CommandCost cost); |
21 |
void SubtractMoneyFromPlayer(CommandCost cost); |
|
22 |
void SubtractMoneyFromPlayerFract(PlayerID player, CommandCost cost); |
|
4849
9a3c3ae7f62f
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
Darkvater
parents:
4833
diff
changeset
|
23 |
bool CheckOwnership(Owner owner); |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1935
diff
changeset
|
24 |
bool CheckTileOwnership(TileIndex tile); |
0 | 25 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
26 |
/* texteff.cpp */ |
9718
f82a4facea8b
(svn r11309) [NoAI] -Sync: with trunk r11145:11308.
truelight
parents:
9704
diff
changeset
|
27 |
void AddAnimatedTile(TileIndex tile); |
1977
4392ae3d8e31
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1935
diff
changeset
|
28 |
void DeleteAnimatedTile(TileIndex tile); |
6573 | 29 |
void AnimateAnimatedTiles(); |
30 |
void InitializeAnimatedTiles(); |
|
0 | 31 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
32 |
/* misc_cmd.cpp */ |
6573 | 33 |
void PlaceTreesRandomly(); |
0 | 34 |
|
35 |
void InitializeLandscapeVariables(bool only_constants); |
|
36 |
||
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
37 |
/* misc.cpp */ |
4862
b45c1e638e7f
(svn r6788) - Codechange: Add and use a function to test if a string ID is a custom name.
peter1138
parents:
4849
diff
changeset
|
38 |
bool IsCustomName(StringID id); |
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
39 |
char *CopyFromOldName(StringID id); |
0 | 40 |
|
41 |
/* misc functions */ |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
42 |
/** |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
43 |
* Mark a tile given by its coordinate dirty for repaint. |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
44 |
* |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
45 |
* @ingroup dirty |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
46 |
*/ |
0 | 47 |
void MarkTileDirty(int x, int y); |
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
48 |
|
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
49 |
/** |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
50 |
* Mark a tile given by its index dirty for repaint. |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
51 |
* |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
52 |
* @ingroup dirty |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
53 |
*/ |
0 | 54 |
void MarkTileDirtyByTile(TileIndex tile); |
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
55 |
|
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
56 |
/** |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
57 |
* Mark all viewports dirty for repaint. |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
58 |
* |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
59 |
* @ingroup dirty |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9701
diff
changeset
|
60 |
*/ |
0 | 61 |
void MarkAllViewportsDirty(int left, int top, int right, int bottom); |
9629 | 62 |
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); |
63 |
void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); |
|
0 | 64 |
|
9628
b5c2449616b5
(svn r10195) [NoAI] -Sync: with trunk r10119:10194.
rubidium
parents:
9625
diff
changeset
|
65 |
void ShowHighscoreTable(int difficulty, int8 rank); |
b5c2449616b5
(svn r10195) [NoAI] -Sync: with trunk r10119:10194.
rubidium
parents:
9625
diff
changeset
|
66 |
|
6573 | 67 |
void AskExitGame(); |
68 |
void AskExitToGameMenu(); |
|
0 | 69 |
|
6573 | 70 |
void RedrawAutosave(); |
0 | 71 |
|
72 |
StringID RemapOldStringID(StringID s); |
|
73 |
||
74 |
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str); |
|
75 |
||
76 |
||
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
5919
diff
changeset
|
77 |
/* callback from drivers that is called if the game size changes dynamically */ |
6573 | 78 |
void GameSizeChanged(); |
3329
992d1f7cb747
(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
|
79 |
const char *GetCurrentLocale(const char *param); |
0 | 80 |
|
81 |
int ttd_main(int argc, char* argv[]); |
|
6573 | 82 |
void HandleExitGameRequest(); |
0 | 83 |
|
84 |
#endif /* FUNCTIONS_H */ |