src/vehicle_base.h
changeset 10126 bed2d9d38577
parent 10098 00ebbccc6181
child 10127 ab5e35f77e87
equal deleted inserted replaced
10125:64de1e83efa8 10126:bed2d9d38577
   510 	 * location of the platform is determined for ships.
   510 	 * location of the platform is determined for ships.
   511 	 * @param station the station to make the next location of the vehicle.
   511 	 * @param station the station to make the next location of the vehicle.
   512 	 * @return the location (tile) to aim for.
   512 	 * @return the location (tile) to aim for.
   513 	 */
   513 	 */
   514 	virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; }
   514 	virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; }
       
   515 
       
   516 	/**
       
   517 	 * Find the closest depot for this vehicle and tell us the location,
       
   518 	 * DestinationID and whether we should reverse.
       
   519 	 * @param location    where do we go to?
       
   520 	 * @param destination what hangar do we go to?
       
   521 	 * @param reverse     should the vehicle be reversed?
       
   522 	 * @return true if a depot could be found.
       
   523 	 */
       
   524 	virtual bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse) { return false; }
   515 };
   525 };
   516 
   526 
   517 /**
   527 /**
   518  * This class 'wraps' Vehicle; you do not actually instantiate this class.
   528  * This class 'wraps' Vehicle; you do not actually instantiate this class.
   519  * You create a Vehicle using AllocateVehicle, so it is added to the pool
   529  * You create a Vehicle using AllocateVehicle, so it is added to the pool