summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-01-23 13:08:50 +0000
committeryexo <yexo@openttd.org>2011-01-23 13:08:50 +0000
commit967bb84af34c317b8170867eceae5ea05c60fd6e (patch)
tree020e0079633f2778050ed15bde3536e1c78af284 /src/ai/api/ai_order.hpp
parent890a18c738269aaf6de1b7d21d1ed9372230259c (diff)
downloadopenttd-967bb84af34c317b8170867eceae5ea05c60fd6e.tar.xz
(svn r21900) -Fix: [NoAI] hide automatic orders from AIs as they have no way of dealing with them
Diffstat (limited to 'src/ai/api/ai_order.hpp')
-rw-r--r--src/ai/api/ai_order.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ai/api/ai_order.hpp b/src/ai/api/ai_order.hpp
index fbf9fed76..bfd10a0a9 100644
--- a/src/ai/api/ai_order.hpp
+++ b/src/ai/api/ai_order.hpp
@@ -112,7 +112,13 @@ public:
CF_INVALID = -1, ///< Invalid compare function, do not use.
};
- /** Different constants related to the OrderPosition */
+ /**
+ * Index in the list of orders for a vehicle. The first order has index 0, the second
+ * order index 1, etc. The current order can be queried by using ORDER_CURRENT. Do not
+ * use ORDER_INVALID yourself, it's used as return value by for example ResolveOrderPosition.
+ * @note Automatic orders are hidden from AIs, so OrderPosition 0 will always be the first
+ * manual order.
+ */
enum OrderPosition {
ORDER_CURRENT = 0xFF, ///< Constant that gets resolved to the current order.
ORDER_INVALID = -1, ///< An invalid order.