summaryrefslogtreecommitdiff
path: root/src/ground_vehicle.hpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-01-29 17:26:23 +0000
committerterkhen <terkhen@openttd.org>2011-01-29 17:26:23 +0000
commit9626e0bf2bb87c7e0957b65069527c26b0da4a34 (patch)
tree262318a1cc7e19176640a0a9533cece310fb66f5 /src/ground_vehicle.hpp
parent23ffef05cec14ae23b6f778f1df4efa85410b3fb (diff)
downloadopenttd-9626e0bf2bb87c7e0957b65069527c26b0da4a34.tar.xz
(svn r21922) -Codechange: Unify articulated vehicle checking functions.
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r--src/ground_vehicle.hpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp
index e3fdb918b..c2bd97151 100644
--- a/src/ground_vehicle.hpp
+++ b/src/ground_vehicle.hpp
@@ -303,12 +303,6 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
FORCEINLINE void ClearMultiheaded() { ClrBit(this->subtype, GVSF_MULTIHEADED); }
/**
- * Check if the vehicle is a front engine.
- * @return Returns true if the vehicle is a front engine.
- */
- FORCEINLINE bool IsFrontEngine() const { return HasBit(this->subtype, GVSF_FRONT); }
-
- /**
* Check if the vehicle is a free wagon (got no engine in front of it).
* @return Returns true if the vehicle is a free wagon.
*/
@@ -339,18 +333,6 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
FORCEINLINE bool IsRearDualheaded() const { return this->IsMultiheaded() && !this->IsEngine(); }
/**
- * Check if the vehicle is an articulated part of an engine.
- * @return Returns true if the vehicle is an articulated part.
- */
- FORCEINLINE bool IsArticulatedPart() const { return HasBit(this->subtype, GVSF_ARTICULATED_PART); }
-
- /**
- * Check if an engine has an articulated part.
- * @return True if the engine has an articulated part.
- */
- FORCEINLINE bool HasArticulatedPart() const { return this->Next() != NULL && this->Next()->IsArticulatedPart(); }
-
- /**
* Update the GUI variant of the current speed of the vehicle.
* Also mark the widget dirty when that is needed, i.e. when
* the speed of this vehicle has changed.