author | truelight |
Thu, 24 Mar 2005 14:43:40 +0000 | |
changeset 1540 | 6eef12dab5bf |
parent 1539 | b3fce185178a |
child 1542 | 62a03537ad0b |
permissions | -rw-r--r-- |
0 | 1 |
#ifndef FUNCTIONS_H |
2 |
#define FUNCTIONS_H |
|
3 |
||
4 |
/* vehicle.c */ |
|
5 |
||
6 |
/* window.c */ |
|
7 |
||
8 |
||
9 |
/* landscape.c */ |
|
10 |
void FindLandscapeHeight(TileInfo *ti, uint x, uint y); |
|
1420
83e74e76f600
(svn r1924) Use same type names in declaration and implementation
tron
parents:
1377
diff
changeset
|
11 |
void FindLandscapeHeightByTile(TileInfo *ti, TileIndex tile); |
0 | 12 |
|
13 |
void DoClearSquare(uint tile); |
|
14 |
void CDECL ModifyTile(uint tile, uint flags, ...); |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
15 |
void RunTileLoop(void); |
0 | 16 |
|
17 |
uint GetPartialZ(int x, int y, int corners); |
|
18 |
uint GetSlopeZ(int x, int y); |
|
159
139cf78bfb28
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
truelight
parents:
152
diff
changeset
|
19 |
uint32 GetTileTrackStatus(uint tile, TransportType mode); |
473
77f0ef57e7cf
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
tron
parents:
430
diff
changeset
|
20 |
void GetAcceptedCargo(uint tile, AcceptedCargo ac); |
0 | 21 |
void ChangeTileOwner(uint tile, byte old_player, byte new_player); |
22 |
void AnimateTile(uint tile); |
|
23 |
void ClickTile(uint tile); |
|
24 |
void GetTileDesc(uint tile, TileDesc *td); |
|
25 |
void DrawTile(TileInfo *ti); |
|
1377
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1335
diff
changeset
|
26 |
void UpdateTownMaxPass(Town *t); |
0 | 27 |
|
28 |
bool IsValidTile(uint tile); |
|
29 |
||
536 | 30 |
static inline Point RemapCoords(int x, int y, int z) |
31 |
{ |
|
0 | 32 |
#if !defined(NEW_ROTATION) |
781
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
33 |
Point pt; |
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
34 |
pt.x = (y - x) * 2; |
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
35 |
pt.y = y + x - z; |
0 | 36 |
#else |
781
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
37 |
Point pt; |
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
38 |
pt.x = (x + y) * 2; |
4c9177888196
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
truelight
parents:
738
diff
changeset
|
39 |
pt.y = x - y - z; |
0 | 40 |
#endif |
536 | 41 |
return pt; |
42 |
} |
|
0 | 43 |
|
536 | 44 |
static inline Point RemapCoords2(int x, int y) |
45 |
{ |
|
46 |
return RemapCoords(x, y, GetSlopeZ(x, y)); |
|
47 |
} |
|
0 | 48 |
|
49 |
||
50 |
/* clear_land.c */ |
|
51 |
void DrawHillyLandTile(TileInfo *ti); |
|
52 |
void DrawClearLandTile(TileInfo *ti, byte set); |
|
53 |
void DrawClearLandFence(TileInfo *ti, byte img); |
|
1420
83e74e76f600
(svn r1924) Use same type names in declaration and implementation
tron
parents:
1377
diff
changeset
|
54 |
void TileLoopClearHelper(TileIndex tile); |
0 | 55 |
|
56 |
/* station_land.c */ |
|
57 |
void StationPickerDrawSprite(int x, int y, int railtype, int image); |
|
58 |
||
59 |
/* track_land.c */ |
|
60 |
void DrawTrainDepotSprite(int x, int y, int image, int railtype); |
|
415
20f981988266
(svn r612) [newgrf] Fix: custom waypoints on monorail/maglev are displayed correctly
dominik
parents:
395
diff
changeset
|
61 |
void DrawWaypointSprite(int x, int y, int image, int railtype); |
0 | 62 |
|
63 |
/* road_land.c */ |
|
64 |
void DrawRoadDepotSprite(int x, int y, int image); |
|
65 |
||
66 |
/* water_land.c */ |
|
67 |
void DrawShipDepotSprite(int x, int y, int image); |
|
68 |
void TileLoop_Water(uint tile); |
|
69 |
||
70 |
/* players.c */ |
|
71 |
bool CheckPlayerHasMoney(int32 cost); |
|
72 |
void SubtractMoneyFromPlayer(int32 cost); |
|
73 |
void SubtractMoneyFromPlayerFract(byte player, int32 cost); |
|
74 |
bool CheckOwnership(byte owner); |
|
75 |
bool CheckTileOwnership(uint tile); |
|
2
104b2984cd3e
(svn r3) -[1005611] Player Window patch: When looking in dropdownlist for player stuff, it will say
darkvater
parents:
1
diff
changeset
|
76 |
StringID GetPlayerNameString(byte player, byte index); |
0 | 77 |
|
78 |
/* standard */ |
|
79 |
void ShowInfo(const char *str); |
|
80 |
void CDECL ShowInfoF(const char *str, ...); |
|
81 |
void NORETURN CDECL error(const char *str, ...); |
|
82 |
||
83 |
/* ttd.c */ |
|
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
84 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
85 |
// ************** |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
86 |
// * Warning: DO NOT enable this unless you understand what it does |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
87 |
// * |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
88 |
// * If enabled, in a network game all randoms will be dumped to the |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
89 |
// * stdout if the first client joins (or if you are a client). This |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
90 |
// * is to help finding desync problems. |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
91 |
// * |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
92 |
// * Warning: DO NOT enable this unless you understand what it does |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
93 |
// ************** |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
94 |
|
1539
b3fce185178a
(svn r2043) -Fix: committed too many files in the last commit
truelight
parents:
1538
diff
changeset
|
95 |
//#define RANDOM_DEBUG |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
96 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
97 |
#ifdef RANDOM_DEBUG |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
98 |
#define Random() DoRandom(__LINE__, __FILE__) |
1120
047e8b16a954
(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
truelight
parents:
1115
diff
changeset
|
99 |
uint32 DoRandom(int line, const char *file); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
100 |
#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__) |
1120
047e8b16a954
(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
truelight
parents:
1115
diff
changeset
|
101 |
uint DoRandomRange(uint max, int line, const char *file); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
102 |
#else |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
103 |
uint32 Random(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
104 |
uint RandomRange(uint max); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
105 |
#endif |
0 | 106 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
107 |
void InitPlayerRandoms(void); |
206 | 108 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
109 |
uint32 InteractiveRandom(void); /* Used for random sequences that are not the same on the other end of the multiplayer link */ |
239 | 110 |
uint InteractiveRandomRange(uint max); |
111 |
||
0 | 112 |
void SetDate(uint date); |
113 |
/* facedraw.c */ |
|
114 |
void DrawPlayerFace(uint32 face, int color, int x, int y); |
|
115 |
||
116 |
/* texteff.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
117 |
void MoveAllTextEffects(void); |
0 | 118 |
void AddTextEffect(StringID msg, int x, int y, uint16 duration); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
119 |
void InitTextEffects(void); |
0 | 120 |
void DrawTextEffects(DrawPixelInfo *dpi); |
121 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
122 |
void InitTextMessage(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
123 |
void DrawTextMessage(void); |
619
abab6c8f1af7
(svn r1045) -Fix: OpenTTD compiles again under VC6 (sign_de)
truelight
parents:
543
diff
changeset
|
124 |
void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
125 |
void UndrawTextMessage(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
126 |
void TextMessageDailyLoop(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
127 |
|
0 | 128 |
bool AddAnimatedTile(uint tile); |
129 |
void DeleteAnimatedTile(uint tile); |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
130 |
void AnimateAnimatedTiles(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
131 |
void InitializeAnimatedTiles(void); |
0 | 132 |
|
133 |
/* tunnelbridge_cmd.c */ |
|
134 |
bool CheckTunnelInWay(uint tile, int z); |
|
135 |
bool CheckBridge_Stuff(byte bridge_type, int bridge_len); |
|
136 |
uint32 GetBridgeLength(TileIndex begin, TileIndex end); |
|
137 |
int CalcBridgeLenCostFactor(int x); |
|
138 |
||
139 |
typedef void CommandCallback(bool success, uint tile, uint32 p1, uint32 p2); |
|
140 |
bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd); |
|
141 |
||
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
142 |
/* network.c */ |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
143 |
void NetworkUDPClose(void); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
144 |
void NetworkStartUp(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
145 |
void NetworkShutDown(void); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
146 |
void NetworkGameLoop(void); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
147 |
void NetworkUDPGameLoop(void); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
148 |
bool NetworkServerStart(void); |
1329 | 149 |
bool NetworkClientConnectGame(const char* host, unsigned short port); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
150 |
void NetworkReboot(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
151 |
void NetworkDisconnect(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
152 |
void NetworkSend_Command(uint32 tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback); |
0 | 153 |
|
154 |
/* misc_cmd.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
155 |
void PlaceTreesRandomly(void); |
0 | 156 |
|
157 |
void InitializeLandscapeVariables(bool only_constants); |
|
158 |
||
159 |
/* misc.c */ |
|
160 |
void DeleteName(StringID id); |
|
1328
eacd8225ed42
(svn r1832) Next byte -> char iteration: custom names
tron
parents:
1317
diff
changeset
|
161 |
char *GetName(int id, char *buff); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
162 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
163 |
// AllocateNameUnique also tests if the name used is not used anywere else |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
164 |
// and if it is used, it returns an error. |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
165 |
#define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true) |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
166 |
#define AllocateName(name, skip) RealAllocateName(name, skip, false) |
1328
eacd8225ed42
(svn r1832) Next byte -> char iteration: custom names
tron
parents:
1317
diff
changeset
|
167 |
StringID RealAllocateName(const char *name, byte skip, bool check_double); |
0 | 168 |
void ConvertDayToYMD(YearMonthDay *ymd, uint16 date); |
169 |
uint ConvertYMDToDay(uint year, uint month, uint day); |
|
170 |
uint ConvertIntDate(uint date); |
|
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
171 |
void CSleep(int milliseconds); |
0 | 172 |
|
173 |
||
174 |
/* misc functions */ |
|
175 |
void MarkTileDirty(int x, int y); |
|
176 |
void MarkTileDirtyByTile(TileIndex tile); |
|
177 |
void InvalidateWindow(byte cls, WindowNumber number); |
|
178 |
void InvalidateWindowWidget(byte cls, WindowNumber number, byte widget_index); |
|
179 |
void InvalidateWindowClasses(byte cls); |
|
180 |
void DeleteWindowById(WindowClass cls, WindowNumber number); |
|
999
647f65adeb9e
(svn r1497) -Fix: [1101179] Crash if generating land while industry window is open. This also happened for towns and the land information window
darkvater
parents:
998
diff
changeset
|
181 |
void DeleteWindowByClass(WindowClass cls); |
0 | 182 |
|
183 |
void SetObjectToPlaceWnd(int icon, byte mode, Window *w); |
|
873
732553f5b169
(svn r1354) Use WindowClass/WindowNumber to store/pass window class/number, not some arbitrary data types
tron
parents:
781
diff
changeset
|
184 |
void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumber window_num); |
0 | 185 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
186 |
void ResetObjectToPlace(void); |
152
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
131
diff
changeset
|
187 |
|
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
131
diff
changeset
|
188 |
bool ScrollWindowToTile(TileIndex tile, Window * w); |
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
131
diff
changeset
|
189 |
bool ScrollWindowTo(int x, int y, Window * w); |
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
131
diff
changeset
|
190 |
|
0 | 191 |
bool ScrollMainWindowToTile(TileIndex tile); |
192 |
bool ScrollMainWindowTo(int x, int y); |
|
193 |
void DrawSprite(uint32 img, int x, int y); |
|
1082
a83d7ac6fecb
(svn r1583) -Fix: You should no longer be able to delete bridges on any type of underground when there is a vehicle on it
darkvater
parents:
1009
diff
changeset
|
194 |
uint GetCorrectTileHeight(TileIndex tile); |
0 | 195 |
bool EnsureNoVehicle(TileIndex tile); |
196 |
bool EnsureNoVehicleZ(TileIndex tile, byte z); |
|
197 |
void MarkAllViewportsDirty(int left, int top, int right, int bottom); |
|
198 |
void ShowCostOrIncomeAnimation(int x, int y, int z, int32 cost); |
|
199 |
||
200 |
void DrawFoundation(TileInfo *ti, uint f); |
|
201 |
||
202 |
bool CheckIfAuthorityAllows(uint tile); |
|
203 |
Town *ClosestTownFromTile(uint tile, uint threshold); |
|
204 |
void ChangeTownRating(Town *t, int add, int max); |
|
205 |
||
206 |
uint GetRoadBitsByTile(TileIndex tile); |
|
207 |
int GetTownRadiusGroup(Town *t, uint tile); |
|
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
208 |
void ShowNetworkChatQueryWindow(byte desttype, byte dest); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
536
diff
changeset
|
209 |
void ShowNetworkGiveMoneyWindow(byte player); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
210 |
void ShowNetworkNeedGamePassword(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
211 |
void ShowNetworkNeedCompanyPassword(void); |
395
788a9bba0889
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
darkvater
parents:
393
diff
changeset
|
212 |
void ShowRenameWaypointWindow(Waypoint *cp); |
0 | 213 |
int FindFirstBit(uint32 x); |
998
c90459c24842
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
darkvater
parents:
988
diff
changeset
|
214 |
void ShowHighscoreTable(int difficulty, int8 rank); |
983
4765bf636f6b
(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
darkvater
parents:
873
diff
changeset
|
215 |
void ShowEndGameChart(void); |
0 | 216 |
TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); |
217 |
||
218 |
enum SaveOrLoadResult { |
|
219 |
SL_OK = 0, // completed successfully |
|
220 |
SL_ERROR = 1, // error that was caught before internal structures were modified |
|
221 |
SL_REINIT = 2, // error that was caught in the middle of updating game state, need to clear it. (can only happen during load) |
|
222 |
}; |
|
223 |
enum SaveOrLoadMode { |
|
224 |
SL_INVALID = -1, |
|
225 |
SL_LOAD = 0, |
|
226 |
SL_SAVE = 1, |
|
227 |
SL_OLD_LOAD = 2, |
|
228 |
}; |
|
229 |
||
230 |
int SaveOrLoad(const char *filename, int mode); |
|
231 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
232 |
void AfterLoadTown(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
233 |
void AskExitGame(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
234 |
void AskExitToGameMenu(void); |
0 | 235 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
236 |
void RedrawAutosave(void); |
0 | 237 |
|
238 |
StringID RemapOldStringID(StringID s); |
|
239 |
||
240 |
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str); |
|
241 |
||
242 |
enum { |
|
243 |
SLD_LOAD_GAME = 0, |
|
244 |
SLD_LOAD_SCENARIO = 1, |
|
245 |
SLD_SAVE_GAME = 2, |
|
246 |
SLD_SAVE_SCENARIO = 3, |
|
247 |
SLD_NEW_GAME = 4, |
|
248 |
}; |
|
249 |
void ShowSaveLoadDialog(int mode); |
|
250 |
||
251 |
// callback from drivers that is called if the game size changes dynamically |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
252 |
void GameSizeChanged(void); |
0 | 253 |
bool FileExists(const char *filename); |
254 |
bool ReadLanguagePack(int index); |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
255 |
void InitializeLanguagePacks(void); |
1310
99c921090356
(svn r1814) Let ReadFileToMem() return void* (instead of byte*) because we don't know what the caller wants to do with the data
tron
parents:
1309
diff
changeset
|
256 |
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize); |
0 | 257 |
int GetLanguageList(char **languages, int max); |
258 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
259 |
void CheckSwitchToEuro(void); |
0 | 260 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
261 |
void LoadFromConfig(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
262 |
void SaveToConfig(void); |
0 | 263 |
int ttd_main(int argc, char* argv[]); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
264 |
byte GetOSVersion(void); |
0 | 265 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1082
diff
changeset
|
266 |
void DeterminePaths(void); |
0 | 267 |
char * CDECL str_fmt(const char *str, ...); |
268 |
||
1217
59c024cfaf54
(svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on
celestar
parents:
1211
diff
changeset
|
269 |
void bubblesort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); |
0 | 270 |
#endif /* FUNCTIONS_H */ |