src/vehicle.h
changeset 7973 ce69b7781d4a
parent 7909 8df54a2839a1
child 7974 6fcdebd75c19
equal deleted inserted replaced
7972:dff055fff851 7973:ce69b7781d4a
   411 	 * Gets the sprite to show for the given direction
   411 	 * Gets the sprite to show for the given direction
   412 	 * @param direction the direction the vehicle is facing
   412 	 * @param direction the direction the vehicle is facing
   413 	 * @return the sprite for the given vehicle in the given direction
   413 	 * @return the sprite for the given vehicle in the given direction
   414 	 */
   414 	 */
   415 	virtual int GetImage(Direction direction) const { return 0; }
   415 	virtual int GetImage(Direction direction) const { return 0; }
       
   416 
       
   417 	/**
       
   418 	 * Gets the speed in mph that can be sent into SetDParam for string processing.
       
   419 	 * @return the vehicle's speed
       
   420 	 */
       
   421 	virtual int GetDisplaySpeed() const { return 0; }
   416 
   422 
   417 	/**
   423 	/**
   418 	 * Calls the tick handler of the vehicle
   424 	 * Calls the tick handler of the vehicle
   419 	 */
   425 	 */
   420 	virtual void Tick() {};
   426 	virtual void Tick() {};