(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.

This commit is contained in:
rubidium
2008-04-05 10:55:50 +00:00
parent fcf888799f
commit 3fdddeac40
9 changed files with 157 additions and 226 deletions

View File

@@ -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; }
};
/**