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

Function GetVehicleProperty

src/newgrf_engine.cpp:1224–1227  ·  view source on GitHub ↗

Callback 36 handlers */

Source from the content-addressed store, hash-verified

1222
1223/* Callback 36 handlers */
1224int GetVehicleProperty(const Vehicle *v, PropertyID property, int orig_value, bool is_signed)
1225{
1226 return GetEngineProperty(v->engine_type, property, orig_value, v, is_signed);
1227}
1228
1229
1230int GetEngineProperty(EngineID engine, PropertyID property, int orig_value, const Vehicle *v, bool is_signed)

Callers 15

UpdateCacheMethod · 0.85
GetRunningCostMethod · 0.85
GetPowerMethod · 0.85
GetWeightMethod · 0.85
GetTractiveEffortMethod · 0.85
GetCurveSpeedModifierMethod · 0.85
ConsistChangedMethod · 0.85
GetRunningCostMethod · 0.85
GetMaxWeightMethod · 0.85
GetRoadVehLengthFunction · 0.85
RoadVehUpdateCacheFunction · 0.85
GetRunningCostMethod · 0.85

Calls 1

GetEnginePropertyFunction · 0.85

Tested by

no test coverage detected