(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.

This commit is contained in:
rubidium
2008-04-11 08:14:43 +00:00
parent 23465fa7c4
commit aa8a5b2c39
9 changed files with 73 additions and 4 deletions

View File

@@ -512,6 +512,16 @@ public:
* @return the location (tile) to aim for.
*/
virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; }
/**
* Find the closest depot for this vehicle and tell us the location,
* DestinationID and whether we should reverse.
* @param location where do we go to?
* @param destination what hangar do we go to?
* @param reverse should the vehicle be reversed?
* @return true if a depot could be found.
*/
virtual bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse) { return false; }
};
/**