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

Method moveBoatTo

src/OpenLoco/src/Vehicles/VehicleHead.cpp:3017–3028  ·  view source on GitHub ↗

0x00427B70

Source from the content-addressed store, hash-verified

3015
3016 // 0x00427B70
3017 void VehicleHead::moveBoatTo(const Pos3& newLoc, const uint8_t yaw, const Pitch pitch)
3018 {
3019 Vehicle train(head);
3020 train.veh1->moveTo({ newLoc.x, newLoc.y, newLoc.z });
3021 train.veh1->tileX = 0;
3022 train.veh2->moveTo({ newLoc.x, newLoc.y, newLoc.z });
3023 train.veh2->tileX = 0;
3024 train.cars.firstCar.body->moveTo({ newLoc.x, newLoc.y, newLoc.z });
3025 train.cars.firstCar.body->spriteYaw = yaw;
3026 train.cars.firstCar.body->spritePitch = pitch;
3027 train.cars.firstCar.body->tileX = 0;
3028 }
3029
3030 uint8_t VehicleHead::getLoadingModifier(const VehicleBogie* bogie)
3031 {

Callers 1

vehiclePlaceWaterFunction · 0.80

Calls 1

moveToMethod · 0.80

Tested by

no test coverage detected