diff options
| author | TakaRikka <takarikka@outlook.com> | 2023-06-28 15:48:59 -0700 |
|---|---|---|
| committer | TakaRikka <takarikka@outlook.com> | 2023-06-28 15:48:59 -0700 |
| commit | dae37fdbbb757cbf42eb636816f01ef076e2c1aa (patch) | |
| tree | 33a7c1fb79ef315a189859c269e035b8a7a91261 /include | |
| parent | 47edd6719044926e44926dfada578285a56cdb00 (diff) | |
d_a_tag_mist OK
Diffstat (limited to 'include')
| -rw-r--r-- | include/rel/d/a/tag/d_a_tag_mist/d_a_tag_mist.h | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/include/rel/d/a/tag/d_a_tag_mist/d_a_tag_mist.h b/include/rel/d/a/tag/d_a_tag_mist/d_a_tag_mist.h index a89312ecd4..b924b54996 100644 --- a/include/rel/d/a/tag/d_a_tag_mist/d_a_tag_mist.h +++ b/include/rel/d/a/tag/d_a_tag_mist/d_a_tag_mist.h @@ -1,6 +1,47 @@ #ifndef D_A_TAG_MIST_H #define D_A_TAG_MIST_H -#include "dolphin/types.h" +#include "f_op/f_op_actor_mng.h" + +class daTagMist_c : public fopAc_ac_c { +public: + /* 8048F258 */ void offSw(); + /* 8048F2C4 */ void onMySw(); + /* 8048F310 */ BOOL isMySw(); + /* 8048F370 */ int Create(); + /* 8048F444 */ int create(); + /* 8048F558 */ int execute(); + /* 8048F690 */ int _delete(); + + /* 80031CF0 */ static u8 getPlayerNo(); + static void setPlayerNo(u8 i_playerNo) { mPlayerNo = i_playerNo; } + + static u8 mPlayerNo; + + /* 0x568 */ u8 unused_0x568[0x570 - 0x568]; + /* 0x570 */ cXyz mVertices[4]; + /* 0x5A0 */ u8 mPlayerTouched; + /* 0x5A1 */ u8 mInitParams; + /* 0x5A2 */ u16 field_0x5a2; + /* 0x5A4 */ u16 field_0x5a4; +}; // Size: 0x5A8 + +namespace daTagMist_prm { +inline u8 getSwNoNum(daTagMist_c* i_this) { + return fopAcM_GetParam(i_this) >> 0x10; +} +inline u8 getMySwNo(daTagMist_c* i_this) { + return fopAcM_GetParam(i_this) >> 0x8; +} +inline u8 getTopSwNo(daTagMist_c* i_this) { + return fopAcM_GetParam(i_this); +} +inline u8 getExitNo(daTagMist_c* i_this) { + return (fopAcM_GetParam(i_this) >> 0x18) & 0x3F; +} +inline int getSwNo2(daTagMist_c* i_this) { + return i_this->field_0x5a2 & 0xFF; +} +} // namespace daTagMist_prm #endif /* D_A_TAG_MIST_H */ |
