summaryrefslogtreecommitdiffstats
path: root/src/entities/Vehicle.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-17 14:08:18 +0200
committeraap <aap@papnet.eu>2019-05-17 14:08:18 +0200
commit5b8f20b08e6a40e2b07df73e90c5e84e259140fe (patch)
treed8c5977bb4fda8c2521fad3810e4436f1bdf2127 /src/entities/Vehicle.h
parentrenames and a fix (diff)
downloadre3-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.h6
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");