summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Transmission.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-16 19:38:05 +0100
committeraap <aap@papnet.eu>2021-01-18 10:59:19 +0100
commita672860c401aa1ca179fce42e439c59f8d07f6d8 (patch)
tree50e4189f7b85a1d66c25c459eec40cdd551a5dce /src/vehicles/Transmission.h
parentremove scriptspath from premake (diff)
downloadre3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.gz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.bz2
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.lz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.xz
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.tar.zst
re3-a672860c401aa1ca179fce42e439c59f8d07f6d8.zip
Diffstat (limited to 'src/vehicles/Transmission.h')
-rw-r--r--src/vehicles/Transmission.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Transmission.h b/src/vehicles/Transmission.h
index a3d15513..8aea7b02 100644
--- a/src/vehicles/Transmission.h
+++ b/src/vehicles/Transmission.h
@@ -17,6 +17,7 @@ public:
int8 nNumberOfGears;
uint8 Flags;
float fEngineAcceleration;
+ float fEngineInertia;
float fMaxVelocity;
float fMaxCruiseVelocity;
float fMaxReverseVelocity;
@@ -24,5 +25,6 @@ public:
void InitGearRatios(void);
void CalculateGearForSimpleCar(float speed, uint8 &gear);
+ float CalculateDriveAcceleration(const float &gasPedal, uint8 &gear, float &time, const float &velocity, float *inertiaVar1, float *inertiaVar2, uint8 nDriveWheels, uint8 cheat);
float CalculateDriveAcceleration(const float &gasPedal, uint8 &gear, float &time, const float &velocity, bool cheat);
};