summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-23 17:59:50 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-23 17:59:50 +0100
commit833bf4a619c7bd40ea69731abe3d31770815d863 (patch)
treed351d9d80d332118621b9023fbe176928fe8e2b9 /src/vehicles/Vehicle.h
parenttwo unused functions (diff)
downloadre3-833bf4a619c7bd40ea69731abe3d31770815d863.tar
re3-833bf4a619c7bd40ea69731abe3d31770815d863.tar.gz
re3-833bf4a619c7bd40ea69731abe3d31770815d863.tar.bz2
re3-833bf4a619c7bd40ea69731abe3d31770815d863.tar.lz
re3-833bf4a619c7bd40ea69731abe3d31770815d863.tar.xz
re3-833bf4a619c7bd40ea69731abe3d31770815d863.tar.zst
re3-833bf4a619c7bd40ea69731abe3d31770815d863.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h
index 999ee002..3933f1dd 100644
--- a/src/vehicles/Vehicle.h
+++ b/src/vehicles/Vehicle.h
@@ -103,6 +103,15 @@ enum eFlightModel
FLIGHT_MODEL_SEAPLANE
};
+// TODO: what is this even?
+enum eBikeWheelSpecial {
+ BIKE_WHEELSPEC_0, // both wheels on ground
+ BIKE_WHEELSPEC_1, // rear wheel on ground
+ BIKE_WHEELSPEC_2, // only front wheel on ground
+ BIKE_WHEELSPEC_3, // can't happen
+};
+
+
class CVehicle : public CPhysical
{
public:
@@ -237,6 +246,8 @@ public:
void FlyingControl(eFlightModel flightModel);
void ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelContactSpeed, CVector &wheelContactPoint,
int32 wheelsOnGround, float thrust, float brake, float adhesion, int8 wheelId, float *wheelSpeed, tWheelState *wheelState, uint16 wheelStatus);
+ void ProcessBikeWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelContactSpeed, CVector &wheelContactPoint, int32 wheelsOnGround, float thrust,
+ float brake, float adhesion, int8 wheelId, float *wheelSpeed, tWheelState *wheelState, eBikeWheelSpecial special, uint16 wheelStatus);
void ExtinguishCarFire(void);
void ProcessDelayedExplosion(void);
float ProcessWheelRotation(tWheelState state, const CVector &fwd, const CVector &speed, float radius);