mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 09:37:01 +00:00
20
include/MetroidPrime/BodyState/CBSTaunt.hpp
Normal file
20
include/MetroidPrime/BodyState/CBSTaunt.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _CBSTAUNT
|
||||
#define _CBSTAUNT
|
||||
|
||||
#include "MetroidPrime/BodyState/CBodyState.hpp"
|
||||
|
||||
class CBSTaunt : public CBodyState {
|
||||
public:
|
||||
CBSTaunt();
|
||||
~CBSTaunt();
|
||||
|
||||
void Start(CBodyController& bc, CStateManager& mgr) override;
|
||||
pas::EAnimationState UpdateBody(float dt, CBodyController& bc, CStateManager& mgr) override;
|
||||
void Shutdown(CBodyController&) override;
|
||||
|
||||
private:
|
||||
pas::EAnimationState GetBodyStateTransition(float dt, CBodyController& bc);
|
||||
|
||||
};
|
||||
|
||||
#endif // _CBSTAUNT
|
||||
@@ -10,6 +10,8 @@ class CActor;
|
||||
class CPASDatabase;
|
||||
class CQuaternion;
|
||||
class CAnimPlaybackParms;
|
||||
class CPASAnimParmData;
|
||||
class CRandom16;
|
||||
|
||||
class CBodyController {
|
||||
|
||||
@@ -25,6 +27,7 @@ public:
|
||||
void SetCurrentAnimation(const CAnimPlaybackParms& parms, bool loop, bool noTrans);
|
||||
void FaceDirection(const CVector3f& v0, float dt);
|
||||
void EnableAnimation(bool enable);
|
||||
void PlayBestAnimation(const CPASAnimParmData& parms, CRandom16& r);
|
||||
|
||||
void SetFallState(pas::EFallState state); // { x2f0_fallState = state; }
|
||||
pas::EFallState GetFallState() const; // { return x2f0_fallState; }
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
, xc_24_loopAnim(false)
|
||||
, xc_25_timedLoop(false)
|
||||
, x10_loopDur(0.f) {}
|
||||
|
||||
|
||||
explicit CBCScriptedCmd(int i, bool b1, bool b2, float f)
|
||||
: CBodyStateCmd(kBSC_Scripted)
|
||||
, x8_anim(i)
|
||||
@@ -86,13 +86,26 @@ public:
|
||||
|
||||
//
|
||||
|
||||
class CBCGetupCmd : public CBodyStateCmd {
|
||||
pas::EGetupType x8_type;
|
||||
class CBCTauntCmd : public CBodyStateCmd {
|
||||
public:
|
||||
explicit CBCTauntCmd() : CBodyStateCmd(kBSC_Taunt), x8_type(pas::kTT_Invalid) {}
|
||||
explicit CBCTauntCmd(pas::ETauntType type) : CBodyStateCmd(kBSC_Taunt), x8_type(type) {}
|
||||
pas::ETauntType GetTauntType() const { return x8_type; }
|
||||
|
||||
private:
|
||||
pas::ETauntType x8_type;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
class CBCGetupCmd : public CBodyStateCmd {
|
||||
public:
|
||||
explicit CBCGetupCmd() : CBodyStateCmd(kBSC_Getup), x8_type(pas::kGetup_Invalid) {}
|
||||
explicit CBCGetupCmd(pas::EGetupType type) : CBodyStateCmd(kBSC_Getup), x8_type(type) {}
|
||||
pas::EGetupType GetGetupType() const { return x8_type; }
|
||||
|
||||
private:
|
||||
pas::EGetupType x8_type;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user