From 27aff44e77493ca87d6b75fa99c972a5035a42dc Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 19 Aug 2011 21:19:10 +0000 Subject: (svn r22764) -Add: [NoAI] AITile::GetTownAuthority(). --- src/ai/api/ai_tile.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ai/api/ai_tile.hpp') diff --git a/src/ai/api/ai_tile.hpp b/src/ai/api/ai_tile.hpp index 557305b40..727c781a9 100644 --- a/src/ai/api/ai_tile.hpp +++ b/src/ai/api/ai_tile.hpp @@ -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. -- cgit v1.2.3-70-g09d2