summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_industrytype.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-03-30 20:48:10 +0000
committerfrosch <frosch@openttd.org>2009-03-30 20:48:10 +0000
commitf55be81e3c8031cffd229b0347f2268fe0a1eafd (patch)
treef0de1a132f0bdff1175626a0d737372ae7590d8e /src/ai/api/ai_industrytype.hpp
parent3bbf0fc87b34ccab4f3bb91e1690981aecd80c7d (diff)
downloadopenttd-f55be81e3c8031cffd229b0347f2268fe0a1eafd.tar.xz
(svn r15901) -Add: AIIndustryType::IsBuiltOnWater(), HasHeliport() and HasDock(). Just like AIIndustry.
Diffstat (limited to 'src/ai/api/ai_industrytype.hpp')
-rw-r--r--src/ai/api/ai_industrytype.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ai/api/ai_industrytype.hpp b/src/ai/api/ai_industrytype.hpp
index 2b9241745..2d1063b6c 100644
--- a/src/ai/api/ai_industrytype.hpp
+++ b/src/ai/api/ai_industrytype.hpp
@@ -113,6 +113,30 @@ public:
* @note If true is returned the money is paid, whether a new industry was build or not.
*/
static bool ProspectIndustry(IndustryType industry_type);
+
+ /**
+ * Is this type of industry built on water.
+ * @param industry_type The type of the industry.
+ * @pre IsValidIndustryType(industry_type).
+ * @return True when this type is built on water.
+ */
+ static bool IsBuiltOnWater(IndustryType industry_type);
+
+ /**
+ * Does this type of industry have a heliport?
+ * @param industry_type The type of the industry.
+ * @pre IsValidIndustryType(industry_type).
+ * @return True when this type has a heliport.
+ */
+ static bool HasHeliport(IndustryType industry_type);
+
+ /**
+ * Does this type of industry have a dock?
+ * @param industry_type The type of the industry.
+ * @pre IsValidIndustryType(industry_type).
+ * @return True when this type has a dock.
+ */
+ static bool HasDock(IndustryType industry_type);
};
#endif /* AI_INDUSTRYTYPE_HPP */