re3/src/vehicles/Transmission.h

28 lines
478 B
C
Raw Normal View History

2019-06-19 21:41:43 +00:00
#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 fCurVelocity;
2019-06-19 21:41:43 +00:00
void InitGearRatios(void);
void CalculateGearForSimpleCar(float speed, uint8 &gear);
2019-06-19 21:41:43 +00:00
};