(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.

This commit is contained in:
rubidium
2008-04-11 08:40:10 +00:00
parent aa8a5b2c39
commit daf5a2f1bc
8 changed files with 95 additions and 209 deletions

View File

@@ -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);
};
/**