summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-02 09:29:41 +0000
committerrubidium <rubidium@openttd.org>2007-05-02 09:29:41 +0000
commitdce7dcb6649dca7a05f5abc5b006822a05e06056 (patch)
tree978891d08beaf2b636b81a38b9c296680f5fdec6 /src/vehicle.h
parent1bea3b55a672185f8e65430af8ec86ff5eef3704 (diff)
downloadopenttd-dce7dcb6649dca7a05f5abc5b006822a05e06056.tar.xz
(svn r9764) -Codechange: replace some lookup tables by functions.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index dd9ca71ba..1b2be2eb1 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -365,6 +365,17 @@ struct Vehicle {
* @param direction the direction the vehicle is facing
*/
virtual void UpdateDeltaXY(Direction direction) {}
+
+ /**
+ * Sets the expense type associated to this vehicle type
+ * @param income whether this is income or (running) expenses of the vehicle
+ */
+ virtual ExpensesType GetExpenseType(bool income) { return EXPENSES_OTHER; }
+
+ /**
+ * Invalidates the vehicle list window of this type of vehicle
+ */
+ virtual WindowClass GetVehicleListWindowClass() { return WC_NONE; }
};
/**