diff options
author | rubidium <rubidium@openttd.org> | 2008-04-05 10:55:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-05 10:55:50 +0000 |
commit | 3fdddeac40f1353858bc658b150b83b532652d5d (patch) | |
tree | b4b03c4e03ba0d09492cdcef08e4dd07ceb77dc8 /src/vehicle_base.h | |
parent | fcf888799f2e45ea6e4f5e6a33960deaab42288a (diff) | |
download | openttd-3fdddeac40f1353858bc658b150b83b532652d5d.tar.xz |
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index c2eb7f9e9..2aaba064a 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -488,6 +488,15 @@ public: inline bool IsOrderListShared() const { return this->next_shared != NULL || this->prev_shared != NULL; }; bool NeedsAutorenewing(const Player *p) const; + + /** + * Determine the location for the station where the vehicle goes to next. + * Things done for example are allocating slots in a road stop or exact + * location of the platform is determined for ships. + * @param station the station to make the next location of the vehicle. + * @return the location (tile) to aim for. + */ + virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; } }; /** |