(svn r9764) -Codechange: replace some lookup tables by functions.

This commit is contained in:
rubidium
2007-05-02 09:29:41 +00:00
parent 1bea3b55a6
commit dce7dcb664
7 changed files with 22 additions and 7 deletions

View File

@@ -246,6 +246,8 @@ struct Train : public Vehicle {
const char *GetTypeString() { return "train"; }
void MarkDirty();
void UpdateDeltaXY(Direction direction);
ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
WindowClass GetVehicleListWindowClass() { return WC_TRAINS_LIST; }
};
#endif /* TRAIN_H */