src/vehicle.h
changeset 7488 6f51ddf4c225
parent 7486 bf6a94009823
child 7490 bb27d92565d3
--- a/src/vehicle.h	Wed Aug 29 21:08:35 2007 +0000
+++ b/src/vehicle.h	Wed Aug 29 21:27:16 2007 +0000
@@ -427,10 +427,22 @@
 	virtual int GetDisplayMaxSpeed() const { return 0; }
 
 	/**
+	 * Gets the running cost of a vehicle
+	 * @return the vehicle's running cost
+	 */
+	virtual Money GetRunningCost() const { return 0; }
+
+	/**
 	 * Calls the tick handler of the vehicle
 	 */
 	virtual void Tick() {};
 
+	/**
+	 * Gets the running cost of a vehicle  that can be sent into SetDParam for string processing.
+	 * @return the vehicle's running cost
+	 */
+	Money GetDisplayRunningCost() const { return (this->GetRunningCost() >> 8); }
+
 	bool IsValid() const { return this->type != VEH_INVALID; }
 };