diff options
author | aap <aap@papnet.eu> | 2019-06-02 17:13:56 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-02 17:13:56 +0200 |
commit | 541665d9d12d9f85dd759b14a8c6abd84714b84f (patch) | |
tree | 038a09c138f91ffe5512e27f0cfe6141f47ea24e /src/entities/Entity.h | |
parent | Merge pull request #6 from Fire-Head/master (diff) | |
download | re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar.gz re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar.bz2 re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar.lz re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar.xz re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.tar.zst re3-541665d9d12d9f85dd759b14a8c6abd84714b84f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Entity.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/entities/Entity.h b/src/entities/Entity.h index 8bcd7348..c4a5c467 100644 --- a/src/entities/Entity.h +++ b/src/entities/Entity.h @@ -94,6 +94,9 @@ public: uint16 m_level; // int16 CReference *m_pFirstReference; + CEntity(void); + ~CEntity(void); + virtual void Add(void); virtual void Remove(void); virtual void SetModelIndex(uint32 i) { m_modelIndex = i; CreateRwObject(); } @@ -120,6 +123,7 @@ public: void GetBoundCentre(CVector &out); CVector GetBoundCentre(void) { CVector v; GetBoundCentre(v); return v; } float GetBoundRadius(void) { return CModelInfo::GetModelInfo(m_modelIndex)->GetColModel()->boundingSphere.radius; } + float GetDistanceFromCentreOfMassToBaseOfModel(void) { return -CModelInfo::GetModelInfo(m_modelIndex)->GetColModel()->boundingBox.min.z; } bool GetIsTouching(CVector const ¢er, float r); bool GetIsOnScreen(void); bool GetIsOnScreenComplex(void); @@ -129,6 +133,9 @@ public: void UpdateRwFrame(void); void SetupBigBuilding(void); + void AttachToRwObject(RwObject *obj); + void DetachFromRwObject(void); + void RegisterReference(CEntity **pent); void ResolveReferences(void); void PruneReferences(void); |