Initial support for multi-part (pseudo-articulated) ships

This commit is contained in:
Jonathan G Rennison
2023-03-14 00:16:31 +00:00
parent 5718730d68
commit 211fdd62b2
16 changed files with 216 additions and 58 deletions

View File

@@ -576,6 +576,15 @@ public:
return this->type == VEH_TRAIN || this->type == VEH_ROAD;
}
/**
* Check if the vehicle type supports articulation.
* @return True iff the vehicle is a train, road vehicle or ship.
*/
debug_inline bool IsArticulatedCallbackVehicleType() const
{
return this->type == VEH_TRAIN || this->type == VEH_ROAD || this->type == VEH_SHIP;
}
/**
* Gets the speed in km-ish/h that can be sent into SetDParam for string processing.
* @return the vehicle's speed