summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2025-08-12 03:18:42 +0300
committerGitHub <noreply@github.com>2025-08-11 17:18:42 -0700
commit58a6d8d7931e982a4d00fe14d30f2bf325ac4e84 (patch)
treea2b9eaf0de5fc18ace2a3907241f196f2847a4d4 /include
parentddf4fc0677f6b93162389063168458244e14ac59 (diff)
d_a_obj_gomikabe OK (#2580)
* d_a_obj_gomikabe OK * Remove unneeded include
Diffstat (limited to 'include')
-rw-r--r--include/JSystem/JMath/JMATrigonometric.h4
-rw-r--r--include/d/actor/d_a_obj_gomikabe.h57
-rw-r--r--include/d/d_bg_s_acch.h4
3 files changed, 51 insertions, 14 deletions
diff --git a/include/JSystem/JMath/JMATrigonometric.h b/include/JSystem/JMath/JMATrigonometric.h
index fdbab33a1a..1b88975794 100644
--- a/include/JSystem/JMath/JMATrigonometric.h
+++ b/include/JSystem/JMath/JMATrigonometric.h
@@ -103,7 +103,7 @@ inline f32 acosDegree(f32 x) {
}
}; // namespace JMath
-inline f32 JMASCosShort(s16 v) {
+inline f32 JMACosShort(s16 v) {
return JMath::sincosTable_.cosShort(v);
}
inline f32 JMASinShort(s16 v) {
@@ -111,7 +111,7 @@ inline f32 JMASinShort(s16 v) {
}
inline f32 JMASCos(s16 v) {
- return JMASCosShort(v);
+ return JMACosShort(v);
}
inline f32 JMASSin(s16 v) {
return JMASinShort(v);
diff --git a/include/d/actor/d_a_obj_gomikabe.h b/include/d/actor/d_a_obj_gomikabe.h
index 06b891eb63..730e1c56c1 100644
--- a/include/d/actor/d_a_obj_gomikabe.h
+++ b/include/d/actor/d_a_obj_gomikabe.h
@@ -1,6 +1,9 @@
#ifndef D_A_OBJ_GOMIKABE_H
#define D_A_OBJ_GOMIKABE_H
+#include "d/d_bg_s_acch.h"
+#include "d/d_bg_s_movebg_actor.h"
+#include "d/d_cc_d.h"
#include "f_op/f_op_actor_mng.h"
/**
@@ -11,8 +14,13 @@
* @details
*
*/
-class daObjGOMIKABE_c : public fopAc_ac_c {
+class daObjGOMIKABE_c : public dBgS_MoveBgActor {
public:
+ enum Action {
+ ACTION_WAIT,
+ ACTION_BREAK,
+ };
+
/* 80BFE244 */ void initCcCylinder();
/* 80BFE2CC */ void SetCcCyl();
/* 80BFE47C */ void WaitAction();
@@ -22,27 +30,54 @@ public:
/* 80BFEB90 */ void SpeedSet();
/* 80BFED54 */ void BreakAction();
/* 80BFED74 */ void CheckCull();
- /* 80BFEE24 */ void checkViewArea(cXyz);
+ /* 80BFEE24 */ bool checkViewArea(cXyz);
/* 80BFEEA8 */ void Action();
/* 80BFEF20 */ void setBaseMtx();
/* 80BFEF84 */ void setBaseMtx2();
- /* 80BFF064 */ void CreateHeap();
- /* 80BFF164 */ void create();
- /* 80BFF8D8 */ void Create();
- /* 80BFF938 */ void Execute(f32 (**)[3][4]);
- /* 80BFFA00 */ void Draw();
- /* 80BFFB1C */ void Delete();
+ /* 80BFF064 */ int CreateHeap();
+ /* 80BFF164 */ int create();
+ /* 80BFF8D8 */ int Create();
+ /* 80BFF938 */ int Execute(Mtx**);
+ /* 80BFFA00 */ int Draw();
+ /* 80BFFB1C */ int Delete();
private:
- /* 0x568 */ u8 field_0x568[0x13c4 - 0x568];
+ /* 0x05A0 */ u8 mSwBit;
+ /* 0x05A1 */ u8 mAction;
+ /* 0x05A2 */ u8 field_0x5a2;
+ /* 0x05A4 */ cXyz mBaseScale;
+ /* 0x05B0 */ cXyz mBreakPositions[4];
+ /* 0x05B0 */ cXyz mBreakOldPositions[4];
+ /* 0x0610 */ csXyz mBreakAngles[4];
+ /* 0x0628 */ cXyz field_0x628[4];
+ /* 0x0658 */ cXyz mBreakSpeeds[4];
+ /* 0x0688 */ csXyz mBreakRotationSpeeds[4];
+ /* 0x06A0 */ cXyz field_0x6a0[4];
+ /* 0x06D0 */ u8 field_0x6d0[4];
+ /* 0x06D4 */ f32 mStreamScales[4];
+ /* 0x06E4 */ int field_0x6e4;
+ /* 0x06E8 */ dBgS_GndChk mGndChk;
+ /* 0x073C */ dBgS_AcchCir mAcchCirs[4];
+ /* 0x083C */ dBgS_ObjAcch mAcchs[4];
+ /* 0x0F9C */ J3DModel* mModel;
+ /* 0x0FA0 */ J3DModel* mBreakModels[4];
+ /* 0x0FB0 */ request_of_phase_process_class mPhase;
+ /* 0x0FB8 */ dCcD_Stts mStts;
+ /* 0x0FF4 */ dCcD_Sph mSphs[3];
+ /* 0x139C */ u8 field_0x139c[0x13c0 - 0x139c];
+ /* 0x13C0 */ bool mIsHIOOwner;
};
STATIC_ASSERT(sizeof(daObjGOMIKABE_c) == 0x13c4);
-class daObjGOMIKABE_HIO_c {
+class daObjGOMIKABE_HIO_c : public JORReflexible {
public:
/* 80BFE22C */ daObjGOMIKABE_HIO_c();
- /* 80BFFB74 */ ~daObjGOMIKABE_HIO_c();
+ /* 80BFFB74 */ virtual ~daObjGOMIKABE_HIO_c() {}
+
+ void genMessage(JORMContext* ctx);
+
+ /* 0x04 */ s8 mId;
};
diff --git a/include/d/d_bg_s_acch.h b/include/d/d_bg_s_acch.h
index 04b92d41f9..1cb9afb141 100644
--- a/include/d/d_bg_s_acch.h
+++ b/include/d/d_bg_s_acch.h
@@ -250,7 +250,9 @@ public:
}
/* 80BB336C */ virtual ~dBgS_ObjAcch() {}
-};
+}; // Size: 0x1D8
+
+STATIC_ASSERT(sizeof(dBgS_ObjAcch) == 0x1D8);
class dBgS_StatueAcch : public dBgS_Acch {
public: