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/town.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/town.h')
-rw-r--r-- | src/town.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/town.h b/src/town.h index 0c22618ab..731e45b94 100644 --- a/src/town.h +++ b/src/town.h @@ -6,8 +6,8 @@ #define TOWN_H #include "oldpool.h" -#include "player.h" -#include "functions.h" +#include "core/random_func.hpp" +#include "cargo_type.h" enum { HOUSE_NO_CLASS = 0, @@ -350,5 +350,11 @@ uint OriginalTileRandomiser(uint x, uint y); void ResetHouses(); void ClearTownHouse(Town *t, TileIndex tile); +void AfterLoadTown(); +void UpdateTownMaxPass(Town *t); +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); #endif /* TOWN_H */ |