MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / VehicleGetMoveInfoSize

Function VehicleGetMoveInfoSize

src/openrct2/ride/Vehicle.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190uint16_t VehicleGetMoveInfoSize(VehicleTrackSubposition trackSubposition, TrackElemType type, uint8_t direction)
191{
192 uint16_t typeAndDirection = (EnumValue(type) << 2) | (direction & 3);
193
194 if (!vehicle_move_info_valid(trackSubposition, type, direction, 0))
195 {
196 return 0;
197 }
198 return gTrackVehicleInfo[EnumValue(trackSubposition)][typeAndDirection]->size;
199}
200
201uint16_t Vehicle::GetTrackProgress() const
202{

Callers 3

GetTrackProgressMethod · 0.85
getSubpositionLengthMethod · 0.85
getSubpositionsMethod · 0.85

Calls 2

EnumValueFunction · 0.85
vehicle_move_info_validFunction · 0.85

Tested by

no test coverage detected