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 07:21:28 +00:00
|
|
|
void Start(CBodyController& bc, CStateManager& mgr);
|
|
|
|
pas::EAnimationState UpdateBody(float dt, CBodyController& bc, CStateManager& mgr);
|
|
|
|
void Shutdown(CBodyController&);
|
|
|
|
bool IsMoving() const;
|
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
|