summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
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. */