12 * Do not access it directly unless you have to. Use the access functions below |
14 * Do not access it directly unless you have to. Use the access functions below |
13 * This is an enum to tell what bit to access as it is a bitmask |
15 * This is an enum to tell what bit to access as it is a bitmask |
14 */ |
16 */ |
15 |
17 |
16 enum TrainSubtype { |
18 enum TrainSubtype { |
17 Train_Front = 0, // Leading engine of a train |
19 Train_Front = 0, ///< Leading engine of a train |
18 Train_Articulated_Part = 1, // Articulated part of an engine |
20 Train_Articulated_Part = 1, ///< Articulated part of an engine |
19 Train_Wagon = 2, // Wagon |
21 Train_Wagon = 2, ///< Wagon |
20 Train_Engine = 3, // Engine, that can be front engines, but might be placed behind another engine |
22 Train_Engine = 3, ///< Engine, that can be front engines, but might be placed behind another engine |
21 Train_Free_Wagon = 4, // First in a wagon chain (in depot) |
23 Train_Free_Wagon = 4, ///< First in a wagon chain (in depot) |
22 Train_Multiheaded = 5, // Engine is a multiheaded |
24 Train_Multiheaded = 5, ///< Engine is a multiheaded |
23 }; |
25 }; |
24 |
26 |
25 |
27 |
26 /** Check if a vehicle is front engine |
28 /** Check if a vehicle is front engine |
27 * @param v vehicle to check |
29 * @param v vehicle to check |