summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-01-29 21:37:11 +0000
committeralberth <alberth@openttd.org>2011-01-29 21:37:11 +0000
commiteea2f90da74546d7587f51c4080e6380aecbaa98 (patch)
tree5cb48034bffae274d8bbca47e8149818f185686e /src/train.h
parent734994c9ba642f5c75b709d4b44e0c4b993a949a (diff)
downloadopenttd-eea2f90da74546d7587f51c4080e6380aecbaa98.tar.xz
(svn r21925) -Doc: Doxygen additions and markup corrections to vehicle-related functions.
Diffstat (limited to 'src/train.h')
-rw-r--r--src/train.h28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/train.h b/src/train.h
index e416dd3d9..94848bf52 100644
--- a/src/train.h
+++ b/src/train.h
@@ -21,26 +21,16 @@
struct Train;
+/** Rail vehicle flags. */
enum VehicleRailFlags {
- VRF_REVERSING = 0,
-
- /* used to store if a wagon is powered or not */
- VRF_POWEREDWAGON = 3,
-
- /* used to reverse the visible direction of the vehicle */
- VRF_REVERSE_DIRECTION = 4,
-
- /* used to mark that electric train engine is allowed to run on normal rail */
- VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL = 6,
-
- /* used for vehicle var 0xFE bit 8 (toggled each time the train is reversed, accurate for first vehicle only) */
- VRF_TOGGLE_REVERSE = 7,
-
- /* used to mark a train that can't get a path reservation */
- VRF_TRAIN_STUCK = 8,
-
- /* used to mark a train that is just leaving a station */
- VRF_LEAVING_STATION = 9,
+ VRF_REVERSING = 0,
+ VRF_POWEREDWAGON = 3, ///< Wagon is powered.
+ VRF_REVERSE_DIRECTION = 4, ///< Reverse the visible direction of the vehicle.
+
+ VRF_EL_ENGINE_ALLOWED_NORMAL_RAIL = 6, ///< Electric train engine is allowed to run on normal rail. */
+ VRF_TOGGLE_REVERSE = 7, ///< Used for vehicle var 0xFE bit 8 (toggled each time the train is reversed, accurate for first vehicle only).
+ VRF_TRAIN_STUCK = 8, ///< Train can't get a path reservation.
+ VRF_LEAVING_STATION = 9, ///< Train is just leaving a station.
};
/** Modes for ignoring signals. */