diff options
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index ac415fa64..55966821f 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -522,6 +522,14 @@ public: * @return true if a depot could be found. */ virtual bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse) { return false; } + + /** + * Send this vehicle to the depot using the given command(s). + * @param flags the command flags (like execute and such). + * @param command the command to execute. + * @return the cost of the depot action. + */ + CommandCost SendToDepot(uint32 flags, DepotCommand command); }; /** |