2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

RuntimeCommonB: Use the override specifier where applicable

Applies the override keyword where applicable to indicate visually where
member function overriding is occurring. This only targets
the RuntimeCommonB target as a starting point, which resolves around
900+ cases where the keyword could be used.
This commit is contained in:
Lioncash
2019-08-09 08:45:18 -04:00
parent 5acf9ecbcf
commit 2059535b55
144 changed files with 1011 additions and 999 deletions

View File

@@ -13,7 +13,7 @@ class CEESimpleEmitter : public CEmitterElement {
public:
CEESimpleEmitter(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CVectorElement>&& b)
: x4_loc(std::move(a)), x8_vec(std::move(b)) {}
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const;
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
};
class CVESphere : public CEmitterElement {
@@ -24,7 +24,7 @@ class CVESphere : public CEmitterElement {
public:
CVESphere(std::unique_ptr<CVectorElement>&& a, std::unique_ptr<CRealElement>&& b, std::unique_ptr<CRealElement>&& c)
: x4_sphereOrigin(std::move(a)), x8_sphereRadius(std::move(b)), xc_velocityMag(std::move(c)) {}
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const;
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
};
class CVEAngleSphere : public CEmitterElement {
@@ -48,7 +48,7 @@ public:
, x14_angleYBias(std::move(e))
, x18_angleXRange(std::move(f))
, x1c_angleYRange(std::move(g)) {}
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const;
bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const override;
};
} // namespace urde