prime/include/MetroidPrime/Weapons/CTargetableProjectile.hpp

38 lines
1.3 KiB
C++
Raw Normal View History

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
~CTargetableProjectile();
void Accept(IVisitor&);
2022-11-11 09:44:43 +00:00
// CACtor
CVector3f GetAimPosition(const CStateManager&, float) const;
2022-11-11 09:44:43 +00:00
// CGameProjectile
2022-11-11 02:25:54 +00:00
void ResolveCollisionWithActor(const CRayCastResult& res, CActor& act,
CStateManager& mgr);
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,
CStateManager& mgr, const CDamageVulnerability& dVuln, TUniqueId hitActor);
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