diff options
author | rubidium <rubidium@openttd.org> | 2008-04-11 08:14:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-11 08:14:43 +0000 |
commit | aa8a5b2c39331fbcbcd6ef2291de8466ac9cdedd (patch) | |
tree | 7362e29c0c5e19a26316e830647db11101489af2 /src/roadveh.h | |
parent | 23465fa7c49e273352f1e283294a25466585ac4f (diff) | |
download | openttd-aa8a5b2c39331fbcbcd6ef2291de8466ac9cdedd.tar.xz |
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index ac121d042..9159a8784 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -47,6 +47,10 @@ static inline bool RoadVehHasArticPart(const Vehicle *v) void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); +byte GetRoadVehLength(const Vehicle *v); + +void RoadVehUpdateCache(Vehicle *v); + /** * This class 'wraps' Vehicle; you do not actually instantiate this class. @@ -77,10 +81,7 @@ struct RoadVehicle : public Vehicle { void Tick(); void OnNewDay(); TileIndex GetOrderStationLocation(StationID station); + bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse); }; -byte GetRoadVehLength(const Vehicle *v); - -void RoadVehUpdateCache(Vehicle *v); - #endif /* ROADVEH_H */ |