summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.hpp
diff options
context:
space:
mode:
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.