d_a_tag_yami work (#2154)

This commit is contained in:
doop
2024-05-14 16:43:47 -04:00
committed by GitHub
parent 486e578065
commit 35484fb2c7
19 changed files with 161 additions and 946 deletions
@@ -1,6 +1,49 @@
#ifndef D_A_TAG_YAMI_H
#define D_A_TAG_YAMI_H
#include "d/cc/d_cc_d.h"
#include "dolphin/types.h"
#include "f_op/f_op_actor_mng.h"
class daTagYami_c : public fopAc_ac_c {
public:
/* 80D659F8 */ int create();
/* 80D65C24 */ int Execute();
/* 80D65C60 */ void calcCoC(cXyz&);
/* 80D65D08 */ void col_set();
/* 80D65D0C */ u32 chk_CoHit();
/* 80D65D60 */ f32 getPlDist();
/* 80D65EEC */ void onMidnaTagSw();
/* 80D65F24 */ void offMidnaTagSw2();
/* 80D66100 */ void setCoC(cXyz i_coC) { mCoC = i_coC; }
u8 get_MTagSw() { return fopAcM_GetParamBit(this, 8, 8); }
u8 get_MTagSw2() { return fopAcM_GetParamBit(this, 16, 8); }
s32 get_prm() { return fopAcM_GetParam(this) & 0xff; }
void on_CoHit() {
mCyl.OnCoSetBit();
mCoHitValid = 1;
}
void off_CoHit() {
mCyl.OffCoSetBit();
mCoHitValid = 0;
}
f32 getCoR() { return mCoR; }
void setCoR(f32 i_value) { mCoR = i_value; }
void setCoH(f32 i_value) { mCoH = i_value; }
/* 0x568 */ dCcD_Cyl mCyl;
/* 0x6A4 */ dCcD_Stts mStts;
/* 0x6E0 */ u8 mCoHitValid;
/* 0x6E4 */ u32 mMTagSw;
/* 0x6E8 */ u32 mMTagSw2;
/* 0x6EC */ cXyz mCoC;
/* 0x6F8 */ f32 mCoH;
/* 0x6FC */ f32 mCoR;
/* 0x700 */ u32 mIsCoHit;
};
#endif /* D_A_TAG_YAMI_H */