prime/include/MetroidPrime/BodyState/CBSKnockBack.hpp

25 lines
600 B
C++
Raw Normal View History

2022-10-28 16:12:27 +00:00
#ifndef _CBSKNOCKBACK
#define _CBSKNOCKBACK
#include "MetroidPrime/BodyState/CBodyState.hpp"
class CBSKnockBack : public CBodyState {
public:
CBSKnockBack();
~CBSKnockBack();
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&) override;
bool IsMoving() const override;
2022-10-28 16:12:27 +00:00
private:
float x4_curTime;
float x8_rotateSpeed;
float xc_remTime;
pas::EAnimationState GetBodyStateTransition(float dt, CBodyController& bc);
};
#endif // _CBSKNOCKBACK