2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 02:06:09 +00:00

CGameProjectile: Make use of TCastToConstPtr before

Same behavior, but more indiciative of read-only semantics.
This commit is contained in:
Lioncash
2020-04-03 01:39:48 -04:00
parent eb1209b492
commit d47f8c2784
2 changed files with 67 additions and 48 deletions

View File

@@ -83,9 +83,9 @@ public:
float mag, const rstl::reserved_vector<TUniqueId, 1024>& nearList,
CStateManager& mgr);
CProjectileTouchResult CanCollideWith(CActor& act, CStateManager& mgr) const;
CProjectileTouchResult CanCollideWithComplexCollision(CActor& act, CStateManager& mgr) const;
CProjectileTouchResult CanCollideWithComplexCollision(const CActor& act, const CStateManager& mgr) const;
CProjectileTouchResult CanCollideWithGameObject(CActor& act, CStateManager& mgr) const;
CProjectileTouchResult CanCollideWithTrigger(CActor& act, CStateManager& mgr) const;
CProjectileTouchResult CanCollideWithTrigger(const CActor& act, const CStateManager& mgr) const;
zeus::CAABox GetProjectileBounds() const;
std::optional<zeus::CAABox> GetTouchBounds() const override;
CProjectileWeapon& ProjectileWeapon() { return x170_projectile; }