summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-01 19:36:36 +0000
committeryexo <yexo@openttd.org>2010-08-01 19:36:36 +0000
commit99cb47a3825f370e19adacd1ad1e6241eccb99f9 (patch)
tree395d0bce297155d8071e5a761e9290f107ed248b /src/ai/api/ai_order.hpp
parented4f806f1dcff2e10d2fdfb687e6bcebe9a81af3 (diff)
downloadopenttd-99cb47a3825f370e19adacd1ad1e6241eccb99f9.tar.xz
(svn r20284) -Codechange: use ///< for single-line doxygen comments in the AI code
Diffstat (limited to 'src/ai/api/ai_order.hpp')
-rw-r--r--src/ai/api/ai_order.hpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/ai/api/ai_order.hpp b/src/ai/api/ai_order.hpp
index 36e536f59..2c80f31ab 100644
--- a/src/ai/api/ai_order.hpp
+++ b/src/ai/api/ai_order.hpp
@@ -87,13 +87,13 @@ public:
*/
enum OrderCondition {
/* Order _is_ important, as it's based on OrderConditionVariable in order_type.h. */
- OC_LOAD_PERCENTAGE, //!< Skip based on the amount of load, value is in tons.
- OC_RELIABILITY, //!< Skip based on the reliability, value is percent (0..100).
- OC_MAX_SPEED, //!< Skip based on the maximum speed, value is in OpenTTD's internal speed unit, see AIEngine::GetMaxSpeed.
- OC_AGE, //!< Skip based on the age, value is in years.
- OC_REQUIRES_SERVICE, //!< Skip when the vehicle requires service, no value.
- OC_UNCONDITIONALLY, //!< Always skip, no compare function, no value.
- OC_INVALID = -1, //!< An invalid condition, do not use.
+ OC_LOAD_PERCENTAGE, ///< Skip based on the amount of load, value is in tons.
+ OC_RELIABILITY, ///< Skip based on the reliability, value is percent (0..100).
+ OC_MAX_SPEED, ///< Skip based on the maximum speed, value is in OpenTTD's internal speed unit, see AIEngine::GetMaxSpeed.
+ OC_AGE, ///< Skip based on the age, value is in years.
+ OC_REQUIRES_SERVICE, ///< Skip when the vehicle requires service, no value.
+ OC_UNCONDITIONALLY, ///< Always skip, no compare function, no value.
+ OC_INVALID = -1, ///< An invalid condition, do not use.
};
/**
@@ -101,29 +101,29 @@ public:
*/
enum CompareFunction {
/* Order _is_ important, as it's based on OrderConditionComparator in order_type.h. */
- CF_EQUALS, //!< Skip if both values are equal
- CF_NOT_EQUALS, //!< Skip if both values are not equal
- CF_LESS_THAN, //!< Skip if the value is less than the limit
- CF_LESS_EQUALS, //!< Skip if the value is less or equal to the limit
- CF_MORE_THAN, //!< Skip if the value is more than the limit
- CF_MORE_EQUALS, //!< Skip if the value is more or equal to the limit
- CF_IS_TRUE, //!< Skip if the variable is true
- CF_IS_FALSE, //!< Skip if the variable is false
- CF_INVALID = -1, //!< Invalid compare function, do not use.
+ CF_EQUALS, ///< Skip if both values are equal
+ CF_NOT_EQUALS, ///< Skip if both values are not equal
+ CF_LESS_THAN, ///< Skip if the value is less than the limit
+ CF_LESS_EQUALS, ///< Skip if the value is less or equal to the limit
+ CF_MORE_THAN, ///< Skip if the value is more than the limit
+ CF_MORE_EQUALS, ///< Skip if the value is more or equal to the limit
+ CF_IS_TRUE, ///< Skip if the variable is true
+ CF_IS_FALSE, ///< Skip if the variable is false
+ CF_INVALID = -1, ///< Invalid compare function, do not use.
};
/** Different constants related to the OrderPosition */
enum OrderPosition {
- ORDER_CURRENT = 0xFF, //!< Constant that gets resolved to the current order.
- ORDER_INVALID = -1, //!< An invalid order.
+ ORDER_CURRENT = 0xFF, ///< Constant that gets resolved to the current order.
+ ORDER_INVALID = -1, ///< An invalid order.
};
/** Where to stop trains in a station that's longer than the train */
enum StopLocation {
- STOPLOCATION_NEAR, //!< Stop the train as soon as it's completely in the station
- STOPLOCATION_MIDDLE, //!< Stop the train in the middle of the station
- STOPLOCATION_FAR, //!< Stop the train at the far end of the station
- STOPLOCATION_INVALID = -1, //!< An invalid stop location
+ STOPLOCATION_NEAR, ///< Stop the train as soon as it's completely in the station
+ STOPLOCATION_MIDDLE, ///< Stop the train in the middle of the station
+ STOPLOCATION_FAR, ///< Stop the train at the far end of the station
+ STOPLOCATION_INVALID = -1, ///< An invalid stop location
};
/**