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 | dce7dcb6649dca7a05f5abc5b006822a05e06056 (patch) | |
tree | 978891d08beaf2b636b81a38b9c296680f5fdec6 /src/ship.h | |
parent | 1bea3b55a672185f8e65430af8ec86ff5eef3704 (diff) | |
download | openttd-dce7dcb6649dca7a05f5abc5b006822a05e06056.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 */ |