src/vehicle.h
changeset 7548 3a679b6e8b30
parent 7545 d44e19c5671e
child 7802 246a94599679
equal deleted inserted replaced
7547:93b6e6de2898 7548:3a679b6e8b30
   417 
   417 
   418 	/**
   418 	/**
   419 	 * Whether this is the primary vehicle in the chain.
   419 	 * Whether this is the primary vehicle in the chain.
   420 	 */
   420 	 */
   421 	virtual bool IsPrimaryVehicle() const { return false; }
   421 	virtual bool IsPrimaryVehicle() const { return false; }
   422 
       
   423 	/**
       
   424 	 * Whether this vehicle understands the concept of a front engine, so
       
   425 	 * basically, if GetFirstVehicleInChain() can be called for it.
       
   426 	 */
       
   427 	virtual bool HasFront() const { return false; }
       
   428 
   422 
   429 	/**
   423 	/**
   430 	 * Gets the sprite to show for the given direction
   424 	 * Gets the sprite to show for the given direction
   431 	 * @param direction the direction the vehicle is facing
   425 	 * @param direction the direction the vehicle is facing
   432 	 * @return the sprite for the given vehicle in the given direction
   426 	 * @return the sprite for the given vehicle in the given direction