From 62bdc381e7dffac0e4898ba733bbfc434fdd00b4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 11 Apr 2008 08:14:43 +0000 Subject: (svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class. --- src/roadveh.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/roadveh.h') 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 */ -- cgit v1.2.3-54-g00ecf