metaforce/Runtime/Weapon/CTargetableProjectile.hpp

26 lines
1.1 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2018-02-11 05:27:00 +00:00
#include "CEnergyProjectile.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
class CTargetableProjectile : public CEnergyProjectile {
2019-03-24 05:45:47 +00:00
TLockedToken<CWeaponDescription> x3d8_weaponDesc;
CDamageInfo x3e0_damage;
2018-02-11 05:27:00 +00:00
public:
2018-12-08 05:30:43 +00:00
CTargetableProjectile(const TToken<CWeaponDescription>& desc, EWeaponType type, const zeus::CTransform& xf,
EMaterialTypes materials, const CDamageInfo& damage, const CDamageInfo& damage2, TUniqueId uid,
2019-03-24 05:45:47 +00:00
TAreaId aid, TUniqueId owner, const TLockedToken<CWeaponDescription>& weapDesc,
TUniqueId homingTarget, EProjectileAttrib attribs,
2019-01-29 08:28:35 +00:00
const rstl::optional<TLockedToken<CGenDescription>>& visorParticle, u16 visorSfx,
2018-12-08 05:30:43 +00:00
bool sendCollideMsg);
2019-03-24 05:45:47 +00:00
void Accept(IVisitor&);
zeus::CVector3f GetAimPosition(const CStateManager&, float) const;
bool Explode(const zeus::CVector3f& pos, const zeus::CVector3f& normal, EWeaponCollisionResponseTypes type,
CStateManager& mgr, const CDamageVulnerability& dVuln, TUniqueId hitActor);
2018-02-11 05:27:00 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde