summaryrefslogtreecommitdiff
path: root/include/rel/d
diff options
context:
space:
mode:
authordoop <56421834+dooplecks@users.noreply.github.com>2024-05-14 16:43:47 -0400
committerGitHub <noreply@github.com>2024-05-14 14:43:47 -0600
commit35484fb2c7c90c41ea461ae9d37974e360b2ad64 (patch)
tree1ff36fb7fe1c5b18d7edcb0e7ab845b71b4b6ee6 /include/rel/d
parent486e578065a0d5aa41bcae56ee0bc1b9ed0d6e42 (diff)
d_a_tag_yami work (#2154)
Diffstat (limited to 'include/rel/d')
-rw-r--r--include/rel/d/a/tag/d_a_tag_yami/d_a_tag_yami.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/rel/d/a/tag/d_a_tag_yami/d_a_tag_yami.h b/include/rel/d/a/tag/d_a_tag_yami/d_a_tag_yami.h
index 38eeb07cef..1ea30c0d8f 100644
--- a/include/rel/d/a/tag/d_a_tag_yami/d_a_tag_yami.h
+++ b/include/rel/d/a/tag/d_a_tag_yami/d_a_tag_yami.h
@@ -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 */