(svn r22764) -Add: [NoAI] AITile::GetTownAuthority().

This commit is contained in:
frosch
2011-08-19 21:19:10 +00:00
parent b8f8cef34c
commit 27aff44e77
4 changed files with 16 additions and 0 deletions

View File

@@ -449,6 +449,13 @@ public:
*/
static bool IsWithinTownInfluence(TileIndex tile, TownID town_id);
/**
* Find the town which has authority for the tile.
* The rating of your company in this town will be checked and affected when
* building stations, trees etc.
*/
static TownID GetTownAuthority(TileIndex tile);
/**
* Find the town that is closest to a tile. Stations you build at this tile
* will belong to this town.