summaryrefslogtreecommitdiff
path: root/src/script/api/script_order.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-10-10 19:11:22 +0000
committerfrosch <frosch@openttd.org>2012-10-10 19:11:22 +0000
commitdee2f39f99c4bab5aedfbe5824722b57aa9da1d3 (patch)
tree188bfda3954ac4f1587ba3c87c03e326064b89db /src/script/api/script_order.hpp
parentdda3709c7ec8af0221bedafdbdde7a89097992ce (diff)
downloadopenttd-dee2f39f99c4bab5aedfbe5824722b57aa9da1d3.tar.xz
(svn r24584) -Doc: [Script] Improve API documentation.
Diffstat (limited to 'src/script/api/script_order.hpp')
-rw-r--r--src/script/api/script_order.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/script/api/script_order.hpp b/src/script/api/script_order.hpp
index da732490b..4df6f7ef4 100644
--- a/src/script/api/script_order.hpp
+++ b/src/script/api/script_order.hpp
@@ -34,7 +34,7 @@ public:
/** Destination of new order is to far away from the previous order */
ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION, // [STR_ERROR_TOO_FAR_FROM_PREVIOUS_DESTINATION]
- /* Aircraft has not enough range to copy/share orders. */
+ /** Aircraft has not enough range to copy/share orders. */
ERR_ORDER_AIRCRAFT_NOT_ENOUGH_RANGE, // [STR_ERROR_AIRCRAFT_NOT_ENOUGH_RANGE]
};
@@ -585,9 +585,13 @@ public:
/**
* Get the distance between two points for a vehicle type.
+ * Use this function to compute the distance between two tiles wrt. a vehicle type.
+ * These vehicle-type specific distances are indepenent from other map distances, you may
+ * use the result of this function to compare it with the result of
+ * ScriptEngine::GetMaximumOrderDistance or ScriptVehicle::GetMaximumOrderDistance.
* @param vehicle_type The vehicle type to get the distance for.
* @param origin_tile Origin, can be any tile or a tile of a specific station.
- * @param dest_tile Destination, ca be any tile or a tile of a specific station.
+ * @param dest_tile Destination, can be any tile or a tile of a specific station.
* @return The distance between the origin and the destination for a
* vehicle of the given vehicle type.
* @note The unit of the order distances is unspecified and should