2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CICEBEAM
|
|
|
|
#define _CICEBEAM
|
|
|
|
|
|
|
|
#include "types.h"
|
2022-10-06 10:38:13 +00:00
|
|
|
|
|
|
|
#include "MetroidPrime/Weapons/CGunWeapon.hpp"
|
|
|
|
|
|
|
|
class CIceBeam : public CGunWeapon {
|
|
|
|
public:
|
|
|
|
CIceBeam(CAssetId characterId, EWeaponType type, TUniqueId playerId,
|
2022-10-09 05:13:17 +00:00
|
|
|
EMaterialTypes playerMaterial, const CVector3f& scale);
|
2022-11-24 16:48:00 +00:00
|
|
|
~CIceBeam() override;
|
|
|
|
|
|
|
|
// CGunWeapon
|
|
|
|
void PreRenderGunFx(const CStateManager& mgr, const CTransform4f& xf) override;
|
|
|
|
void PostRenderGunFx(const CStateManager& mgr, const CTransform4f& xf) override;
|
|
|
|
void UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr,
|
|
|
|
const CTransform4f& xf) override;
|
|
|
|
void Update(float dt, CStateManager& mgr) override;
|
|
|
|
void Fire(bool underwater, float dt, CPlayerState::EChargeStage chargeState,
|
|
|
|
const CTransform4f& xf, CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1,
|
|
|
|
float chargeFactor2) override;
|
|
|
|
|
|
|
|
void Load(CStateManager& mgr, bool subtypeBasePose) override;
|
|
|
|
void Unload(CStateManager& mgr) override;
|
|
|
|
bool IsLoaded() const override;
|
|
|
|
|
|
|
|
void EnableFx(bool enable) override;
|
|
|
|
void EnableSecondaryFx(ESecondaryFxType type) override;
|
2022-10-09 05:13:17 +00:00
|
|
|
|
2022-10-06 10:38:13 +00:00
|
|
|
private:
|
2022-11-24 16:48:00 +00:00
|
|
|
TCachedToken< CGenDescription > x21c_iceSmoke;
|
|
|
|
TCachedToken< CGenDescription > x228_ice2nd1;
|
|
|
|
TCachedToken< CGenDescription > x234_ice2nd2;
|
|
|
|
rstl::single_ptr< CElementGen > x240_smokeGen;
|
|
|
|
rstl::single_ptr< CElementGen > x244_chargeFx;
|
|
|
|
bool x248_24_loaded : 1;
|
|
|
|
bool x248_25_inEndFx : 1;
|
|
|
|
|
|
|
|
void ReInitVariables();
|
2022-10-06 10:38:13 +00:00
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CIceBeam, 0x24c)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CICEBEAM
|