diff options
author | frosch <frosch@openttd.org> | 2010-07-10 10:54:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-07-10 10:54:30 +0000 |
commit | 969c059feae435ff5cabb2f33d10d939b318ec02 (patch) | |
tree | d5daa0d05cd4f59342be87002abe60b1bd2826d0 /src/ai/api/ai_industrytype.hpp | |
parent | 1055c2b0fd8feb8a4a3eb039c3170d7ee8160b46 (diff) | |
download | openttd-969c059feae435ff5cabb2f33d10d939b318ec02.tar.xz |
(svn r20107) -Add: [NoAI] AIIndustryType::INDUSTRYTYPE_TOWN and AIIndustryType::INDUSTRYTYPE_UNKNOWN for AIRail::BuildNewGRFRailStation(). Note that BuildNewGRFRailStation() now checks the passed industry type for validity.
Diffstat (limited to 'src/ai/api/ai_industrytype.hpp')
-rw-r--r-- | src/ai/api/ai_industrytype.hpp | 8 |
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. |