diff options
author | rubidium <rubidium@openttd.org> | 2007-12-25 11:26:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-25 11:26:07 +0000 |
commit | 429521a7d1f549ba3f9a287885c42f400f5e960f (patch) | |
tree | 54a33aa10dd79668da9f46e61e427ace39f5d37f /src/functions.h | |
parent | bf98e25e43c3f6efe207c3dde1732d44c34ac285 (diff) | |
download | openttd-429521a7d1f549ba3f9a287885c42f400f5e960f.tar.xz |
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
Diffstat (limited to 'src/functions.h')
-rw-r--r-- | src/functions.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/functions.h b/src/functions.h index a1e136de9..528f9fd85 100644 --- a/src/functions.h +++ b/src/functions.h @@ -7,11 +7,8 @@ #include "core/random_func.hpp" #include "command_type.h" -#include "window_type.h" #include "openttd.h" -void UpdateTownMaxPass(Town *t); - /* clear_land.cpp */ void DrawHillyLandTile(const TileInfo *ti); void DrawClearLandTile(const TileInfo *ti, byte set); @@ -25,10 +22,6 @@ void SubtractMoneyFromPlayerFract(PlayerID player, CommandCost cost); bool CheckOwnership(Owner owner); bool CheckTileOwnership(TileIndex tile); -/* standard */ -void ShowInfo(const char *str); -void CDECL ShowInfoF(const char *str, ...); - /* openttd.cpp */ static inline TileIndex RandomTileSeed(uint32 r) { return TILE_MASK(r); } static inline TileIndex RandomTile() { return TILE_MASK(Random()); } @@ -67,14 +60,6 @@ void MarkTileDirty(int x, int y); * @ingroup dirty */ void MarkTileDirtyByTile(TileIndex tile); -void InvalidateWindow(WindowClass cls, WindowNumber number); -void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); -void InvalidateWindowClasses(WindowClass cls); -void InvalidateWindowClassesData(WindowClass cls); -void DeleteWindowById(WindowClass cls, WindowNumber number); -void DeleteWindowByClass(WindowClass cls); - -bool EnsureNoVehicleOnGround(TileIndex tile); /** * Mark all viewports dirty for repaint. @@ -85,15 +70,8 @@ void MarkAllViewportsDirty(int left, int top, int right, int bottom); void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); -bool CheckIfAuthorityAllows(TileIndex tile); -Town *ClosestTownFromTile(TileIndex tile, uint threshold); -void ChangeTownRating(Town *t, int add, int max); - -uint GetTownRadiusGroup(const Town* t, TileIndex tile); void ShowHighscoreTable(int difficulty, int8 rank); -void AfterLoadTown(); -void UpdatePatches(); void AskExitGame(); void AskExitToGameMenu(); @@ -115,13 +93,8 @@ void ShowSaveLoadDialog(int mode); /* callback from drivers that is called if the game size changes dynamically */ void GameSizeChanged(); -bool FileExists(const char *filename); const char *GetCurrentLocale(const char *param); -void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize); -void LoadFromConfig(); -void SaveToConfig(); -void CheckConfig(); int ttd_main(int argc, char* argv[]); void HandleExitGameRequest(); |