|
OpenTTD Source 20260311-master-g511d3794ce
|
This file contains all the data for vehicles. More...
#include "table/strings.h"Go to the source code of this file.
Macros | |
| #define | MT(a, b, c, d, e, f) |
| Writes the properties of a train into the EngineInfo struct. | |
| #define | MM(a, b, c, d, e, f) |
| Writes the properties of a multiple-unit train into the EngineInfo struct. | |
| #define | MW(a, b, c, d, e, f) |
| Writes the properties of a train carriage into the EngineInfo struct. | |
| #define | MR(a, b, c, d, e, f) |
| Writes the properties of a road vehicle into the EngineInfo struct. | |
| #define | MS(a, b, c, d, e, f) |
| Writes the properties of a ship into the EngineInfo struct. | |
| #define | MA(a, b, c, d, e) |
| Writes the properties of an aeroplane into the EngineInfo struct. | |
| #define | T LandscapeType::Temperate |
| Climate temperate. | |
| #define | A LandscapeType::Arctic |
| Climate sub-arctic. | |
| #define | S LandscapeType::Tropic |
| Climate sub-tropic. | |
| #define | Y LandscapeType::Toyland |
| Climate toyland. | |
| #define | RVI(a, b, c, d, e, f, g, h, i, j, k) |
| Writes the properties of a rail vehicle into the RailVehicleInfo struct. | |
| #define | M RAILVEH_MULTIHEAD |
| #define | W RAILVEH_WAGON |
| #define | G RAILVEH_SINGLEHEAD |
| #define | S EC_STEAM |
| Climate sub-tropic. | |
| #define | D EC_DIESEL |
| #define | E EC_ELECTRIC |
| #define | N EC_MONORAIL |
| #define | V EC_MAGLEV |
| #define | A EC_STEAM |
| Climate sub-arctic. | |
| #define | R RAILTYPE_RAIL |
| #define | C RAILTYPE_ELECTRIC |
| #define | O RAILTYPE_MONO |
| #define | L RAILTYPE_MAGLEV |
| #define | RC_S Price::RunningTrainSteam |
| #define | RC_D Price::RunningTrainDiesel |
| #define | RC_E Price::RunningTrainElectric |
| #define | RC_W Price::Invalid |
| #define | SVI(a, b, c, d, e, f, g, h) |
| Writes the properties of a ship into the ShipVehicleInfo struct. | |
| #define | AVI(a, b, c, d, e, f, g, h, i) |
| Writes the properties of an aircraft into the AircraftVehicleInfo struct. | |
| #define | H AIR_HELI |
| #define | P AIR_CTOL |
| #define | J AIR_CTOL | AIR_FAST |
| #define | ROV(a, b, c, d, e, f, g, h) |
| Writes the properties of a road vehicle into the RoadVehicleInfo struct. | |
Variables | |
| static constexpr EngineInfo | _orig_engine_info [] |
| static constexpr RailVehicleInfo | _orig_rail_vehicle_info [] |
| static constexpr ShipVehicleInfo | _orig_ship_vehicle_info [] |
| static constexpr AircraftVehicleInfo | _orig_aircraft_vehicle_info [] |
| static constexpr RoadVehicleInfo | _orig_road_vehicle_info [] |
This file contains all the data for vehicles.
Definition in file engines.h.
| #define A EC_STEAM |
| #define A LandscapeType::Arctic |
Climate sub-arctic.
Wagons always have engine type 0, i.e.
steam.
Definition at line 93 of file engines.h.
Referenced by CalculateRefitMasks(), IConsolePrint(), and StartNewThread().
| #define AVI | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f, | |||
| g, | |||
| h, | |||
| i ) |
Writes the properties of an aircraft into the AircraftVehicleInfo struct.
| a | image_index |
| b | cost_factor |
| c | running_Cost |
| d | subtype (bit 0 - plane, bit 1 - large plane) |
| e | sound effect |
| f | acceleration (1 unit = 3/8 mph/tick = 3/5 km-ish/h/tick) (stays the same in the variable) |
| g | max_speed (1 unit = 8 mph = 12.8 km-ish/h) (is converted to km-ish/h by the macro) |
| h | mail_capacity (bags) |
| i | passenger_capacity (persons) |
| #define C RAILTYPE_ELECTRIC |
| #define E EC_ELECTRIC |
| #define G RAILVEH_SINGLEHEAD |
| #define L RAILTYPE_MAGLEV |
| #define M RAILVEH_MULTIHEAD |
| #define MA | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e ) |
Writes the properties of an aeroplane into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | Bitmask of the climates |
| #define MM | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f ) |
Writes the properties of a multiple-unit train into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | cargo type |
| f | Bitmask of the climates |
| #define MR | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f ) |
Writes the properties of a road vehicle into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | cargo type |
| f | Bitmask of the climates |
| #define MS | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f ) |
Writes the properties of a ship into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | cargo type |
| f | Bitmask of the climates |
| #define MT | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f ) |
Writes the properties of a train into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | cargo type |
| f | Bitmask of the climates |
| #define MW | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f ) |
Writes the properties of a train carriage into the EngineInfo struct.
| a | base introduction date (days since 1920-01-01) |
| b | decay speed |
| c | life length (years) |
| d | base life (years) |
| e | cargo type |
| f | Bitmask of the climates |
| #define N EC_MONORAIL |
| #define O RAILTYPE_MONO |
| #define R RAILTYPE_RAIL |
| #define RC_D Price::RunningTrainDiesel |
| #define RC_E Price::RunningTrainElectric |
| #define RC_S Price::RunningTrainSteam |
| #define RC_W Price::Invalid |
| #define ROV | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f, | |||
| g, | |||
| h ) |
Writes the properties of a road vehicle into the RoadVehicleInfo struct.
| a | image_index |
| b | cost_factor |
| c | running_cost |
| d | sound effect |
| e | max_speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) |
| f | capacity (persons, bags, tons, pieces, items, cubic metres, ...) |
| g | weight (1/4 ton) |
| h | power (10 hp) Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76 Air drag value depends on the top speed of the vehicle. |
| #define RVI | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f, | |||
| g, | |||
| h, | |||
| i, | |||
| j, | |||
| k ) |
Writes the properties of a rail vehicle into the RailVehicleInfo struct.
| a | image_index |
| b | type |
| c | cost_factor |
| d | max_speed (1 unit = 1/1.6 mph = 1 km-ish/h) |
| e | power (hp) |
| f | weight (tons) |
| g | running_cost |
| h | running_cost_class |
| i | capacity (persons, bags, tons, pieces, items, cubic metres, ...) |
| j | railtype |
| k | engclass Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76 Air drag value depends on the top speed of the vehicle. |
| #define S LandscapeType::Tropic |
Climate sub-tropic.
Definition at line 95 of file engines.h.
Referenced by CalculateRefitMasks(), and DumpTarget::WriteStructT().
| #define SVI | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f, | |||
| g, | |||
| h ) |
Writes the properties of a ship into the ShipVehicleInfo struct.
| a | image_index |
| b | cost_factor |
| c | acceleration (1 unit = 1/3.2 mph per tick = 0.5 km-ish/h per tick) |
| d | max_speed (1 unit = 1/3.2 mph = 0.5 km-ish/h) |
| e | capacity (persons, bags, tons, pieces, items, cubic metres, ...) |
| f | running_cost |
| g | sound effect |
| h | refittable |
| #define T LandscapeType::Temperate |
Climate temperate.
Definition at line 91 of file engines.h.
Referenced by AB(), abs(), SettingsContainer::Add(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::AddNode(), Align(), AlignPtr(), ReusableBuffer< T >::Allocate(), SpriteAllocator::Allocate(), AssignBit(), AutoRestoreBackup< T >::AutoRestoreBackup(), Backup< T >::Backup(), Backup< T >::Backup(), CBinaryHeapT< T >::Begin(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::BuildSubtree(), std::byteswap(), CalculateRefitMasks(), GroundVehicle< T, Type >::CargoChanged(), Clamp(), ClearPixelBuffer(), CommandHelper< Tcmd, Tret(*)(DoCommandFlags, Targs...), true >::ClientIdIsSet(), ClrBit(), CountBits(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::CountValue(), GroundVehicle< T, Type >::Crash(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::Create(), SpecializedSpriteGroup< T >::Create(), SpecializedStation< T, Tis_waypoint >::Create(), SpecializedVehicle< T, Type >::Create(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::CreateAtIndex(), SpecializedStation< T, Tis_waypoint >::CreateAtIndex(), SpecializedVehicle< T, Type >::CreateAtIndex(), Delta(), ButtonLine::Draw(), CBinaryHeapT< T >::End(), FillFromHistory(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::FindContained(), FindFirstBit(), CBinaryHeapT< T >::FindIndex(), FindJoiningBaseStation(), FindLastBit(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::FindNearest(), SpecializedVehicle< T, Type >::First(), SpecializedStation< T, Tis_waypoint >::From(), SpecializedStation< T, Tis_waypoint >::From(), SpecializedVehicle< T, Type >::From(), SpecializedVehicle< T, Type >::From(), GB(), SpecializedStation< T, Tis_waypoint >::Get(), SpecializedVehicle< T, Type >::Get(), GroundVehicle< T, Type >::GetAcceleration(), GetAndResetAccumulatedAverage(), ReusableBuffer< T >::GetBuffer(), SpecializedStation< T, Tis_waypoint >::GetByTile(), SpecializedVehicle< T, Type >::GetFirstEnginePart(), SpecializedVehicle< T, Type >::GetFirstEnginePart(), GetHistory(), SpecializedStation< T, Tis_waypoint >::GetIfValid(), SpecializedVehicle< T, Type >::GetIfValid(), SpecializedVehicle< T, Type >::GetLastEnginePart(), SpecializedVehicle< T, Type >::GetNextArticulatedPart(), SpecializedVehicle< T, Type >::GetNextArticulatedPart(), StringParameters::GetNextParameter(), SpecializedVehicle< T, Type >::GetNextVehicle(), AutoRestoreBackup< T >::GetOriginalValue(), Backup< T >::GetOriginalValue(), SpecializedVehicle< T, Type >::GetPrevVehicle(), GroundVehicle< T, Type >::GetSlopeResistance(), GetStationAround(), CargoArray::GetSum(), SlOrders< T >::GetVector(), NWidgetSocialPlugins::GetWidestPlugin(), Greater(), GroundVehicle< T, Type >::GroundVehicle(), HasAtMostOneBit(), HasBit(), HasExactlyOneBit(), HasFlag(), CBinaryHeapT< T >::HeapifyDown(), CBinaryHeapT< T >::HeapifyUp(), CBinaryHeapT< T >::Include(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::Insert(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::InsertRecursive(), GroundVehicle< T, Type >::IsChainInDepot(), IsInsideBS(), KillFirstBit(), SpecializedVehicle< T, Type >::Last(), SpecializedVehicle< T, Type >::Last(), SlOrders< T >::LoadCheck(), LoadTranslationTable(), MakeDefaultName(), CargoTypeMapSpriteGroupHandler< T, Tclass >::MapDefault(), PurchaseDefaultMapSpriteGroupHandler< T >::MapDefault(), CargoTypeMapSpriteGroupHandler< T, Tclass >::MapSpecific(), PurchaseDefaultMapSpriteGroupHandler< T >::MapSpecific(), SpecializedVehicle< T, Type >::Next(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::operator new(), ParseInteger(), StringConsumer::ParseIntegerBase(), ParseType(), PluginCall(), GroundVehicle< T, Type >::PowerChanged(), PrepareToEnterBridge(), SpecializedVehicle< T, Type >::Previous(), BaseStringBuilder::PutIntegerBase(), RateConversion(), EndianBufferReader::Read(), StringConsumer::ReadIntegerBase(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::Rebuild(), CBinaryHeapT< T >::Remove(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::Remove(), RemoveFromRailBaseStation(), RemoveRailStation(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::RemoveRecursive(), SanitizeSingleStringHelper(), SB(), FrametimeGraphWindow::Scinterlate(), Kdtree< StationID, Kdtree_StationXYFunc, uint16_t, int >::SelectSplitCoord(), SetBit(), CommandHelper< Tcmd, Tret(*)(DoCommandFlags, Targs...), true >::SetClientIdHelper(), SetClientIdHelper(), CBinaryHeapT< T >::Shift(), SoftClamp(), GUIList< BuildBridgeData >::Sort(), SumHistory(), ToggleBit(), ToggleFlag(), SpecializedVehicle< T, Type >::UpdateViewport(), HTTPThreadSafeCallback::WaitTillEmptyOrCondition(), EndianBufferWriter< Tcont, Titer >::Write(), and ReusableBuffer< T >::ZeroAllocate().
| #define W RAILVEH_WAGON |
| #define Y LandscapeType::Toyland |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |