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

Method IsPrimaryVehicle

src/script/api/script_vehicle.cpp:39–44  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

37}
38
39/* static */ bool ScriptVehicle::IsPrimaryVehicle(VehicleID vehicle_id)
40{
41 if (!IsValidVehicle(vehicle_id)) return false;
42
43 return ::Vehicle::Get(vehicle_id)->IsPrimaryVehicle();
44}
45
46/* static */ ScriptCompany::CompanyID ScriptVehicle::GetOwner(VehicleID vehicle_id)
47{

Callers 11

IsValidVehicleMethod · 0.45
GetProfitThisYearMethod · 0.45
GetCurrentUsageMethod · 0.45
ScriptVehicleListMethod · 0.45
NetworkGetCompanyStatsFunction · 0.45
AfterLoadGameFunction · 0.45
FixOldVehiclesFunction · 0.45
AfterLoadVehiclesPhase1Function · 0.45
FixupTrainLengthsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected