summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Boat.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-23 18:32:35 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-24 09:41:40 +0100
commit6ff06ff7c6d515533d8c18d1ce673c78a18695e2 (patch)
treef883ef3303b8e65d657a047c6ab6eb3d7bcee9e9 /src/vehicles/Boat.h
parentCPlayerPed continues (#294) (diff)
downloadre3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar.gz
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar.bz2
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar.lz
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar.xz
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.tar.zst
re3-6ff06ff7c6d515533d8c18d1ce673c78a18695e2.zip
Diffstat (limited to 'src/vehicles/Boat.h')
-rw-r--r--src/vehicles/Boat.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/vehicles/Boat.h b/src/vehicles/Boat.h
index 52f3530c..d3a2ac13 100644
--- a/src/vehicles/Boat.h
+++ b/src/vehicles/Boat.h
@@ -17,7 +17,14 @@ public:
float m_fMovingHiRotation;
int32 _unk0;
RwFrame *m_aBoatNodes[4];
- uint8 m_nBoatFlags;
+ uint8 m_bBoatFlag1 : 1;
+ uint8 m_bBoatFlag2 : 1;
+ uint8 m_bBoatFlag3 : 1;
+ uint8 m_bBoatFlag4 : 1;
+ uint8 m_bBoatFlag5 : 1;
+ uint8 m_bBoatFlag6 : 1;
+ uint8 m_bBoatFlag7 : 1;
+ uint8 m_bBoatFlag8 : 1;
bool m_bIsAnchored;
char _pad0[2];
float field_2C4;
@@ -41,9 +48,19 @@ public:
float m_afWakePointLifeTime[32];
CBoat(int, uint8);
- CBoat* ctor(int, uint8);
- void dtor() { this->CBoat::~CBoat(); };
+
+ virtual void SetModelIndex(uint32 id);
+ virtual void ProcessControl();
+ virtual void Teleport(CVector v);
+ virtual void PreRender(void) {};
+ virtual void Render(void);
+ virtual void ProcessControlInputs(uint8);
+ virtual void GetComponentWorldPosition(int32 component, CVector &pos);
+ virtual bool IsComponentPresent(int32 component) { return true; }
+ virtual void BlowUpCar(CEntity *ent);
+ void SetupModelNodes();
+
static CBoat *(&apFrameWakeGeneratingBoats)[4];
static bool IsSectorAffectedByWake(CVector2D sector, float fSize, CBoat **apBoats);