src/ai/api/ai_industry.hpp
branchnoai
changeset 10383 bda80b3e9c25
parent 10339 ce6cd68d9eb8
child 10842 681a3954232a
--- a/src/ai/api/ai_industry.hpp	Tue Apr 29 21:06:16 2008 +0000
+++ b/src/ai/api/ai_industry.hpp	Tue Apr 29 21:34:17 2008 +0000
@@ -95,6 +95,14 @@
 	static TileIndex GetLocation(IndustryID industry_id);
 
 	/**
+	 * Get the number of stations around an industry.
+	 * @param industry_id The index of the industry.
+	 * @pre IsValidIndustry(industry_id).
+	 * @return The number of stations around an industry.
+	 */
+	static int32 GetAmountOfStationsAround(IndustryID industry_id);
+
+	/**
 	 * Get the manhattan distance from the tile to the AIIndustry::GetLocation()
 	 *  of the industry.
 	 * @param industry_id The industry to get the distance to.