From 53023eb65bdcde43e341c1ecb7cf0c7f8ee524fb Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 7 Jul 2019 13:09:11 +0200 Subject: the great reorganization --- src/vehicles/Transmission.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/vehicles/Transmission.h (limited to 'src/vehicles/Transmission.h') diff --git a/src/vehicles/Transmission.h b/src/vehicles/Transmission.h new file mode 100644 index 00000000..686e0aca --- /dev/null +++ b/src/vehicles/Transmission.h @@ -0,0 +1,26 @@ +#pragma once + +struct tGear +{ + float fMaxVelocity; + float fShiftUpVelocity; + float fShiftDownVelocity; +}; + +class cTransmission +{ +public: + // Gear 0 is reverse, 1-5 are forward + tGear Gears[6]; + char nDriveType; + char nEngineType; + int8 nNumberOfGears; + uint8 Flags; + float fEngineAcceleration; + float fMaxVelocity; + float fUnkMaxVelocity; + float fMaxReverseVelocity; + float field_5C; + + void InitGearRatios(void); +}; -- cgit v1.2.3