diff options
author | aap <aap@papnet.eu> | 2020-04-09 12:30:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 12:30:13 +0200 |
commit | a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73 (patch) | |
tree | 969b0346b149d804fc27c2457fe45e91f39d8018 /src/vehicles | |
parent | Merge pull request #389 from Nick007J/master (diff) | |
parent | Finished CExplosion (diff) | |
download | re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar.gz re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar.bz2 re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar.lz re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar.xz re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.tar.zst re3-a6d449a2f4fc9cddb6f7ad8b736ba3e98395af73.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Bike.h | 15 | ||||
-rw-r--r-- | src/vehicles/Vehicle.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/vehicles/Bike.h b/src/vehicles/Bike.h new file mode 100644 index 00000000..00aa259c --- /dev/null +++ b/src/vehicles/Bike.h @@ -0,0 +1,15 @@ +#pragma once
+
+// some miami bike leftovers
+
+enum eBikeNodes {
+ BIKE_NODE_NONE,
+ BIKE_CHASSIS,
+ BIKE_FORKS_FRONT,
+ BIKE_FORKS_REAR,
+ BIKE_WHEEL_FRONT,
+ BIKE_WHEEL_REAR,
+ BIKE_MUDGUARD,
+ BIKE_HANDLEBARS,
+ BIKE_NUM_NODES
+};
\ No newline at end of file diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 4639f3e1..c7be3674 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -238,6 +238,7 @@ public: bool IsTrain(void) { return m_vehType == VEHICLE_TYPE_TRAIN; } bool IsHeli(void) { return m_vehType == VEHICLE_TYPE_HELI; } bool IsPlane(void) { return m_vehType == VEHICLE_TYPE_PLANE; } + bool IsBike(void) { return m_vehType == VEHICLE_TYPE_BIKE; } void FlyingControl(eFlightModel flightModel); void ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelContactSpeed, CVector &wheelContactPoint, |