d_a_obj_catdoor OK (#2083)

* Decomp OK

* Cleanup pass, removing unused asm

* Updating progress

---------

Co-authored-by: GinNoOokami <noreply>
This commit is contained in:
Jeff Padgham
2024-03-03 07:21:16 -08:00
committed by GitHub
parent 9b87f613c8
commit 7ba8c332c7
5 changed files with 157 additions and 421 deletions
@@ -1,5 +1,44 @@
#ifndef D_A_OBJ_CATDOOR_H
#define D_A_OBJ_CATDOOR_H
#include "f_op/f_op_actor.h"
#include "f_op/f_op_actor_mng.h"
#include "SSystem/SComponent/c_phase.h"
#include "d/bg/d_bg_w.h"
struct daObjCatDoor_Door_c {
/* 0x00 */ J3DModel* pmodel;
/* 0x04 */ dBgW bgw;
/* 0xe0 */ Mtx mtx;
/* 0xf4 */ s16 angle;
};
class daObjCatDoor_c : public fopAc_ac_c {
public:
inline ~daObjCatDoor_c();
/* 80BC42B8 */ const s16* attr() const;
/* 80BC43F4 */ void initBaseMtx();
/* 80BC4454 */ void setBaseMtx();
/* 80BC4560 */ void calcOpen();
u8 getSwitchNo() { return fopAcM_GetParam(this); }
inline int createHeap();
inline int draw();
inline int execute();
inline int create();
inline void create_init();
private:
/* 0x568 */ request_of_phase_process_class mPhaseReq;
/* 0x570 */ daObjCatDoor_Door_c mDoor1;
/* 0x660 */ daObjCatDoor_Door_c mDoor2;
/* 0x760 */ Mtx mMtx;
/* 0x790 */ s16 mRotSpeed;
public:
static u32 const M_attr;
};
#endif /* D_A_OBJ_CATDOOR_H */