prime/include/MetroidPrime/BodyState/CABSReaction.hpp

29 lines
751 B
C++
Raw Normal View History

2022-10-25 15:43:42 +00:00
#ifndef _CABSREACTION
#define _CABSREACTION
#include "MetroidPrime/BodyState/CAdditiveBodyState.hpp"
class CABSReaction : public CAdditiveBodyState {
public:
CABSReaction();
2022-10-28 12:33:10 +00:00
~CABSReaction();
2023-02-06 17:01:01 +00:00
void Start(CBodyController& bc, CStateManager& mgr) override;
pas::EAnimationState UpdateBody(float dt, CBodyController& bc, CStateManager& mgr) override;
void Shutdown(CBodyController& bc) override;
2022-10-28 12:33:10 +00:00
float GetWeight() const { return x4_weight; }
bool IsActive() const { return x10_active; }
private:
float x4_weight;
int x8_anim;
pas::EAdditiveReactionType xc_type;
bool x10_active;
pas::EAnimationState GetBodyStateTransition(float dt, CBodyController& bc);
void StopAnimation(CBodyController& bc);
2022-10-25 15:43:42 +00:00
};
#endif // _CABSREACTION