metaforce/Runtime/Weapon/CTargetableProjectile.hpp

29 lines
1.2 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 <optional>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/Weapon/CEnergyProjectile.hpp"
2018-02-11 05:27:00 +00:00
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,
const std::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&) override;
zeus::CVector3f GetAimPosition(const CStateManager&, float) const override;
2019-03-24 05:45:47 +00:00
bool Explode(const zeus::CVector3f& pos, const zeus::CVector3f& normal, EWeaponCollisionResponseTypes type,
CStateManager& mgr, const CDamageVulnerability& dVuln, TUniqueId hitActor) override;
2018-02-11 05:27:00 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde