diff options
author | maedhros <maedhros@openttd.org> | 2007-04-12 13:07:15 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-04-12 13:07:15 +0000 |
commit | 3d81de8d7ecda44d3683163c1d8ecbdb7c17aaca (patch) | |
tree | 46c4e0e10e8944f926e6b4ccf3df95badd5ec51e /src/functions.h | |
parent | 7e0ad00ef6006a0c89f3f00e1181c5fe65a38742 (diff) | |
download | openttd-3d81de8d7ecda44d3683163c1d8ecbdb7c17aaca.tar.xz |
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
Diffstat (limited to 'src/functions.h')
-rw-r--r-- | src/functions.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/functions.h b/src/functions.h index 2d3bcc998..714316b61 100644 --- a/src/functions.h +++ b/src/functions.h @@ -7,35 +7,8 @@ #include "gfx.h" -void DoClearSquare(TileIndex tile); -void RunTileLoop(); - -uint GetPartialZ(int x, int y, Slope corners); -uint GetSlopeZ(int x, int y); -uint32 GetTileTrackStatus(TileIndex tile, TransportType mode); -void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac); -void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player); -void AnimateTile(TileIndex tile); -void ClickTile(TileIndex tile); -void GetTileDesc(TileIndex tile, TileDesc *td); void UpdateTownMaxPass(Town *t); -bool IsValidTile(TileIndex tile); - -static inline Point RemapCoords(int x, int y, int z) -{ - Point pt; - pt.x = (y - x) * 2; - pt.y = y + x - z; - return pt; -} - -static inline Point RemapCoords2(int x, int y) -{ - return RemapCoords(x, y, GetSlopeZ(x, y)); -} - - /* clear_land.cpp */ void DrawHillyLandTile(const TileInfo *ti); void DrawClearLandTile(const TileInfo *ti, byte set); @@ -170,8 +143,6 @@ void MarkAllViewportsDirty(int left, int top, int right, int bottom); void ShowCostOrIncomeAnimation(int x, int y, int z, int32 cost); void ShowFeederIncomeAnimation(int x, int y, int z, int32 cost); -void DrawFoundation(TileInfo *ti, uint f); - bool CheckIfAuthorityAllows(TileIndex tile); Town *ClosestTownFromTile(TileIndex tile, uint threshold); void ChangeTownRating(Town *t, int add, int max); @@ -179,7 +150,6 @@ void ChangeTownRating(Town *t, int add, int max); uint GetTownRadiusGroup(const Town* t, TileIndex tile); int FindFirstBit(uint32 x); void ShowHighscoreTable(int difficulty, int8 rank); -TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); void AfterLoadTown(); void UpdatePatches(); |