summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarco_21 <144170194+carter-ktb21@users.noreply.github.com>2025-09-09 15:53:13 -0700
committerGitHub <noreply@github.com>2025-09-10 01:53:13 +0300
commitbfeb1c048be57324bf8c797ea23949ceb8d5b864 (patch)
treee8092af60e4640ec470c73ea304cb2184927a1a1 /include
parent1e50c256717b47c020abe7b98aa7dfcfaf65ee72 (diff)
d_a_e_zm matching (#2638)
* initial work * a little more work * matching * pr cleanup * changed 'subtype' to 'argument' * fixed debug error
Diffstat (limited to 'include')
-rw-r--r--include/d/actor/d_a_e_zm.h68
-rw-r--r--include/d/actor/d_a_npc_cdn3.h2
-rw-r--r--include/d/actor/d_a_npc_wrestler.h2
-rw-r--r--include/d/actor/d_a_obj_kago.h2
-rw-r--r--include/d/actor/d_a_obj_sekizoa.h2
-rw-r--r--include/d/actor/d_a_obj_warp_obrg.h2
-rw-r--r--include/d/actor/d_a_obj_yobikusa.h2
-rw-r--r--include/d/actor/d_a_passer_mng.h2
-rw-r--r--include/f_op/f_op_actor.h2
9 files changed, 60 insertions, 24 deletions
diff --git a/include/d/actor/d_a_e_zm.h b/include/d/actor/d_a_e_zm.h
index 2cb8a146c6..dc5760a0f0 100644
--- a/include/d/actor/d_a_e_zm.h
+++ b/include/d/actor/d_a_e_zm.h
@@ -1,6 +1,9 @@
#ifndef D_A_E_ZM_H
#define D_A_E_ZM_H
+#include "d/d_bg_s_acch.h"
+#include "d/d_cc_d.h"
+#include "d/d_cc_uty.h"
#include "f_op/f_op_actor_mng.h"
/**
@@ -10,13 +13,15 @@
*
* @details
*
- */
+*/
+
class daE_ZM_c : public fopEn_enemy_c {
- /* 8082F9A0 */ void draw();
+public:
+ /* 8082F9A0 */ int draw();
/* 8082FBD4 */ void setBck(int, u8, f32, f32);
/* 8082FC80 */ void setActionMode(int, int);
/* 8082FC8C */ void damage_check();
- /* 808301E0 */ void mCutTypeCheck();
+ /* 808301E0 */ bool mCutTypeCheck();
/* 8083033C */ void executeSearchPoint();
/* 80830398 */ void executeWait();
/* 808309DC */ void executeMove();
@@ -27,21 +32,52 @@ class daE_ZM_c : public fopEn_enemy_c {
/* 80831930 */ void action();
/* 80831B08 */ void mtx_set();
/* 80831B9C */ void cc_set();
- /* 80831D64 */ void execute();
- /* 80831E9C */ void _delete();
- /* 80831F4C */ void CreateHeap();
- /* 80832064 */ void create();
-
-private:
- /* 0x5ac */ u8 field_0x5ac[0xc3c - 0x5ac];
-};
+ /* 80831D64 */ int execute();
+ /* 80831E9C */ int _delete();
+ /* 80831F4C */ int CreateHeap();
+ /* 80832064 */ cPhs__Step create();
-STATIC_ASSERT(sizeof(daE_ZM_c) == 0xc3c);
-
-class daE_ZM_HIO_c {
- /* 8082F94C */ daE_ZM_HIO_c();
- /* 80832800 */ ~daE_ZM_HIO_c();
+ /* 0x5AC */ request_of_phase_process_class mPhase;
+ /* 0x5B4 */ mDoExt_McaMorfSO* mpModelMorf;
+ /* 0x5B8 */ Z2CreatureEnemy mSound;
+ /* 0x65C */ int mAction;
+ /* 0x660 */ int mMode;
+ /* 0x664 */ u8 field_0x664[0x668 - 0x664];
+ /* 0x668 */ int mAnm;
+ /* 0x66C */ cXyz field_0x66c[10];
+ /* 0x6E4 */ u8 field_0x6e4;
+ /* 0x6E5 */ u8 field_0x6e5;
+ /* 0x6E6 */ u8 field_0x6e6[0x6f4 - 0x6e6];
+ /* 0x6F4 */ cXyz field_0x6f4;
+ /* 0x700 */ csXyz field_0x700;
+ /* 0x708 */ f32 mColor[3];
+ /* 0x714 */ f32 field_0x714;
+ /* 0x718 */ f32 field_0x718;
+ /* 0x71C */ f32 field_0x71c;
+ /* 0x720 */ s16 field_0x720;
+ /* 0x722 */ u8 field_0x722;
+ /* 0x723 */ u8 field_0x723;
+ /* 0x724 */ u8 field_0x724;
+ /* 0x725 */ u8 mTimer;
+ /* 0x726 */ u8 arg0;
+ /* 0x727 */ u8 arg1;
+ /* 0x728 */ u8 arg2;
+ /* 0x729 */ u8 bitSw;
+ /* 0x72A */ u8 bitSw2;
+ /* 0x72B */ u8 field_0x72b;
+ /* 0x72C */ u8 field_0x72c;
+ /* 0x72D */ u8 field_0x72d;
+ /* 0x730 */ u32 field_0x730[3];
+ /* 0x73C */ dBgS_AcchCir mAcchCir;
+ /* 0x77C */ dBgS_ObjAcch mBgc;
+ /* 0x954 */ dCcD_Stts mStts;
+ /* 0x990 */ dCcD_Cyl mCyl;
+ /* 0xACC */ dCcD_Sph mSph;
+ /* 0xC04 */ dCcU_AtInfo mAtInfo;
+ /* 0xC28 */ bool field_0xc28;
+ /* 0xC29 */ u8 field_0xc29[0xc3c - 0xc29];
};
+STATIC_ASSERT(sizeof(daE_ZM_c) == 0xc3c);
#endif /* D_A_E_ZM_H */
diff --git a/include/d/actor/d_a_npc_cdn3.h b/include/d/actor/d_a_npc_cdn3.h
index 22e9e3a3dc..283baa8efe 100644
--- a/include/d/actor/d_a_npc_cdn3.h
+++ b/include/d/actor/d_a_npc_cdn3.h
@@ -139,7 +139,7 @@ public:
int getGroupID() { return fopAcM_GetParam(this) & 0xff; }
u8 getPathID() { return fopAcM_GetParam(this) >> 24; }
int isStop() { return TRUE; }
- int getType() { return subtype & 0x7f; }
+ int getType() { return argument & 0x7f; }
int getSeqNum() { return shape_angle.x & 0x3f; }
int getFlowNodeNum() { return shape_angle.z; }
u16 getStartTime() { return (fopAcM_GetParam(this) >> 8) & 0xff; }
diff --git a/include/d/actor/d_a_npc_wrestler.h b/include/d/actor/d_a_npc_wrestler.h
index 6ff15d1c0c..d7e3116911 100644
--- a/include/d/actor/d_a_npc_wrestler.h
+++ b/include/d/actor/d_a_npc_wrestler.h
@@ -211,7 +211,7 @@ public:
s16 getMessageNo() { return (fopAcM_GetParam(this) >> 8) & 0xFFFF; }
int getWrestlerAction() { return mWrestlerAction; }
- u8 getType() { return subtype & 0x7F; }
+ u8 getType() { return argument & 0x7F; }
u8 getWrestlerType() { return getType(); }
bool chkAction(actionFunc i_action) { return i_action == field_0xdcc; }
bool selectAction();
diff --git a/include/d/actor/d_a_obj_kago.h b/include/d/actor/d_a_obj_kago.h
index 2efea3318a..095f3b9984 100644
--- a/include/d/actor/d_a_obj_kago.h
+++ b/include/d/actor/d_a_obj_kago.h
@@ -37,7 +37,7 @@ public:
int iVar1 = fopAcM_GetParam(this) & 0xFF;
u8 rv;
- switch ((subtype & 127)) {
+ switch ((argument & 127)) {
case 0:
switch (iVar1) {
case 0:
diff --git a/include/d/actor/d_a_obj_sekizoa.h b/include/d/actor/d_a_obj_sekizoa.h
index ad8ba62ea0..1f4ffad748 100644
--- a/include/d/actor/d_a_obj_sekizoa.h
+++ b/include/d/actor/d_a_obj_sekizoa.h
@@ -159,7 +159,7 @@ public:
int prm = fopAcM_GetParam(this) >> 0x1C;
u8 type;
- switch (subtype) {
+ switch (argument) {
case 0:
switch (prm) {
case 1:
diff --git a/include/d/actor/d_a_obj_warp_obrg.h b/include/d/actor/d_a_obj_warp_obrg.h
index 784ab467f9..d5518607c0 100644
--- a/include/d/actor/d_a_obj_warp_obrg.h
+++ b/include/d/actor/d_a_obj_warp_obrg.h
@@ -46,7 +46,7 @@ public:
/* 80D2B5C8 */ virtual int Draw();
/* 80D2B6C0 */ virtual int Delete();
- u8 getNameArg() { return subtype; }
+ u8 getNameArg() { return argument; }
u8 getSwNo() { return fopAcM_GetParamBit(this, 0, 8); }
u8 getSwNo2() { return fopAcM_GetParamBit(this, 8, 8); }
u8 getArg0() { return fopAcM_GetParamBit(this, 16, 8); }
diff --git a/include/d/actor/d_a_obj_yobikusa.h b/include/d/actor/d_a_obj_yobikusa.h
index 7a61d4eb58..fa17a5c7bc 100644
--- a/include/d/actor/d_a_obj_yobikusa.h
+++ b/include/d/actor/d_a_obj_yobikusa.h
@@ -80,7 +80,7 @@ public:
static actionFuncEntry ActionTable[3];
const attributes* attr() const { return &M_attr; }
- int getType() { return subtype & 0x7F; }
+ int getType() { return argument & 0x7F; }
u8 getPathID() { return fopAcM_GetParam(this); }
bool isPlayerCorrect() { return (s8)(u8)(fopAcM_GetParam(this) >> 8) > 0; }
diff --git a/include/d/actor/d_a_passer_mng.h b/include/d/actor/d_a_passer_mng.h
index c7f45fcd85..38b59ef857 100644
--- a/include/d/actor/d_a_passer_mng.h
+++ b/include/d/actor/d_a_passer_mng.h
@@ -23,7 +23,7 @@ public:
/* 80D467C0 */ void create_init();
~daPasserMng_c() { delete [] childProcIds; }
- u8 getDetailLevel() { return subtype; }
+ u8 getDetailLevel() { return argument; }
u8 getPathID() { return fopAcM_GetParam(this); }
u8 getIntervalTime() { return fopAcM_GetParam(this) >> 24; }
int getStartTime() { return (fopAcM_GetParam(this) >> 8) & 0xff; }
diff --git a/include/f_op/f_op_actor.h b/include/f_op/f_op_actor.h
index 7d223d5b97..af2c40084f 100644
--- a/include/f_op/f_op_actor.h
+++ b/include/f_op/f_op_actor.h
@@ -246,7 +246,7 @@ public:
/* 0x496 */ u8 group;
/* 0x497 */ u8 cullType;
/* 0x498 */ u8 demoActorID;
- /* 0x499 */ s8 subtype;
+ /* 0x499 */ s8 argument;
/* 0x49A */ u8 carryType;
/* 0x49C */ u32 actor_status;
/* 0x4A0 */ u32 actor_condition;