|
|
/* $Id$ */
|
|
|
|
|
|
/** @file train.h */
|
|
|
|
|
|
#ifndef TRAIN_H
|
|
|
#define TRAIN_H
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "vehicle.h"
|
|
|
|
|
@@ -11,18 +13,18 @@
|
|
|
* enum to handle train subtypes
|
|
|
* Do not access it directly unless you have to. Use the access functions below
|
|
|
* This is an enum to tell what bit to access as it is a bitmask
|
|
|
*/
|
|
|
|
|
|
enum TrainSubtype {
|
|
|
Train_Front = 0, // Leading engine of a train
|
|
|
Train_Articulated_Part = 1, // Articulated part of an engine
|
|
|
Train_Wagon = 2, // Wagon
|
|
|
Train_Engine = 3, // Engine, that can be front engines, but might be placed behind another engine
|
|
|
Train_Free_Wagon = 4, // First in a wagon chain (in depot)
|
|
|
Train_Multiheaded = 5, // Engine is a multiheaded
|
|
|
Train_Front = 0, ///< Leading engine of a train
|
|
|
Train_Articulated_Part = 1, ///< Articulated part of an engine
|
|
|
Train_Wagon = 2, ///< Wagon
|
|
|
Train_Engine = 3, ///< Engine, that can be front engines, but might be placed behind another engine
|
|
|
Train_Free_Wagon = 4, ///< First in a wagon chain (in depot)
|
|
|
Train_Multiheaded = 5, ///< Engine is a multiheaded
|
|
|
};
|
|
|
|
|
|
|
|
|
/** Check if a vehicle is front engine
|
|
|
* @param v vehicle to check
|
|
|
* @return Returns true if vehicle is a front engine
|