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

Method GetRunningCost

src/aircraft_cmd.cpp:439–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439Money Aircraft::GetRunningCost() const
440{
441 const Engine *e = this->GetEngine();
442 uint cost_factor = GetVehicleProperty(this, PROP_AIRCRAFT_RUNNING_COST_FACTOR, e->VehInfo<AircraftVehicleInfo>().running_cost);
443 return GetPrice(PR_RUNNING_AIRCRAFT, cost_factor, e->GetGRF());
444}
445
446/** Calendar day handler */
447void Aircraft::OnNewCalendarDay()

Callers 1

OnNewEconomyDayMethod · 0.95

Calls 4

GetVehiclePropertyFunction · 0.85
GetPriceFunction · 0.85
GetEngineMethod · 0.45
GetGRFMethod · 0.45

Tested by

no test coverage detected