summaryrefslogtreecommitdiff
path: root/include/rel/d
diff options
context:
space:
mode:
authorJacob Patzer <37888505+jakepatzer@users.noreply.github.com>2023-10-24 17:10:48 -0700
committerGitHub <noreply@github.com>2023-10-24 17:10:48 -0700
commit95d103b237b2d46722ecd2ee866f12440dcf9da9 (patch)
treecf6335b410a15d6d865549be57e0221cd6edab55 /include/rel/d
parentd61ae29942c6fa190fbd78932c98b82cd90538b1 (diff)
d_a_tag_push OK (#1967)
Diffstat (limited to 'include/rel/d')
-rw-r--r--include/rel/d/a/tag/d_a_tag_push/d_a_tag_push.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/rel/d/a/tag/d_a_tag_push/d_a_tag_push.h b/include/rel/d/a/tag/d_a_tag_push/d_a_tag_push.h
index 1f3aaaffe9..4f4f7e945a 100644
--- a/include/rel/d/a/tag/d_a_tag_push/d_a_tag_push.h
+++ b/include/rel/d/a/tag/d_a_tag_push/d_a_tag_push.h
@@ -1,6 +1,44 @@
#ifndef D_A_TAG_PUSH_H
#define D_A_TAG_PUSH_H
+#include "d/a/d_a_npc.h"
#include "dolphin/types.h"
+#include "f_op/f_op_actor_mng.h"
+
+class daTag_Push_c : public fopAc_ac_c {
+public:
+ /* 804902B8 */ static void* srchActor(void*, void*);
+ /* 80490418 */ int create();
+ /* 804904D4 */ int Delete();
+ /* 804904DC */ int Execute();
+ /* 804906BC */ int Draw();
+ /* 804906C4 */ int isDelete();
+ /* 80490724 */ int chkPointInArea(cXyz);
+
+ u32 getId() {
+ u32 id = fopAcM_GetParam(this) >> 0x18;
+ if (id != 0xFF) {
+ return id;
+ }
+ return -1;
+ }
+
+ u8 getBitSW() { return fopAcM_GetParam(this) & 0xFF; }
+
+ u8 getBitSW2() { return (fopAcM_GetParam(this) >> 8) & 0xFF; }
+
+ u32 getFlowNodeNo() {
+ if (orig.angle.x == 0xFFFF) {
+ return 0xFFFFFFFF;
+ } else {
+ return orig.angle.x & 0xFFFF;
+ }
+ }
+
+ /* 0x568 */ daNpcT_ActorMngr_c mActorMngr;
+
+ /* 804908CC */ virtual ~daTag_Push_c();
+};
+STATIC_ASSERT(sizeof(daTag_Push_c) == 0x574);
#endif /* D_A_TAG_PUSH_H */