2022-11-11 02:25:54 +00:00
|
|
|
#ifndef _CTARGETABLEPROJECTILE
|
|
|
|
#define _CTARGETABLEPROJECTILE
|
|
|
|
|
|
|
|
#include "MetroidPrime/Weapons/CEnergyProjectile.hpp"
|
|
|
|
|
|
|
|
class CTargetableProjectile : public CEnergyProjectile {
|
|
|
|
public:
|
|
|
|
CTargetableProjectile(
|
|
|
|
const TToken< CWeaponDescription >& desc, EWeaponType type, const CTransform4f& xf,
|
|
|
|
EMaterialTypes materials, const CDamageInfo& damage, const CDamageInfo& damage2,
|
|
|
|
TUniqueId uid, TAreaId aid, TUniqueId owner,
|
|
|
|
const TLockedToken< CWeaponDescription >& weapDesc, TUniqueId homingTarget,
|
|
|
|
EProjectileAttrib attribs,
|
2022-11-11 09:44:43 +00:00
|
|
|
const rstl::optional_object< TLockedToken< CGenDescription > >& visorParticle,
|
|
|
|
ushort visorSfx, bool sendCollideMsg);
|
2022-11-11 02:25:54 +00:00
|
|
|
|
2022-11-11 09:44:43 +00:00
|
|
|
// CEntity
|
2023-02-06 17:01:01 +00:00
|
|
|
~CTargetableProjectile() override;
|
|
|
|
void Accept(IVisitor&) override;
|
2022-11-11 09:44:43 +00:00
|
|
|
|
|
|
|
// CACtor
|
2023-02-06 17:01:01 +00:00
|
|
|
CVector3f GetAimPosition(const CStateManager&, float) const override;
|
2022-11-11 09:44:43 +00:00
|
|
|
|
|
|
|
// CGameProjectile
|
2022-11-11 02:25:54 +00:00
|
|
|
void ResolveCollisionWithActor(const CRayCastResult& res, CActor& act,
|
2023-02-06 17:01:01 +00:00
|
|
|
CStateManager& mgr) override;
|
2022-11-11 02:25:54 +00:00
|
|
|
|
2022-11-11 09:44:43 +00:00
|
|
|
// CEnergyProjectile
|
|
|
|
bool Explode(const CVector3f& pos, const CVector3f& normal, EWeaponCollisionResponseTypes type,
|
2023-02-06 17:01:01 +00:00
|
|
|
CStateManager& mgr, const CDamageVulnerability& dVuln, TUniqueId hitActor) override;
|
2022-11-11 09:44:43 +00:00
|
|
|
|
2022-11-11 02:25:54 +00:00
|
|
|
private:
|
|
|
|
TToken< CWeaponDescription > x3d8_weaponDesc;
|
|
|
|
CDamageInfo x3e0_damage;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CTARGETABLEPROJECTILE
|