2019-05-15 14:52:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Physical.h"
|
|
|
|
|
|
|
|
class CPed;
|
|
|
|
|
|
|
|
class CVehicle : public CPhysical
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// 0x128
|
|
|
|
uint8 stuff1[120];
|
|
|
|
int16 m_nAlarmState;
|
|
|
|
CPed *pDriver;
|
|
|
|
CPed *pPassengers[8];
|
|
|
|
uint8 stuff2[24];
|
|
|
|
CEntity *m_pCurSurface;
|
|
|
|
uint8 stuff3[160];
|
|
|
|
int32 m_vehType;
|
2019-05-17 12:08:18 +00:00
|
|
|
|
|
|
|
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; }
|
2019-05-15 14:52:37 +00:00
|
|
|
};
|
|
|
|
static_assert(sizeof(CVehicle) == 0x288, "CVehicle: error");
|
|
|
|
static_assert(offsetof(CVehicle, m_pCurSurface) == 0x1E0, "CVehicle: error");
|