src/ai/api/ai_town.hpp
branchnoai
changeset 10360 3234cb59de55
parent 10339 ce6cd68d9eb8
child 10361 4cdffd48480f
--- a/src/ai/api/ai_town.hpp	Fri Apr 25 15:34:04 2008 +0000
+++ b/src/ai/api/ai_town.hpp	Fri Apr 25 15:51:12 2008 +0000
@@ -80,6 +80,14 @@
 	 * @return The distance between town and tile.
 	 */
 	static int32 GetDistanceSquareToTile(TownID town_id, TileIndex tile);
+
+	/**
+	 * Find out if this tile is within the rating influence of a town.
+	 * @param town_id The town to check.
+	 * @param tile The tile to check.
+	 * @return True if the tile is within the rating influence of the town.
+	 */
+	static bool IsWithinTownRadius(TownID town_id, TileIndex tile);
 };
 
 #endif /* AI_TOWN_HPP */