prime/include/MetroidPrime/Weapons/CElectricBeamProjectile.hpp

50 lines
1.5 KiB
C++
Raw Normal View History

2022-11-23 23:49:52 +00:00
#ifndef _CELECTRICBEAMPROJECTILE
#define _CELECTRICBEAMPROJECTILE
#include "MetroidPrime/Weapons/CBeamProjectile.hpp"
class CParticleElectric;
class CElectricDescription;
struct SElectricBeamInfo {
TToken< CElectricDescription > x0_electricDescription;
float x8_maxLength;
float xc_radius;
float x10_travelSpeed;
CAssetId x14_particleId;
float x18_fadeSpeed;
float x1c_damageInterval;
};
class CElectricBeamProjectile : public CBeamProjectile {
public:
CElectricBeamProjectile(const TToken< CWeaponDescription >&, EWeaponType,
const SElectricBeamInfo&, const CTransform4f&, EMaterialTypes,
const CDamageInfo&, TUniqueId, TAreaId, TUniqueId, EProjectileAttrib);
// CEntity
2023-02-06 17:01:01 +00:00
void Accept(IVisitor&) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
2022-11-23 23:49:52 +00:00
// CActor
2023-02-06 17:01:01 +00:00
void AddToRenderer(const CFrustumPlanes&, const CStateManager&) const override;
void Touch(CActor&, CStateManager&) override;
2022-11-23 23:49:52 +00:00
// CBeamProjectile
2023-02-06 17:01:01 +00:00
void UpdateFx(const CTransform4f&, float, CStateManager&) override;
void ResetBeam(CStateManager&, bool) override;
void Fire(const CTransform4f&, CStateManager&, bool) override;
2022-11-23 23:49:52 +00:00
private:
rstl::single_ptr< CParticleElectric > x468_electric;
TLockedToken< CGenDescription > x46c_genDescription;
rstl::single_ptr< CElementGen > x478_elementGen;
float x47c_fadeSpeed;
float x480_intensity;
float x484_damageTimer;
float x488_damageInterval;
bool x48c_;
};
#endif // _CELECTRICBEAMPROJECTILE