summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_industrytype.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_industrytype.hpp')
-rw-r--r--src/ai/api/ai_industrytype.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ai/api/ai_industrytype.hpp b/src/ai/api/ai_industrytype.hpp
index f5d2ca827..836748374 100644
--- a/src/ai/api/ai_industrytype.hpp
+++ b/src/ai/api/ai_industrytype.hpp
@@ -24,6 +24,14 @@ public:
static const char *GetClassName() { return "AIIndustryType"; }
/**
+ * Special IndustryTypes.
+ */
+ enum SpecialIndustryType {
+ INDUSTRYTYPE_UNKNOWN = 0xFE, //!< Unknown/unspecific industrytype. (Usable for AIRail::BuildNewGRFRailStation())
+ INDUSTRYTYPE_TOWN = 0xFF, //!< No industry, but town. (Usable for AIRail::BuildNewGRFRailStation())
+ };
+
+ /**
* Checks whether the given industry-type is valid.
* @param industry_type The type check.
* @return True if and only if the industry-type is valid.