(svn r21859) -Codechange: Move train subtype flags to GroundVehicle.

This commit is contained in:
terkhen
2011-01-19 18:42:54 +00:00
parent 44a10ac857
commit a89c92ef6e
2 changed files with 31 additions and 32 deletions

View File

@@ -149,6 +149,19 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
this->UpdateViewport(true, turned);
return old_z;
}
/**
* Enum to handle ground vehicle subtypes.
* Do not access it directly unless you have to. Use the subtype access functions.
*/
enum GroundVehicleSubtypeFlags {
GVSF_FRONT = 0, ///< Leading engine of a consist.
GVSF_ARTICULATED_PART = 1, ///< Articulated part of an engine.
GVSF_WAGON = 2, ///< Wagon (not used for road vehicles).
GVSF_ENGINE = 3, ///< Engine that can be front engine, but might be placed behind another engine (not used for road vehicles).
GVSF_FREE_WAGON = 4, ///< First in a wagon chain (in depot) (not used for road vehicles).
GVSF_MULTIHEADED = 5, ///< Engine is multiheaded (not used for road vehicles).
};
};
#endif /* GROUND_VEHICLE_HPP */