src/vehicle.h
changeset 6773 bc98b0b16ec4
parent 6683 b88ae30866ce
child 6857 60130753e595
--- a/src/vehicle.h	Fri Jun 01 11:41:02 2007 +0000
+++ b/src/vehicle.h	Fri Jun 01 12:03:10 2007 +0000
@@ -399,6 +399,17 @@
 	 * Play the sound associated with leaving the station
 	 */
 	virtual void PlayLeaveStationSound() const {}
+
+	/**
+	 * Whether this is the primary vehicle in the chain.
+	 */
+	virtual bool IsPrimaryVehicle() const { return false; }
+
+	/**
+	 * Whether this vehicle understands the concept of a front engine, so
+	 * basically, if GetFirstVehicleInChain() can be called for it.
+	 */
+	virtual bool HasFront() const { return false; }
 };
 
 /**