diff options
author | frosch <frosch@openttd.org> | 2010-06-08 20:16:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-08 20:16:51 +0000 |
commit | e597ec6bf95ba93e8fb3177f408dadec43e20e95 (patch) | |
tree | 34aa1f3cfa7ecc9291eb1fe52d9ceac0efde3745 /src | |
parent | 06ba1c5f5e51932652c2f48c57e6b120c5bfd255 (diff) | |
download | openttd-e597ec6bf95ba93e8fb3177f408dadec43e20e95.tar.xz |
(svn r19949) -Doc: Mention tricky units (like speed) more often and more consistently.
Diffstat (limited to 'src')
-rw-r--r-- | src/bridge.h | 2 | ||||
-rw-r--r-- | src/engine_type.h | 16 | ||||
-rw-r--r-- | src/table/bridge_land.h | 14 | ||||
-rw-r--r-- | src/table/engines.h | 16 |
4 files changed, 24 insertions, 24 deletions
diff --git a/src/bridge.h b/src/bridge.h index 771833347..d7d34ae9b 100644 --- a/src/bridge.h +++ b/src/bridge.h @@ -43,7 +43,7 @@ struct BridgeSpec { byte min_length; ///< the minimum length (not counting start and end tile) byte max_length; ///< the maximum length (not counting start and end tile) uint16 price; ///< the price multiplier - uint16 speed; ///< maximum travel speed + uint16 speed; ///< maximum travel speed (1 unit = 1/1.6 mph = 1 km-ish/h) SpriteID sprite; ///< the sprite which is used in the GUI PaletteID pal; ///< the palette which is used in the GUI StringID material; ///< the string that contains the bridge description diff --git a/src/engine_type.h b/src/engine_type.h index 6f9db7964..70318be30 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -42,9 +42,9 @@ struct RailVehicleInfo { RailVehicleTypes railveh_type; byte cost_factor; ///< Purchase cost factor; For multiheaded engines the sum of both engine prices. RailTypeByte railtype; - uint16 max_speed; - uint16 power; ///< Power of engine; For multiheaded engines the sum of both engine powers. - uint16 weight; ///< Weight of vehicle; For multiheaded engines the weight of each single engine. + uint16 max_speed; ///< Maximum speed (1 unit = 1/1.6 mph = 1 km-ish/h) + uint16 power; ///< Power of engine (hp); For multiheaded engines the sum of both engine powers. + uint16 weight; ///< Weight of vehicle (tons); For multiheaded engines the weight of each single engine. byte running_cost; ///< Running cost of engine; For multiheaded engines the sum of both running costs. Price running_cost_class; EngineClass engclass; ///< Class of engine for this vehicle @@ -61,7 +61,7 @@ struct RailVehicleInfo { struct ShipVehicleInfo { byte image_index; byte cost_factor; - uint16 max_speed; + uint16 max_speed; ///< Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) uint16 capacity; byte running_cost; SoundID sfx; @@ -84,7 +84,7 @@ struct AircraftVehicleInfo { byte subtype; SoundID sfx; byte acceleration; - uint16 max_speed; + uint16 max_speed; ///< Maximum speed (1 unit = 8 mph = 12.8 km-ish/h) byte mail_capacity; uint16 passenger_capacity; }; @@ -95,7 +95,7 @@ struct RoadVehicleInfo { byte running_cost; Price running_cost_class; SoundID sfx; - uint16 max_speed; ///< Maximum speed in mph/3.2 units + uint16 max_speed; ///< Maximum speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) byte capacity; uint8 weight; ///< Weight in 1/4t units uint8 power; ///< Power in 10hp units @@ -108,8 +108,8 @@ struct RoadVehicleInfo { */ struct EngineInfo { Date base_intro; - Year lifelength; - Year base_life; + Year lifelength; ///< Lifetime of a single vehicle + Year base_life; ///< Basic duration of engine availability (without random parts) byte decay_speed; byte load_amount; byte climates; diff --git a/src/table/bridge_land.h b/src/table/bridge_land.h index 6fafe71a8..f5a2b7638 100644 --- a/src/table/bridge_land.h +++ b/src/table/bridge_land.h @@ -728,10 +728,10 @@ static const PalSpriteID * const * const _bridge_sprite_table[MAX_BRIDGES] = { /** Describes the data that defines each bridge in the game * @param y year of availablity - * @param mnl minimum length - * @param mxl maximum length - * @param p price - * @param mxs maximum speed allowed + * @param mnl minimum length (not counting bridge heads) + * @param mxl maximum length (not counting bridge heads) + * @param p price multiplier + * @param mxs maximum speed allowed (1 unit = 1/1.6 mph = 1 km-ish/h) * @param spr sprite to use in purchase GUI * @param plt palette for the sprite in purchase GUI * @param dsc description of the bridge in purchase GUI @@ -746,12 +746,12 @@ const BridgeSpec _orig_bridge[] = { year of availablity | minimum length | | maximum length - | | | price + | | | price multiplier | | | | maximum speed | | | | | sprite to use in GUI | | | | | | palette in GUI - string with description name on rail name on road - | | | | */ + string with description name on rail name on road + | | | | */ MBR( 0, 0, 16, 80, 32, 0xA24, PAL_NONE, STR_BRIDGE_NAME_WOODEN, STR_LAI_BRIDGE_DESCRIPTION_RAIL_WOODEN, STR_LAI_BRIDGE_DESCRIPTION_ROAD_WOODEN), diff --git a/src/table/engines.h b/src/table/engines.h index 4131fd880..f92e3e04b 100644 --- a/src/table/engines.h +++ b/src/table/engines.h @@ -19,7 +19,7 @@ * @param a base introduction date (days since 1920-01-01) * @param b decay speed * @param c life length (years) - * @param d base life + * @param d base life (years) * @param e cargo type * @param f Bitmask of the climates * @note the 0x80 in parameter b sets the "is carriage bit" @@ -31,7 +31,7 @@ * @param a base introduction date (days since 1920-01-01) * @param b decay speed * @param c life length (years) - * @param d base life + * @param d base life (years) * @param e cargo type * @param f Bitmask of the climates * @see MK @@ -43,7 +43,7 @@ * @param a base introduction date (days since 1920-01-01) * @param b decay speed * @param c life length (years) - * @param d base life + * @param d base life (years) * @param e cargo type * @param f Bitmask of the climates * @see MK @@ -55,7 +55,7 @@ * @param a base introduction date (days since 1920-01-01) * @param b decay speed * @param c life length (years) - * @param d base life + * @param d base life (years) * @param e Bitmask of the climates * @see MK * @note the 20 between b and e is the load amount @@ -347,7 +347,7 @@ static const EngineInfo _orig_engine_info[] = { * @param a image_index * @param b type * @param c cost_factor - * @param d max_speed + * @param d max_speed (1 unit = 1/1.6 mph = 1 km-ish/h) * @param e power (hp) * @param f weight (tons) * @param g running_cost @@ -527,7 +527,7 @@ static const RailVehicleInfo _orig_rail_vehicle_info[] = { * @see ShipVehicleInfo * @param a image_index * @param b cost_factor - * @param c max_speed + * @param c max_speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) * @param d capacity (persons, bags, tons, pieces, items, cubic metres, ...) * @param e running_cost * @param f sound effect @@ -561,7 +561,7 @@ static const ShipVehicleInfo _orig_ship_vehicle_info[] = { * @param d subtype (bit 0 - plane, bit 1 - large plane) * @param e sound effect * @param f acceleration - * @param g max_speed + * @param g max_speed (1 unit = 8 mph = 12.8 km-ish/h) * @param h mail_capacity (bags) * @param i passenger_capacity (persons) */ @@ -628,7 +628,7 @@ static const AircraftVehicleInfo _orig_aircraft_vehicle_info[] = { * @param b cost_factor * @param c running_cost * @param d sound effect - * @param e max_speed + * @param e max_speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) * @param f capacity (persons, bags, tons, pieces, items, cubic metres, ...) * @param g weight (1/4 ton) * @param h power (10 hp) |