src/train.h
changeset 6918 5589c415e28f
parent 6574 e1d1a12faaf7
child 7048 06b931095b26
child 9620 31e38d28a0af
equal deleted inserted replaced
6917:e3759a68a280 6918:5589c415e28f
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file train.h */
     2 
     4 
     3 #ifndef TRAIN_H
     5 #ifndef TRAIN_H
     4 #define TRAIN_H
     6 #define TRAIN_H
     5 
     7 
     6 #include "stdafx.h"
     8 #include "stdafx.h"
    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