diff options
author | aap <aap@papnet.eu> | 2019-05-17 14:08:18 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-05-17 14:08:18 +0200 |
commit | 5b8f20b08e6a40e2b07df73e90c5e84e259140fe (patch) | |
tree | d8c5977bb4fda8c2521fad3810e4436f1bdf2127 /src/entities/Vehicle.h | |
parent | renames and a fix (diff) | |
download | re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar.gz re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar.bz2 re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar.lz re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar.xz re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.tar.zst re3-5b8f20b08e6a40e2b07df73e90c5e84e259140fe.zip |
Diffstat (limited to 'src/entities/Vehicle.h')
-rw-r--r-- | src/entities/Vehicle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entities/Vehicle.h b/src/entities/Vehicle.h index 598b4a57..1a43e075 100644 --- a/src/entities/Vehicle.h +++ b/src/entities/Vehicle.h @@ -16,6 +16,12 @@ public: CEntity *m_pCurSurface; uint8 stuff3[160]; int32 m_vehType; + + bool IsCar(void) { return m_vehType == VEHICLE_TYPE_CAR; } + bool IsBoat(void) { return m_vehType == VEHICLE_TYPE_BOAT; } + 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; } }; static_assert(sizeof(CVehicle) == 0x288, "CVehicle: error"); static_assert(offsetof(CVehicle, m_pCurSurface) == 0x1E0, "CVehicle: error"); |