summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_industry.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-23 21:07:01 +0000
committeryexo <yexo@openttd.org>2009-02-23 21:07:01 +0000
commit11ce4538b4703a8e0e4273d76a58b24d300768ef (patch)
treefcdce95a56bedaf9b2fc0d5d699d52dcf13cfe13 /src/ai/api/ai_industry.hpp
parentc144d8fa90e1eb62f78242b1fb3dacfe0a53e4eb (diff)
downloadopenttd-11ce4538b4703a8e0e4273d76a58b24d300768ef.tar.xz
(svn r15563) -Change [API CHANGE]: Remove AIIndustry::GetMaxIndustryID().
Diffstat (limited to 'src/ai/api/ai_industry.hpp')
-rw-r--r--src/ai/api/ai_industry.hpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ai/api/ai_industry.hpp b/src/ai/api/ai_industry.hpp
index abaff2ea2..bf93cd466 100644
--- a/src/ai/api/ai_industry.hpp
+++ b/src/ai/api/ai_industry.hpp
@@ -15,18 +15,10 @@ public:
static const char *GetClassName() { return "AIIndustry"; }
/**
- * Gets the maximum industry index; there are no valid industries with a
- * higher index.
- * @return The maximum industry index.
- * @post Return value is always non-negative.
- */
- static IndustryID GetMaxIndustryID();
-
- /**
- * Gets the number of industries. This is different than GetMaxIndustryID()
- * because of the way OpenTTD works internally.
+ * Gets the number of industries.
* @return The number of industries.
* @post Return value is always non-negative.
+ * @note The maximum valid IndustryID can be higher then the value returned.
*/
static int32 GetIndustryCount();