d_a_obj_pinwheel OK

This commit is contained in:
swekka
2025-09-18 23:31:31 +02:00
parent f475873a90
commit 5d91704858
4 changed files with 192 additions and 32 deletions
+25 -1
View File
@@ -2,6 +2,10 @@
#define D_A_OBJ_PINWHEEL_H
#include "d/a/obj/d_a_obj_base.h"
#include "d/col/bg/d_bg_w.h"
#include "d/col/cc/d_cc_d.h"
#include "m/m3d/m_smdl.h"
#include "nw4r/g3d/res/g3d_resfile.h"
#include "s/s_State.hpp"
#include "s/s_StateMgr.hpp"
@@ -10,13 +14,33 @@ public:
dAcOpinwheel_c() : mStateMgr(*this, sStateID::null) {}
virtual ~dAcOpinwheel_c() {}
virtual bool createHeap() override;
virtual int create() override;
virtual int doDelete() override;
virtual int actorExecute() override;
virtual int draw() override;
STATE_FUNC_DECLARE(dAcOpinwheel_c, Wait);
STATE_FUNC_DECLARE(dAcOpinwheel_c, Acceleration);
STATE_FUNC_DECLARE(dAcOpinwheel_c, RollMaxSpeed);
STATE_FUNC_DECLARE(dAcOpinwheel_c, Deceleration);
private:
/* 0x??? */ STATE_MGR_DECLARE(dAcOpinwheel_c);
bool isBeingBlown();
static s16 decrement(s16 *value);
/* 0x330 */ nw4r::g3d::ResFile mResFile;
/* 0x334 */ m3d::smdl_c mMdl;
/* 0x350 */ dBgW mBgW;
/* 0x560 */ dCcD_Sph mSph;
/* 0x6B0 */ STATE_MGR_DECLARE(dAcOpinwheel_c);
/* 0x6EC */ s16 mStateTimer;
/* 0x6EE */ s16 mRotationSpeed;
/* 0x6F0 */ bool mBeingBlown;
static dCcD_SrcSph sSphSrc;
static const u32 unused;
};
#endif