diff options
author | rubidium <rubidium@openttd.org> | 2008-04-11 08:40:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-11 08:40:10 +0000 |
commit | 570519d79b77fe6abc376d498b1077214bbe28e4 (patch) | |
tree | 796de051cb4c952b1c1b0b10a84a34081dfbf2bb /src/vehicle_base.h | |
parent | 62bdc381e7dffac0e4898ba733bbfc434fdd00b4 (diff) | |
download | openttd-570519d79b77fe6abc376d498b1077214bbe28e4.tar.xz |
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
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); }; /** |