diff options
author | smatz <smatz@openttd.org> | 2009-02-04 22:52:34 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-02-04 22:52:34 +0000 |
commit | e80255c4ae1bcdf925e5787eab4a9213dcb97c73 (patch) | |
tree | 83d96f68ddaeded3b1dba2387c418b51fee47623 /src/town.h | |
parent | 38e66637a1c9f6197ecd2b0bf3ba979842704666 (diff) | |
download | openttd-e80255c4ae1bcdf925e5787eab4a9213dcb97c73.tar.xz |
(svn r15342) -Feature: allow changing town layout in the 'Found new town' window
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town.h b/src/town.h index 62a6b2524..c90d74a23 100644 --- a/src/town.h +++ b/src/town.h @@ -184,7 +184,7 @@ struct Town : PoolItem<Town, TownID, &_Town_pool> { inline bool IsValid() const { return this->xy != INVALID_TILE; } - void InitializeLayout(); + void InitializeLayout(TownLayout layout); /** Calculate the max town noise * The value is counted using the population divided by the content of the @@ -250,7 +250,7 @@ void UpdateAllTownVirtCoords(); void InitializeTown(); void ShowTownViewWindow(TownID town); void ExpandTown(Town *t); -Town *CreateRandomTown(uint attempts, TownSizeMode mode, uint size); +Town *CreateRandomTown(uint attempts, TownSizeMode mode, uint size, TownLayout layout); enum { ROAD_REMOVE = 0, @@ -358,6 +358,7 @@ void ChangeTownRating(Town *t, int add, int max); HouseZonesBits GetTownRadiusGroup(const Town *t, TileIndex tile); void SetTownRatingTestMode(bool mode); uint GetMaskOfTownActions(int *nump, CompanyID cid, const Town *t); +bool GenerateTowns(TownLayout layout); /** * Calculate a hash value from a tile position |