diff options
author | terkhen <terkhen@openttd.org> | 2011-01-19 18:42:54 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-01-19 18:42:54 +0000 |
commit | 613743538d3946888660a5dd413e463f2052d6a9 (patch) | |
tree | 6b3416a1034bc952be65681f7aad84a2390ccd92 /src/ground_vehicle.hpp | |
parent | cfbbcf159736e18965ac7b187ca9a11b712edc65 (diff) | |
download | openttd-613743538d3946888660a5dd413e463f2052d6a9.tar.xz |
(svn r21859) -Codechange: Move train subtype flags to GroundVehicle.
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index ccb3ae81e..57984a030 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -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 */ |