MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetDisplayDefaultCapacity

Method GetDisplayDefaultCapacity

src/engine_base.h:115–118  ·  view source on GitHub ↗

* Determines the default cargo capacity of an engine for display purposes. * * For planes carrying both passenger and mail this is the passenger capacity. * For multiheaded engines this is the capacity of both heads. * For articulated engines use GetCapacityOfArticulatedParts * * @param mail_capacity returns secondary cargo (mail) capacity of aircraft * @return The default capacity

Source from the content-addressed store, hash-verified

113 * @see GetDefaultCargoType
114 */
115 uint GetDisplayDefaultCapacity(uint16_t *mail_capacity = nullptr) const
116 {
117 return this->DetermineCapacity(nullptr, mail_capacity);
118 }
119
120 Money GetRunningCost() const;
121 Money GetCost() const;

Callers 9

GetShipEngineInfoStringFunction · 0.80
CmdBuildVehicleFunction · 0.80
ShipEngineCapacitySorterFunction · 0.80
FillDefaultCapacitiesMethod · 0.80
GetCapacityMethod · 0.80
GetCapacityMethod · 0.80

Calls 1

DetermineCapacityMethod · 0.95

Tested by

no test coverage detected