Changeset - r16777:c5ef53620bff
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-12-14 21:31:45
terkhen@openttd.org
(svn r21520) -Document: Complete the comments of GroundVehicleCache.
1 file changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/ground_vehicle.hpp
Show inline comments
 
@@ -19,26 +19,26 @@
 
enum AccelStatus {
 
	AS_ACCEL, ///< We want to go faster, if possible of course.
 
	AS_BRAKE  ///< We want to stop.
 
};
 

	
 
/**
 
 * Cached values.
 
 * Cached, frequently calculated values.
 
 * All of these values except cached_slope_resistance are set only for the first part of a vehicle.
 
 */
 
struct GroundVehicleCache {
 
	/* Cached acceleration values, recalculated when the cargo on a vehicle changes (in addition to the conditions below) */
 
	uint32 cached_weight;           ///< Total weight of the consist.
 
	uint32 cached_weight;           ///< Total weight of the consist (valid only for the first engine).
 
	uint32 cached_slope_resistance; ///< Resistance caused by weight when this vehicle part is at a slope.
 
	uint32 cached_max_te;           ///< Maximum tractive effort of consist.
 
	uint16 cached_axle_resistance;  ///< Resistance caused by the axles of the vehicle.
 
	uint32 cached_max_te;           ///< Maximum tractive effort of consist (valid only for the first engine).
 
	uint16 cached_axle_resistance;  ///< Resistance caused by the axles of the vehicle (valid only for the first engine).
 

	
 
	/* Cached acceleration values, recalculated on load and each time a vehicle is added to/removed from the consist. */
 
	uint16 cached_max_track_speed;  ///< Maximum consist speed limited by track type.
 
	uint32 cached_power;            ///< Total power of the consist.
 
	uint32 cached_air_drag;         ///< Air drag coefficient of the vehicle.
 
	uint16 cached_max_track_speed;  ///< Maximum consist speed limited by track type (valid only for the first engine).
 
	uint32 cached_power;            ///< Total power of the consist (valid only for the first engine).
 
	uint32 cached_air_drag;         ///< Air drag coefficient of the vehicle (valid only for the first engine).
 
};
 

	
 
/** Ground vehicle flags. */
 
enum GroundVehicleFlags {
 
	GVF_GOINGUP_BIT       = 0,
 
	GVF_GOINGDOWN_BIT     = 1,
0 comments (0 inline, 0 general)