summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2025-01-02 20:43:05 +0200
committerGitHub <noreply@github.com>2025-01-02 11:43:05 -0700
commitfac61aaf40fa9b8f868fd3dc179c67b332a747f0 (patch)
tree32a803c4f55735b1629614eec5d431ee94496312 /include
parentc67489d3da50e45a844f68788d12b59a8dadbe86 (diff)
d_a_obj_rstair OK (#2280)
Diffstat (limited to 'include')
-rw-r--r--include/d/actor/d_a_obj_rstair.h62
1 files changed, 53 insertions, 9 deletions
diff --git a/include/d/actor/d_a_obj_rstair.h b/include/d/actor/d_a_obj_rstair.h
index 50dc9ac0a3..899f46ede7 100644
--- a/include/d/actor/d_a_obj_rstair.h
+++ b/include/d/actor/d_a_obj_rstair.h
@@ -1,6 +1,7 @@
#ifndef D_A_OBJ_RSTAIR_H
#define D_A_OBJ_RSTAIR_H
+#include "d/d_bg_s_movebg_actor.h"
#include "f_op/f_op_actor_mng.h"
/**
@@ -11,14 +12,29 @@
* @details
*
*/
-class daObjRotStair_c : public fopAc_ac_c {
+class daObjRotStair_c : public dBgS_MoveBgActor {
public:
+ typedef void (daObjRotStair_c::*actionFunc)();
+ typedef void (daObjRotStair_c::*modeFunc)();
+
+ enum Mode {
+ MODE_WAIT,
+ MODE_ROTATE,
+ };
+
+ enum Action {
+ ACTION_WAIT,
+ ACTION_ORDER_EVENT,
+ ACTION_EVENT,
+ ACTION_DEAD,
+ };
+
/* 80CC1558 */ void initBaseMtx();
/* 80CC1614 */ void setBaseMtx();
- /* 80CC16B0 */ void Create();
- /* 80CC17F0 */ void CreateHeap();
- /* 80CC1A28 */ void create1st();
- /* 80CC1AF0 */ void Execute(f32 (**)[3][4]);
+ /* 80CC16B0 */ int Create();
+ /* 80CC17F0 */ int CreateHeap();
+ /* 80CC1A28 */ int create1st();
+ /* 80CC1AF0 */ int Execute(Mtx**);
/* 80CC1BA4 */ void move_proc_call();
/* 80CC1C30 */ void init_modeWait();
/* 80CC1CF0 */ void modeWait();
@@ -29,15 +45,43 @@ public:
/* 80CC2158 */ void actionOrderEvent();
/* 80CC21C0 */ void actionEvent();
/* 80CC221C */ void actionDead();
- /* 80CC2220 */ void checkChangeSw();
+ /* 80CC2220 */ int checkChangeSw();
/* 80CC22A0 */ void offSwitch(int);
/* 80CC2310 */ void onWaterModel();
/* 80CC2364 */ void offWaterModel();
- /* 80CC23C4 */ void Draw();
- /* 80CC25C0 */ void Delete();
+ /* 80CC23C4 */ int Draw();
+ /* 80CC25C0 */ int Delete();
+
+ u8 getSwNo() { return mSwNo; }
+ u8 getSwNo2() { return (mSwNo >> 8) & 0xff; }
+ u8 getSwNo3() { return fopAcM_GetParamBit(this, 8, 8); }
+ u8 getEventID() { return fopAcM_GetParamBit(this, 0, 8); }
+ void setAction(u8 action) { mAction = action; }
private:
- /* 0x568 */ u8 field_0x568[0x5e4 - 0x568];
+ /* 0x5A0 */ request_of_phase_process_class mPhase;
+ /* 0x5A8 */ J3DModel* mModel;
+ /* 0x5AC */ J3DModel* mWaterModels[2];
+ /* 0x5B4 */ mDoExt_btkAnm* mBtks[2];
+ /* 0x5BC */ bool mWaterModelOn;
+ /* 0x5C0 */ dBgW* mWaterBgw;
+ /* 0x5C4 */ int field_0x5c4;
+ /* 0x5C8 */ s16 field_0x5c8;
+ /* 0x5CA */ u16 mSwNo;
+ /* 0x5CC */ u8 mInit;
+ /* 0x5CD */ u8 mMode;
+ /* 0x5CE */ s16 mAdditionalRotY;
+ /* 0x5D0 */ s16 mAngleStep;
+ /* 0x5D2 */ s16 mStepTarget;
+ /* 0x5D4 */ s16 mTargetAngle;
+ /* 0x5D6 */ u8 mIsSw[4];
+ /* 0x5DA */ s16 field_0x5da;
+ /* 0x5DC */ s16 field_0x5dc;
+ /* 0x5DE */ s16 mEventId;
+ /* 0x5E0 */ u8 mMapToolId;
+ /* 0x5E1 */ u8 mAction;
+ /* 0x5E2 */ bool field_0x5e2;
+ /* 0x5E3 */ s8 field_0x5e3;
};
STATIC_ASSERT(sizeof(daObjRotStair_c) == 0x5e4);