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
commit5e4c9ad875bd3181139b214ddc214a0578998da6 (patch)
tree978891d08beaf2b636b81a38b9c296680f5fdec6 /src/vehicle.h
parentdfe7c5cd667ce406866c84f46fa841c15d1d83ec (diff)
downloadopenttd-5e4c9ad875bd3181139b214ddc214a0578998da6.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; }
};
/**