diff options
| author | Trueffel <106771418+Trueffeloot@users.noreply.github.com> | 2023-02-20 05:39:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-19 21:39:09 -0700 |
| commit | 8471d1d6ccb714dbf5968b2ad9da8b1be6b4919e (patch) | |
| tree | 1d138c8ef3a19981788f12b247d3cc4afd1d2905 /include | |
| parent | d58a6f5b357b5d636556c2472db205a620a6c0f3 (diff) | |
d_a_tag_attention & d_a_tag_spring OK (#297)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.h | 38 | ||||
| -rw-r--r-- | include/rel/d/a/tag/d_a_tag_hinit/d_a_tag_hinit.h | 2 | ||||
| -rw-r--r-- | include/rel/d/a/tag/d_a_tag_spring/d_a_tag_spring.h | 18 |
3 files changed, 56 insertions, 2 deletions
diff --git a/include/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.h b/include/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.h index dae96544be..cb161f80c6 100644 --- a/include/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.h +++ b/include/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.h @@ -1,6 +1,42 @@ #ifndef D_A_TAG_ATTENTION_H #define D_A_TAG_ATTENTION_H -#include "dolphin/types.h" +#include "d/com/d_com_inf_game.h" +#include "d/d_procname.h" +#include "dol2asm.h" +#include "f_op/f_op_actor_mng.h" + +class daAttp_c : public fopAc_ac_c { +public: + /* 804D5318 */ int Create(); + /* 804D5354 */ int create(); + /* 804D53AC */ int execute(); + /* 804D568C */ int draw(); + /* 804D5694 */ int _delete(); +}; // Size: 0x568 + +namespace daAttp_prm { +static inline u32 getArg0(daAttp_c* pActor) { + return fopAcM_GetParam(pActor) & 3; +} +static inline u32 getArg1(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 2) & 3; +} +static inline u32 getArg2(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 4) & 7; +} +static inline u32 getArg3(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 7) & 1; +} +static inline u32 getArg4(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 8) & 1; +} +static inline u32 getSw1(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 0x10) & 0xff; +} +static inline u32 getSw2(daAttp_c* pActor) { + return (fopAcM_GetParam(pActor) >> 0x18); +} +} // namespace daAttp_prm #endif /* D_A_TAG_ATTENTION_H */ diff --git a/include/rel/d/a/tag/d_a_tag_hinit/d_a_tag_hinit.h b/include/rel/d/a/tag/d_a_tag_hinit/d_a_tag_hinit.h index fbefe37b54..3f6ef214fc 100644 --- a/include/rel/d/a/tag/d_a_tag_hinit/d_a_tag_hinit.h +++ b/include/rel/d/a/tag/d_a_tag_hinit/d_a_tag_hinit.h @@ -1,7 +1,9 @@ #ifndef D_A_TAG_HINIT_H #define D_A_TAG_HINIT_H +#include "d/com/d_com_inf_game.h" #include "f_op/f_op_actor.h" +#include "rel/d/a/d_a_horse/d_a_horse.h" class daTagHinit_c : public fopAc_ac_c { public: diff --git a/include/rel/d/a/tag/d_a_tag_spring/d_a_tag_spring.h b/include/rel/d/a/tag/d_a_tag_spring/d_a_tag_spring.h index 544846a30c..7d602f033c 100644 --- a/include/rel/d/a/tag/d_a_tag_spring/d_a_tag_spring.h +++ b/include/rel/d/a/tag/d_a_tag_spring/d_a_tag_spring.h @@ -1,6 +1,22 @@ #ifndef D_A_TAG_SPRING_H #define D_A_TAG_SPRING_H -#include "dolphin/types.h" +#include "d/com/d_com_inf_game.h" +#include "d/d_procname.h" +#include "f_op/f_op_actor_mng.h" + +class daTagSpring_c : public fopAc_ac_c { +public: + /* 805A6A58 */ void initBaseMtx(); + /* 805A6A78 */ void setBaseMtx(); + /* 805A6AD0 */ int Create(); + /* 805A6AF4 */ int create(); + /* 805A6B5C */ int execute(); + /* 805A6C84 */ u8 checkArea(); + /* 805A6DFC */ int _delete(); + u32 getSwbit() { return fopAcM_GetParamBit(this, 0, 8); } + /* 0x568 */ u8 mTimer; + +}; // Size: 0x56C #endif /* D_A_TAG_SPRING_H */ |
