src/vehicle_base.h
changeset 9110 55864e1fc263
parent 9052 392f5995d323
child 9124 eea8af2b73a8
--- a/src/vehicle_base.h	Wed Feb 20 16:24:56 2008 +0000
+++ b/src/vehicle_base.h	Wed Feb 20 17:06:58 2008 +0000
@@ -438,6 +438,18 @@
 	Money GetDisplayRunningCost() const { return (this->GetRunningCost() >> 8); }
 
 	/**
+	 * Gets the profit vehicle had this year. It can be sent into SetDParam for string processing.
+	 * @return the vehicle's profit this year
+	 */
+	Money GetDisplayProfitThisYear() const { return (this->profit_this_year >> 8); }
+
+	/**
+	 * Gets the profit vehicle had last year. It can be sent into SetDParam for string processing.
+	 * @return the vehicle's profit last year
+	 */
+	Money GetDisplayProfitLastYear() const { return (this->profit_last_year >> 8); }
+
+	/**
 	 * Set the next vehicle of this vehicle.
 	 * @param next the next vehicle. NULL removes the next vehicle.
 	 */