summaryrefslogtreecommitdiffstats
path: root/src/control/Transmission.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-19 23:41:43 +0200
committeraap <aap@papnet.eu>2019-06-20 00:12:12 +0200
commit2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7 (patch)
tree1402bf32292b0ec260777d32f1f1069e41a37b67 /src/control/Transmission.h
parentimplemented CObjectData (diff)
downloadre3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar.gz
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar.bz2
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar.lz
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar.xz
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.tar.zst
re3-2fcdf6fa21a173dcc033fd03b6d08b46b916c2e7.zip
Diffstat (limited to 'src/control/Transmission.h')
-rw-r--r--src/control/Transmission.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/control/Transmission.h b/src/control/Transmission.h
new file mode 100644
index 00000000..686e0aca
--- /dev/null
+++ b/src/control/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);
+};