Match and link CBSDie

Former-commit-id: 8996496d00
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-28 11:57:00 +03:00
parent c40e91f133
commit a021c59f55
6 changed files with 91 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
#ifndef _CBSDIE
#define _CBSDIE
#include "MetroidPrime/BodyState/CBodyState.hpp"
class CBSDie : public CBodyState {
public:
CBSDie();
~CBSDie();
bool IsDead() const override;
bool IsDying() const override;
void Start(CBodyController& bc, CStateManager& mgr) override;
pas::EAnimationState UpdateBody(float dt, CBodyController& bc, CStateManager& mgr) override;
void Shutdown(CBodyController&) override;
private:
float x4_remTime;
bool x8_isDead;
};
#endif // _CBSDIE

View File

@@ -24,9 +24,12 @@ public:
void SetDeltaRotation(const CQuaternion& q);
void SetCurrentAnimation(const CAnimPlaybackParms& parms, bool loop, bool noTrans);
void FaceDirection(const CVector3f& v0, float dt);
void EnableAnimation(bool enable);
bool IsAnimationOver() const { return x300_24_animationOver; }
pas::EFallState GetFallState() const; // { return x2f0_fallState; }
pas::ELocomotionType GetLocomotionType() const { return x2ec_locomotionType; }
bool IsAnimationOver() const { return x300_24_animationOver; }
bool ShouldPlayDeathAnims() const { return x300_28_playDeathAnims; }
private:
CActor& x0_actor;
@@ -39,6 +42,10 @@ private:
int x2f8_curAnim ;
float x2fc_turnSpeed;
bool x300_24_animationOver : 1;
bool x300_25_active : 1;
bool x300_26_frozen : 1;
bool x300_27_hasBeenFrozen : 1;
bool x300_28_playDeathAnims : 1;
};
#endif // _CBODYCONTROLLER