mirror of https://github.com/AxioDL/metaforce.git
CTargetingManager: Mark CheckLoadComplete() as const
This member function doesn't alter internal member state.
This commit is contained in:
parent
d3dbe15fcc
commit
748dbb8740
|
@ -139,7 +139,7 @@ public:
|
||||||
explicit CCompoundTargetReticle(const CStateManager&);
|
explicit CCompoundTargetReticle(const CStateManager&);
|
||||||
|
|
||||||
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
|
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
|
||||||
bool CheckLoadComplete() { return true; }
|
bool CheckLoadComplete() const { return true; }
|
||||||
EReticleState GetDesiredReticleState(const CStateManager&) const;
|
EReticleState GetDesiredReticleState(const CStateManager&) const;
|
||||||
void Update(float, const CStateManager&);
|
void Update(float, const CStateManager&);
|
||||||
void UpdateCurrLockOnGroup(float, const CStateManager&);
|
void UpdateCurrLockOnGroup(float, const CStateManager&);
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace urde {
|
||||||
|
|
||||||
CTargetingManager::CTargetingManager(const CStateManager& mgr) : x0_targetReticule(mgr) {}
|
CTargetingManager::CTargetingManager(const CStateManager& mgr) : x0_targetReticule(mgr) {}
|
||||||
|
|
||||||
bool CTargetingManager::CheckLoadComplete() {
|
bool CTargetingManager::CheckLoadComplete() const {
|
||||||
return (x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete());
|
return x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTargetingManager::Update(float dt, const CStateManager& stateMgr) {
|
void CTargetingManager::Update(float dt, const CStateManager& stateMgr) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class CTargetingManager {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CTargetingManager(const CStateManager& stateMgr);
|
explicit CTargetingManager(const CStateManager& stateMgr);
|
||||||
bool CheckLoadComplete();
|
bool CheckLoadComplete() const;
|
||||||
void Update(float, const CStateManager& stateMgr);
|
void Update(float, const CStateManager& stateMgr);
|
||||||
void Draw(const CStateManager& stateMgr, bool hideLockon);
|
void Draw(const CStateManager& stateMgr, bool hideLockon);
|
||||||
void Touch();
|
void Touch();
|
||||||
|
|
Loading…
Reference in New Issue