summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_industry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_industry.hpp')
-rw-r--r--src/ai/api/ai_industry.hpp31
1 files changed, 24 insertions, 7 deletions
diff --git a/src/ai/api/ai_industry.hpp b/src/ai/api/ai_industry.hpp
index 11d3dbc43..abaff2ea2 100644
--- a/src/ai/api/ai_industry.hpp
+++ b/src/ai/api/ai_industry.hpp
@@ -132,21 +132,38 @@ public:
static bool IsBuiltOnWater(IndustryID industry_id);
/**
- * Does this industry have a heliport and dock?
+ * Does this industry have a heliport?
* @param industry_id The index of the industry.
* @pre IsValidIndustry(industry_id).
- * @return True when the industry has a heliport and dock.
+ * @return True when the industry has a heliport.
*/
- static bool HasHeliportAndDock(IndustryID industry_id);
+ static bool HasHeliport(IndustryID industry_id);
/**
- * Gets the location of the industry's heliport/dock.
+ * Gets the location of the industry's heliport.
* @param industry_id The index of the industry.
* @pre IsValidIndustry(industry_id).
- * @pre HasHeliportAndDock(industry_id).
- * @return The location of the industry's heliport/dock.
+ * @pre HasHeliport(industry_id).
+ * @return The location of the industry's heliport.
*/
- static TileIndex GetHeliportAndDockLocation(IndustryID industry_id);
+ static TileIndex GetHeliportLocation(IndustryID industry_id);
+
+ /**
+ * Does this industry have a dock?
+ * @param industry_id The index of the industry.
+ * @pre IsValidIndustry(industry_id).
+ * @return True when the industry has a dock.
+ */
+ static bool HasDock(IndustryID industry_id);
+
+ /**
+ * Gets the location of the industry's dock.
+ * @param industry_id The index of the industry.
+ * @pre IsValidIndustry(industry_id).
+ * @pre HasDock(industry_id).
+ * @return The location of the industry's dock.
+ */
+ static TileIndex GetDockLocation(IndustryID industry_id);
/**
* Get the IndustryType of the industry.