mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47: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:
@@ -17,8 +17,8 @@ class CIEKeyframeEmitter : public CIntElement {
|
||||
|
||||
public:
|
||||
CIEKeyframeEmitter(CInputStream& in);
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEDeath : public CIntElement {
|
||||
@@ -28,8 +28,8 @@ class CIEDeath : public CIntElement {
|
||||
public:
|
||||
CIEDeath(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEClamp : public CIntElement {
|
||||
@@ -40,8 +40,8 @@ class CIEClamp : public CIntElement {
|
||||
public:
|
||||
CIEClamp(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c)
|
||||
: x4_min(std::move(a)), x8_max(std::move(b)), xc_val(std::move(c)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIETimeChain : public CIntElement {
|
||||
@@ -52,8 +52,8 @@ class CIETimeChain : public CIntElement {
|
||||
public:
|
||||
CIETimeChain(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)), xc_swFrame(std::move(c)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEAdd : public CIntElement {
|
||||
@@ -62,8 +62,8 @@ class CIEAdd : public CIntElement {
|
||||
|
||||
public:
|
||||
CIEAdd(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b) : x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEConstant : public CIntElement {
|
||||
@@ -71,8 +71,8 @@ class CIEConstant : public CIntElement {
|
||||
|
||||
public:
|
||||
CIEConstant(int val) : x4_val(val) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEImpulse : public CIntElement {
|
||||
@@ -80,8 +80,8 @@ class CIEImpulse : public CIntElement {
|
||||
|
||||
public:
|
||||
CIEImpulse(std::unique_ptr<CIntElement>&& a) : x4_a(std::move(a)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIELifetimePercent : public CIntElement {
|
||||
@@ -89,8 +89,8 @@ class CIELifetimePercent : public CIntElement {
|
||||
|
||||
public:
|
||||
CIELifetimePercent(std::unique_ptr<CIntElement>&& a) : x4_percentVal(std::move(a)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEInitialRandom : public CIntElement {
|
||||
@@ -100,8 +100,8 @@ class CIEInitialRandom : public CIntElement {
|
||||
public:
|
||||
CIEInitialRandom(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEPulse : public CIntElement {
|
||||
@@ -114,8 +114,8 @@ public:
|
||||
CIEPulse(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c,
|
||||
std::unique_ptr<CIntElement>&& d)
|
||||
: x4_aDuration(std::move(a)), x8_bDuration(std::move(b)), xc_aVal(std::move(c)), x10_bVal(std::move(d)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEMultiply : public CIntElement {
|
||||
@@ -125,8 +125,8 @@ class CIEMultiply : public CIntElement {
|
||||
public:
|
||||
CIEMultiply(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIESampleAndHold : public CIntElement {
|
||||
@@ -139,8 +139,8 @@ class CIESampleAndHold : public CIntElement {
|
||||
public:
|
||||
CIESampleAndHold(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c)
|
||||
: x4_sampleSource(std::move(a)), xc_waitFramesMin(std::move(b)), x10_waitFramesMax(std::move(c)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIERandom : public CIntElement {
|
||||
@@ -150,8 +150,8 @@ class CIERandom : public CIntElement {
|
||||
public:
|
||||
CIERandom(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_min(std::move(a)), x8_max(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIETimeScale : public CIntElement {
|
||||
@@ -159,26 +159,26 @@ class CIETimeScale : public CIntElement {
|
||||
|
||||
public:
|
||||
CIETimeScale(std::unique_ptr<CRealElement>&& a) : x4_a(std::move(a)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEGetCumulativeParticleCount : public CIntElement {
|
||||
public:
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEGetActiveParticleCount : public CIntElement {
|
||||
public:
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEGetEmitterTime : public CIntElement {
|
||||
public:
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIEModulo : public CIntElement {
|
||||
@@ -188,8 +188,8 @@ class CIEModulo : public CIntElement {
|
||||
public:
|
||||
CIEModulo(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIESubtract : public CIntElement {
|
||||
@@ -199,8 +199,8 @@ class CIESubtract : public CIntElement {
|
||||
public:
|
||||
CIESubtract(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b)
|
||||
: x4_a(std::move(a)), x8_b(std::move(b)) {}
|
||||
bool GetValue(int frame, int& valOut) const;
|
||||
int GetMaxValue() const;
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user