summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-29 12:55:26 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-29 12:55:26 +0100
commitb9e97ab79db84785838f1b995188c37328c26071 (patch)
treec0c2fb73abab36a3f2e92b904287d91ef5032209 /src/entities/Entity.h
parentFix error sound in when entering load/save menu (diff)
downloadre3-b9e97ab79db84785838f1b995188c37328c26071.tar
re3-b9e97ab79db84785838f1b995188c37328c26071.tar.gz
re3-b9e97ab79db84785838f1b995188c37328c26071.tar.bz2
re3-b9e97ab79db84785838f1b995188c37328c26071.tar.lz
re3-b9e97ab79db84785838f1b995188c37328c26071.tar.xz
re3-b9e97ab79db84785838f1b995188c37328c26071.tar.zst
re3-b9e97ab79db84785838f1b995188c37328c26071.zip
Diffstat (limited to 'src/entities/Entity.h')
-rw-r--r--src/entities/Entity.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/entities/Entity.h b/src/entities/Entity.h
index 9129457c..2749e3f7 100644
--- a/src/entities/Entity.h
+++ b/src/entities/Entity.h
@@ -130,7 +130,7 @@ public:
virtual void PreRender(void);
virtual void Render(void);
virtual bool SetupLighting(void);
- virtual void RemoveLighting(bool) {}
+ virtual void RemoveLighting(bool);
virtual void FlagToDestroyWhenNextProcessed(void) {}
bool IsBuilding(void) { return m_type == ENTITY_TYPE_BUILDING; }
@@ -149,14 +149,14 @@ 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; }
+ CVector GetBoundCentre(void);
+ float GetBoundRadius(void);
+ float GetDistanceFromCentreOfMassToBaseOfModel(void);
bool GetIsTouching(CVector const &center, float r);
bool GetIsOnScreen(void);
bool GetIsOnScreenComplex(void);
- bool IsVisible(void) { return m_rwObject && bIsVisible && GetIsOnScreen(); }
- bool IsVisibleComplex(void) { return m_rwObject && bIsVisible && GetIsOnScreenComplex(); }
+ bool IsVisible(void);
+ bool IsVisibleComplex(void);
bool IsEntityOccluded(void);
int16 GetModelIndex(void) const { return m_modelIndex; }
void UpdateRwFrame(void);
@@ -179,8 +179,6 @@ public:
void ModifyMatrixForBannerInWind(void);
void ProcessLightsForEntity(void);
void SetRwObjectAlpha(int32 alpha);
-
- static void AddSteamsFromGround(CPtrList& list);
};
bool IsEntityPointerValid(CEntity*);