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&);
|
||||
|
||||
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
|
||||
bool CheckLoadComplete() { return true; }
|
||||
bool CheckLoadComplete() const { return true; }
|
||||
EReticleState GetDesiredReticleState(const CStateManager&) const;
|
||||
void Update(float, const CStateManager&);
|
||||
void UpdateCurrLockOnGroup(float, const CStateManager&);
|
||||
|
|
|
@ -9,8 +9,8 @@ namespace urde {
|
|||
|
||||
CTargetingManager::CTargetingManager(const CStateManager& mgr) : x0_targetReticule(mgr) {}
|
||||
|
||||
bool CTargetingManager::CheckLoadComplete() {
|
||||
return (x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete());
|
||||
bool CTargetingManager::CheckLoadComplete() const {
|
||||
return x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete();
|
||||
}
|
||||
|
||||
void CTargetingManager::Update(float dt, const CStateManager& stateMgr) {
|
||||
|
|
|
@ -11,7 +11,7 @@ class CTargetingManager {
|
|||
|
||||
public:
|
||||
explicit CTargetingManager(const CStateManager& stateMgr);
|
||||
bool CheckLoadComplete();
|
||||
bool CheckLoadComplete() const;
|
||||
void Update(float, const CStateManager& stateMgr);
|
||||
void Draw(const CStateManager& stateMgr, bool hideLockon);
|
||||
void Touch();
|
||||
|
|
Loading…
Reference in New Issue