diff options
author | rubidium <rubidium@openttd.org> | 2007-05-02 09:29:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-02 09:29:41 +0000 |
commit | 5e4c9ad875bd3181139b214ddc214a0578998da6 (patch) | |
tree | 978891d08beaf2b636b81a38b9c296680f5fdec6 /src/ship.h | |
parent | dfe7c5cd667ce406866c84f46fa841c15d1d83ec (diff) | |
download | openttd-5e4c9ad875bd3181139b214ddc214a0578998da6.tar.xz |
(svn r9764) -Codechange: replace some lookup tables by functions.
Diffstat (limited to 'src/ship.h')
-rw-r--r-- | src/ship.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship.h b/src/ship.h index e277f91c4..0d4e324ae 100644 --- a/src/ship.h +++ b/src/ship.h @@ -42,6 +42,8 @@ struct Ship: public Vehicle { const char *GetTypeString() { return "ship"; } void MarkDirty(); void UpdateDeltaXY(Direction direction); + ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; } + WindowClass GetVehicleListWindowClass() { return WC_SHIPS_LIST; } }; #endif /* SHIP_H */ |