summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_tile.hpp')
-rw-r--r--src/ai/api/ai_tile.hpp7
1 files changed, 7 insertions, 0 deletions
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
@@ -450,6 +450,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.
* @param tile The tile to check.