mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 09:47:43 +00:00
RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't modify instance state.
This commit is contained in:
@@ -150,7 +150,7 @@ public:
|
||||
void SetVelocityWR(const zeus::CVector3f& vel);
|
||||
void SetVelocityOR(const zeus::CVector3f& vel);
|
||||
void SetMomentumWR(const zeus::CVector3f& m) { x150_momentum = m; }
|
||||
const zeus::CVector3f& GetConstantForce() { return xfc_constantForce; }
|
||||
const zeus::CVector3f& GetConstantForce() const { return xfc_constantForce; }
|
||||
void SetConstantForce(const zeus::CVector3f& f) { xfc_constantForce = f; }
|
||||
void SetAngularMomentum(const zeus::CAxisAngle& m) { x108_angularMomentum = m; }
|
||||
const zeus::CVector3f& GetMomentum() const { return x150_momentum; }
|
||||
@@ -170,7 +170,7 @@ public:
|
||||
void ClearForcesAndTorques();
|
||||
void Stop();
|
||||
void ComputeDerivedQuantities();
|
||||
bool WillMove(const CStateManager&);
|
||||
bool WillMove(const CStateManager&) const;
|
||||
void SetPhysicsState(const CPhysicsState& state);
|
||||
CPhysicsState GetPhysicsState() const;
|
||||
bool IsMovable() const { return xf8_24_movable; }
|
||||
|
||||
Reference in New Issue
Block a user