MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / hasVehicleFlags

Method hasVehicleFlags

src/OpenLoco/src/Vehicles/Vehicle.cpp:121–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 bool VehicleBase::hasVehicleFlags(VehicleFlags flagsToTest) const
122 {
123 return (vehicleFlags & flagsToTest) != VehicleFlags::none;
124 }
125
126 bool VehicleBase::isVehicleHead() const { return is<VehicleEntityType::head>(); }
127 VehicleHead* VehicleBase::asVehicleHead() const { return as<VehicleHead>(); }

Callers 15

sellAiThoughtVehicleFunction · 0.80
onResizeFunction · 0.80
stopStartOpenFunction · 0.80
prepareDrawFunction · 0.80
updateSegmentCrashedMethod · 0.80
sub_4ACEF1Function · 0.80
shouldStartWheelSlippingFunction · 0.80
updateMethod · 0.80
sub_4A9F20Method · 0.80
updateRoadMethod · 0.80
updateRailMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected