File diff r26193:4bc7915a2156 → r26194:f7347205838e
src/vehicle_type.h
Show inline comments
 
@@ -71,11 +71,23 @@ enum class DepotCommand : byte {
 
};
 
DECLARE_ENUM_AS_BIT_SET(DepotCommand)
 

	
 
static const uint MAX_LENGTH_VEHICLE_NAME_CHARS = 32; ///< The maximum length of a vehicle name in characters including '\0'
 
static const uint MAX_LENGTH_VEHICLE_NAME_CHARS = 128; ///< The maximum length of a vehicle name in characters including '\0'
 

	
 
/** The length of a vehicle in tile units. */
 
static const uint VEHICLE_LENGTH = 8;
 

	
 
/* The different types of breakdowns */
 
enum BreakdownType {
 
	BREAKDOWN_CRITICAL  = 0, ///< Old style breakdown (black smoke)
 
	BREAKDOWN_EM_STOP   = 1, ///< Emergency stop
 
	BREAKDOWN_LOW_SPEED = 2, ///< Lower max speed
 
	BREAKDOWN_LOW_POWER = 3, ///< Power reduction
 
	/* Aircraft have totally different breakdowns, so we use aliases to make things clearer */
 
	BREAKDOWN_AIRCRAFT_SPEED      = BREAKDOWN_CRITICAL,  ///< Lower speed until the next airport
 
	BREAKDOWN_AIRCRAFT_DEPOT      = BREAKDOWN_EM_STOP,   ///< We have to visit a depot at the next airport
 
	BREAKDOWN_AIRCRAFT_EM_LANDING = BREAKDOWN_LOW_SPEED, ///< Emergency landing at the closest airport (with hangar!) we can find
 
};
 

	
 
/** Vehicle acceleration models. */
 
enum AccelerationModel {
 
	AM_ORIGINAL,