summaryrefslogtreecommitdiff
path: root/include/d
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2023-09-12 03:14:40 -0700
committerGitHub <noreply@github.com>2023-09-12 03:14:40 -0700
commit85b77c336ba7672a9ebb5bb276d78f06d9f25b00 (patch)
tree0a39e1d78a2d7761ba91d97f6d62f5f941ec3466 /include/d
parent06ec97aade63b6a358cd7c2985511aa633035256 (diff)
work on m_Do_audio and d_com_inf_game (#18)
* fix float issues and add decompctx.py tool * work on m_Do_audio and d_com_inf_game * fix build
Diffstat (limited to 'include/d')
-rw-r--r--include/d/d_bg_s_acch.h3
-rw-r--r--include/d/d_bg_s_chk.h2
-rw-r--r--include/d/d_bg_s_gnd_chk.h2
-rw-r--r--include/d/d_bg_s_grp_pass_chk.h2
-rw-r--r--include/d/d_bg_s_poly_pass_chk.h10
-rw-r--r--include/d/d_bg_s_roof_chk.h2
-rw-r--r--include/d/d_bg_s_wtr_chk.h2
-rw-r--r--include/d/d_com_inf_game.h18
-rw-r--r--include/d/d_demo.h61
-rw-r--r--include/d/d_grass.h66
-rw-r--r--include/d/d_kankyo.h1
-rw-r--r--include/d/d_magma.h68
-rw-r--r--include/d/d_particle.h106
-rw-r--r--include/d/d_stage.h47
-rw-r--r--include/d/d_tree.h102
-rw-r--r--include/d/d_wood.h32
16 files changed, 320 insertions, 204 deletions
diff --git a/include/d/d_bg_s_acch.h b/include/d/d_bg_s_acch.h
index 509b15bd..005bd6ce 100644
--- a/include/d/d_bg_s_acch.h
+++ b/include/d/d_bg_s_acch.h
@@ -186,9 +186,12 @@ public:
/* 0x0D0 */ f32 field_0xd8;
/* 0x0D4 */ dBgS_GndChk m_gnd;
/* 0x128 */ dBgS_RoofChk m_roof;
+ /* 0x16C */ u8 field_0x16c[0x174 - 0x16C];
/* 0x174 */ dBgS_WtrChk m_wtr;
}; // Size: 0x1C4
+STATIC_ASSERT(sizeof(dBgS_Acch) == 0x1C4);
+
class dBgS_LinkAcch : public dBgS_Acch {
public:
dBgS_LinkAcch() { /* SetLink(); */ }
diff --git a/include/d/d_bg_s_chk.h b/include/d/d_bg_s_chk.h
index 08c24f34..bfeb5b42 100644
--- a/include/d/d_bg_s_chk.h
+++ b/include/d/d_bg_s_chk.h
@@ -13,4 +13,6 @@ public:
virtual ~dBgS_Chk();
}; // Size: 0x14
+STATIC_ASSERT(sizeof(dBgS_Chk) == 0x14);
+
#endif /* D_BG_D_BG_S_CHK_H */ \ No newline at end of file
diff --git a/include/d/d_bg_s_gnd_chk.h b/include/d/d_bg_s_gnd_chk.h
index 7c81b735..a597bb64 100644
--- a/include/d/d_bg_s_gnd_chk.h
+++ b/include/d/d_bg_s_gnd_chk.h
@@ -10,6 +10,8 @@ public:
/* 800775F0 */ virtual ~dBgS_GndChk();
}; // Size: 0x54
+STATIC_ASSERT(sizeof(dBgS_GndChk) == 0x54);
+
class dBgS_LinkGndChk : public dBgS_GndChk {
public:
dBgS_LinkGndChk() { /* SetLink(); */ }
diff --git a/include/d/d_bg_s_grp_pass_chk.h b/include/d/d_bg_s_grp_pass_chk.h
index 3e896033..e107c08b 100644
--- a/include/d/d_bg_s_grp_pass_chk.h
+++ b/include/d/d_bg_s_grp_pass_chk.h
@@ -27,4 +27,6 @@ private:
/* 0x4 */ u32 mGrp;
};
+STATIC_ASSERT(sizeof(dBgS_GrpPassChk) == 0x8);
+
#endif /* D_BG_D_BG_S_GRP_PASS_CHK_H */ \ No newline at end of file
diff --git a/include/d/d_bg_s_poly_pass_chk.h b/include/d/d_bg_s_poly_pass_chk.h
index 4b0c596b..99507e5d 100644
--- a/include/d/d_bg_s_poly_pass_chk.h
+++ b/include/d/d_bg_s_poly_pass_chk.h
@@ -6,6 +6,14 @@
class cBgS_PolyPassChk {
public:
virtual ~cBgS_PolyPassChk();
+
+ /* 0x4 */ u8 mbObjThrough;
+ /* 0x5 */ u8 mbCamThrough;
+ /* 0x6 */ u8 mbLinkThrough;
+ /* 0x7 */ u8 mbArrowsAndLightThrough;
+ /* 0x8 */ u8 mbBombThrough;
+ /* 0x9 */ u8 mbBoomerangThrough;
+ /* 0xA */ u8 mbHookshotThrough;
};
class dBgS_PolyPassChk : public cBgS_PolyPassChk {
@@ -14,4 +22,6 @@ public:
virtual ~dBgS_PolyPassChk();
};
+STATIC_ASSERT(sizeof(dBgS_PolyPassChk) == 0xC);
+
#endif /* D_BG_D_BG_S_POLY_PASS_CHK_H */ \ No newline at end of file
diff --git a/include/d/d_bg_s_roof_chk.h b/include/d/d_bg_s_roof_chk.h
index b91037ac..fb234e05 100644
--- a/include/d/d_bg_s_roof_chk.h
+++ b/include/d/d_bg_s_roof_chk.h
@@ -20,6 +20,8 @@ private:
/* 0x38 */ cXyz m_pos;
}; // Size: 0x44
+STATIC_ASSERT(sizeof(dBgS_RoofChk) == 0x44);
+
class dBgS_LinkRoofChk : public dBgS_RoofChk {
public:
dBgS_LinkRoofChk() { /* SetLink(); */ }
diff --git a/include/d/d_bg_s_wtr_chk.h b/include/d/d_bg_s_wtr_chk.h
index ce70935e..5069ae1a 100644
--- a/include/d/d_bg_s_wtr_chk.h
+++ b/include/d/d_bg_s_wtr_chk.h
@@ -10,4 +10,6 @@ public:
/* 8001DF30 */ virtual ~dBgS_WtrChk();
}; // Size: 0x50
+STATIC_ASSERT(sizeof(dBgS_WtrChk) == 0x50);
+
#endif /* D_BG_D_BG_S_WTR_CHK_H */ \ No newline at end of file
diff --git a/include/d/d_com_inf_game.h b/include/d/d_com_inf_game.h
index db22bfd6..022c4f01 100644
--- a/include/d/d_com_inf_game.h
+++ b/include/d/d_com_inf_game.h
@@ -309,7 +309,7 @@ public:
class dComIfG_inf_c {
public:
dComIfG_inf_c() { ct(); }
- ~dComIfG_inf_c();
+ ~dComIfG_inf_c() {}
void ct();
@@ -344,6 +344,10 @@ inline void dComIfGs_setEventReg(u16 i_reg, u8 i_no) {
g_dComIfG_gameInfo.save.getEvent().setEventReg(i_reg, i_no);
}
+inline u8 dComIfGs_getEventReg(u16 i_reg) {
+ return g_dComIfG_gameInfo.save.getEvent().getEventReg(i_reg);
+}
+
inline BOOL dComIfGs_isEventBit(u16 id) {
return g_dComIfG_gameInfo.save.getEvent().isEventBit(id);
}
@@ -503,6 +507,18 @@ inline dBgS* dComIfG_Bgsp() {
return &g_dComIfG_gameInfo.play.mBgS;
}
+inline daShip_c* dComIfGp_getShipActor() {
+ return (daShip_c*)g_dComIfG_gameInfo.play.getPlayerPtr(2);
+}
+
+inline void dComIfGp_getIkadaShipBeforePos(Vec* o_pos) {
+ *o_pos = g_dComIfG_gameInfo.play.mIkadaLinkPos;
+}
+
+inline dStage_stageDt_c& dComIfGp_getStage() {
+ return g_dComIfG_gameInfo.play.getStage();
+}
+
inline daPy_lk_c* daPy_getPlayerLinkActorClass() {
return (daPy_lk_c*)g_dComIfG_gameInfo.play.getPlayerPtr(0);
}
diff --git a/include/d/d_demo.h b/include/d/d_demo.h
new file mode 100644
index 00000000..aad24126
--- /dev/null
+++ b/include/d/d_demo.h
@@ -0,0 +1,61 @@
+#ifndef D_DEMO_H
+#define D_DEMO_H
+
+#include "dolphin/types.h"
+
+class dDemo_actor_c;
+class dDemo_camera_c;
+class dDemo_ambient_c;
+class dDemo_light_c;
+class dDemo_system_c;
+class TControl;
+class dMesg_tControl;
+
+class dDemo_object_c {
+public:
+ dDemo_object_c();
+ ~dDemo_object_c();
+
+ void appendActor(fopAc_ac_c*);
+ void getActor(u8);
+ void createCamera();
+ void getActiveCamera();
+ void createAmbient();
+ void appendLight();
+ void createFog();
+ void remove();
+
+ /* 0x00 */ u8 mNumActor;
+ /* 0x01 */ u8 mNumLight;
+ /* 0x04 */ dDemo_actor_c* mpActors[32];
+ /* 0x84 */ dDemo_camera_c* mpActiveCamera;
+ /* 0x88 */ dDemo_ambient_c* mpAmbient;
+ /* 0x8C */ dDemo_light_c* mpLight[8];
+ /* 0xAC */ u8 field_0xac[4];
+};
+
+class dDemo_manager_c {
+public:
+ dDemo_manager_c();
+ ~dDemo_manager_c();
+
+ void create(u8 const*, cXyz*, f32);
+ void remove();
+ void update();
+
+ /* 0x00 */ dDemo_system_c* mpSystem;
+ /* 0x04 */ TControl* mpControl;
+ /* 0x08 */ void* mpStage;
+ /* 0x0C */ void* mpAudio;
+ /* 0x10 */ void* mpParticle;
+ /* 0x14 */ void* field_0x14;
+ /* 0x18 */ dMesg_tControl* mpMesgControl;
+ /* 0x1C */ void* mpMessage;
+ /* 0x20 */ dDemo_object_c mDemoObj;
+ /* 0xD0 */ void* field_0xd0;
+ /* 0xD4 */ void* field_0xd4;
+ /* 0xD8 */ int field_0xd8;
+ /* 0xDC */ int mState;
+};
+
+#endif /* D_DEMO_H */ \ No newline at end of file
diff --git a/include/d/d_grass.h b/include/d/d_grass.h
index cc614a28..83863f99 100644
--- a/include/d/d_grass.h
+++ b/include/d/d_grass.h
@@ -30,53 +30,53 @@ public:
class dGrass_anm_c {
public:
- dGrass_anm_c();
+ dGrass_anm_c();
- /* 0x00 */ u8 mState;
- /* 0x02 */ s16 mRotY;
- /* 0x04 */ s16 mRotX;
- /* 0x08 */ Mtx mAnimMtx;
+ /* 0x00 */ u8 mState;
+ /* 0x02 */ s16 mRotY;
+ /* 0x04 */ s16 mRotX;
+ /* 0x08 */ Mtx mAnimMtx;
};
class dGrass_room_c {
public:
- void newData(dGrass_data_c*);
- void deleteData();
- dGrass_room_c();
+ void newData(dGrass_data_c*);
+ void deleteData();
+ dGrass_room_c();
- /* 0x0 */ dGrass_data_c* mpData;
+ /* 0x0 */ dGrass_data_c* mpData;
};
class dGrass_packet_c : public J3DPacket {
public:
- dGrass_packet_c();
-
- void calc();
- void update();
- void setData(dGrass_data_c*, int, cXyz&, int, s8);
- void newData(cXyz&, int, s8);
- void newAnm();
- void setAnm(int, s16);
+ dGrass_packet_c();
+
+ void calc();
+ void update();
+ void setData(dGrass_data_c*, int, cXyz&, int, s8);
+ void newData(cXyz&, int, s8);
+ void newAnm();
+ void setAnm(int, s16);
virtual void draw();
virtual ~dGrass_packet_c();
- /* 0x00010 */ s16 mRndm;
- /* 0x00012 */ u8 field_0x00012[0x00014 - 0x00012];
- /* 0x00014 */ dGrass_data_c mGrassData[1500];
- /* 0x18E84 */ dGrass_anm_c mGrassAnm[104];
- /* 0x1A544 */ dGrass_room_c mGrassRoom[64];
- /* 0x1A644 */ f32* mpPosArr;
- /* 0x1A648 */ GXColor* mpColorArr;
- /* 0x1A64C */ f32* mpTexCoordArr;
- /* 0x1A650 */ void* mpMatDL;
- /* 0x1A654 */ u32 mMatDLSize;
- /* 0x1A658 */ void* mpDL;
- /* 0x1A65C */ u32 mDLSize;
- /* 0x1A660 */ void* mpDLCut;
- /* 0x1A664 */ u32 mDLCutSize;
- /* 0x1A668 */ u16 mCoParticle;
- /* 0x1A66A */ u16 field_0x1a66a;
+ /* 0x00010 */ s16 mRndm;
+ /* 0x00012 */ u8 field_0x00012[0x00014 - 0x00012];
+ /* 0x00014 */ dGrass_data_c mGrassData[1500];
+ /* 0x18E84 */ dGrass_anm_c mGrassAnm[104];
+ /* 0x1A544 */ dGrass_room_c mGrassRoom[64];
+ /* 0x1A644 */ f32* mpPosArr;
+ /* 0x1A648 */ GXColor* mpColorArr;
+ /* 0x1A64C */ f32* mpTexCoordArr;
+ /* 0x1A650 */ void* mpMatDL;
+ /* 0x1A654 */ u32 mMatDLSize;
+ /* 0x1A658 */ void* mpDL;
+ /* 0x1A65C */ u32 mDLSize;
+ /* 0x1A660 */ void* mpDLCut;
+ /* 0x1A664 */ u32 mDLCutSize;
+ /* 0x1A668 */ u16 mCoParticle;
+ /* 0x1A66A */ u16 field_0x1a66a;
};
#endif /* D_GRASS_H */ \ No newline at end of file
diff --git a/include/d/d_kankyo.h b/include/d/d_kankyo.h
index 70049590..f857d33c 100644
--- a/include/d/d_kankyo.h
+++ b/include/d/d_kankyo.h
@@ -62,6 +62,7 @@ extern dScnKy_env_light_c g_env_light;
int dKy_getdaytime_hour();
BOOL dKy_checkEventNightStop();
+void dKy_set_nexttime(f32);
#endif /* D_KANKYO_D_KANKYO_H */
diff --git a/include/d/d_magma.h b/include/d/d_magma.h
index 47b3eb54..3219cc8d 100644
--- a/include/d/d_magma.h
+++ b/include/d/d_magma.h
@@ -8,53 +8,53 @@
class dMagma_ball_c;
class dMagma_floor_c {
public:
- void draw();
- void calc(int);
- void update();
- void create(cXyz&, cXyz&, s16, u8, int);
- void remove();
-
- ~dMagma_floor_c();
- dMagma_floor_c();
-
- /* 0x00 */ dMagma_ball_c** mpBalls;
- /* 0x04 */ u8 mBallNum;
- /* 0x05 */ u8 mPathNo;
- /* 0x06 */ u8 field_0x06[0x08 - 0x06];
- /* 0x08 */ cXyz mBallPos;
- /* 0x14 */ f32 field_0x14;
- /* 0x18 */ f32 field_0x18;
- /* 0x1C */ Mtx mPosMtx;
- /* 0x4C */ Mtx mTexMtx0;
- /* 0x7C */ Mtx mBallPostMtx0;
- /* 0xAC */ dMagma_floor_c* mpNext;
+ void draw();
+ void calc(int);
+ void update();
+ void create(cXyz&, cXyz&, s16, u8, int);
+ void remove();
+
+ ~dMagma_floor_c();
+ dMagma_floor_c();
+
+ /* 0x00 */ dMagma_ball_c** mpBalls;
+ /* 0x04 */ u8 mBallNum;
+ /* 0x05 */ u8 mPathNo;
+ /* 0x06 */ u8 field_0x06[0x08 - 0x06];
+ /* 0x08 */ cXyz mBallPos;
+ /* 0x14 */ f32 field_0x14;
+ /* 0x18 */ f32 field_0x18;
+ /* 0x1C */ Mtx mPosMtx;
+ /* 0x4C */ Mtx mTexMtx0;
+ /* 0x7C */ Mtx mBallPostMtx0;
+ /* 0xAC */ dMagma_floor_c* mpNext;
};
class dMagma_room_c{
public:
- void newFloor(dMagma_floor_c*);
- void deleteFloor();
+ void newFloor(dMagma_floor_c*);
+ void deleteFloor();
- dMagma_room_c();
+ dMagma_room_c();
- /* 0x0 */ dMagma_floor_c* mpFirst;
+ /* 0x0 */ dMagma_floor_c* mpFirst;
};
class dMagma_packet_c : public J3DPacket {
public:
- dMagma_packet_c();
- void calc();
- void update();
- void checkYpos(cXyz&);
- void newFloor(cXyz&, cXyz&, int, s16);
+ dMagma_packet_c();
+ void calc();
+ void update();
+ void checkYpos(cXyz&);
+ void newFloor(cXyz&, cXyz&, int, s16);
virtual void draw();
virtual ~dMagma_packet_c();
-
- /* 0x010 */ dMagma_floor_c mFloor[8];
- /* 0x590 */ dMagma_room_c mRoom[64];
- /* 0x690 */ GXColor mColor1;
- /* 0x694 */ f32 mTimer;
+
+ /* 0x010 */ dMagma_floor_c mFloor[8];
+ /* 0x590 */ dMagma_room_c mRoom[64];
+ /* 0x690 */ GXColor mColor1;
+ /* 0x694 */ f32 mTimer;
};
#endif /* D_MAGMA_H */ \ No newline at end of file
diff --git a/include/d/d_particle.h b/include/d/d_particle.h
index eae5ceb0..d3e2c644 100644
--- a/include/d/d_particle.h
+++ b/include/d/d_particle.h
@@ -16,73 +16,73 @@ struct csXyz;
class dPa_simpleData_c {
public:
- ~dPa_simpleData_c();
- dPa_simpleData_c();
+ ~dPa_simpleData_c();
+ dPa_simpleData_c();
- /* 0x00 */ Vec mPos;
- /* 0x0C */ GXColor mPrmColor;
- /* 0x10 */ u8 mEnvColor[3];
- /* 0x13 */ u8 mbAffectedByWind;
+ /* 0x00 */ Vec mPos;
+ /* 0x0C */ GXColor mPrmColor;
+ /* 0x10 */ u8 mEnvColor[3];
+ /* 0x13 */ u8 mbAffectedByWind;
};
class dPa_simpleEcallBack {
public:
- dPa_simpleEcallBack();
+ dPa_simpleEcallBack();
~dPa_simpleEcallBack();
- void executeAfter(JPABaseEmitter*);
- void draw(JPABaseEmitter*);
- void create(JPAEmitterManager*, u16, u8);
- void createEmitter(JPAEmitterManager*);
- void set(cXyz const*, u8, GXColor const&, GXColor const&, int);
+ void executeAfter(JPABaseEmitter*);
+ void draw(JPABaseEmitter*);
+ void create(JPAEmitterManager*, u16, u8);
+ void createEmitter(JPAEmitterManager*);
+ void set(cXyz const*, u8, GXColor const&, GXColor const&, int);
- /* 0x000 */ void* vtbl;
- /* 0x004 */ JPABaseEmitter* mpBaseEmitter;
- /* 0x008 */ u16 mResID;
- /* 0x00A */ u8 mGrpID;
- /* 0x00B */ u8 mbIsSmoke;
- /* 0x00C */ s16 mCount;
- /* 0x00E */ u8 field_0x00E[0x010 - 0x00E];
- /* 0x010 */ dPa_simpleData_c mSimpleData[32];
+ /* 0x000 */ void* vtbl;
+ /* 0x004 */ JPABaseEmitter* mpBaseEmitter;
+ /* 0x008 */ u16 mResID;
+ /* 0x00A */ u8 mGrpID;
+ /* 0x00B */ u8 mbIsSmoke;
+ /* 0x00C */ s16 mCount;
+ /* 0x00E */ u8 field_0x00E[0x010 - 0x00E];
+ /* 0x010 */ dPa_simpleData_c mSimpleData[32];
};
class dPa_control_c {
public:
- dPa_control_c();
+ dPa_control_c();
- void getRM_ID(u16);
- void swapFrameBufferTexture();
- void createCommon(void const*);
- void createRoomScene(void const*);
- void readScene(u8, mDoDvdThd_toMainRam_c**);
- void createScene(void const*);
- void removeRoomScene();
- void removeScene();
- void calc3D();
- void calc2D();
- void calcMenu();
- void draw(JPADrawInfo*, u8);
- JPABaseEmitter * set(u8, u16, cXyz const*, csXyz const*, cXyz const*, u8, dPa_levelEcallBack*, s8, GXColor const*, GXColor const*, cXyz const*);
- void setBombSmoke(u16, cXyz const*, csXyz const*, cXyz const*, u8);
- void setSimpleLand(int, cXyz const*, csXyz const*, f32, f32, f32, dKy_tevstr_c*, int*, int);
- void setSimpleLand(cBgS_PolyInfo&, cXyz const*, csXyz const*, f32, f32, f32, dKy_tevstr_c*, int*, int);
- void checkAtrCodeEffect(int);
- void setNormalStripes(u16, cXyz const*, csXyz const*, cXyz const*, u8, u16);
- void newSimple(u16, u8);
- void setSimple(u16, cXyz const*, u8, GXColor const&, GXColor const&, int);
- void getSimple(u16);
+ void getRM_ID(u16);
+ void swapFrameBufferTexture();
+ void createCommon(void const*);
+ void createRoomScene(void const*);
+ void readScene(u8, mDoDvdThd_toMainRam_c**);
+ void createScene(void const*);
+ void removeRoomScene();
+ void removeScene();
+ void calc3D();
+ void calc2D();
+ void calcMenu();
+ void draw(JPADrawInfo*, u8);
+ JPABaseEmitter * set(u8, u16, cXyz const*, csXyz const*, cXyz const*, u8, dPa_levelEcallBack*, s8, GXColor const*, GXColor const*, cXyz const*);
+ void setBombSmoke(u16, cXyz const*, csXyz const*, cXyz const*, u8);
+ void setSimpleLand(int, cXyz const*, csXyz const*, f32, f32, f32, dKy_tevstr_c*, int*, int);
+ void setSimpleLand(cBgS_PolyInfo&, cXyz const*, csXyz const*, f32, f32, f32, dKy_tevstr_c*, int*, int);
+ void checkAtrCodeEffect(int);
+ void setNormalStripes(u16, cXyz const*, csXyz const*, cXyz const*, u8, u16);
+ void newSimple(u16, u8);
+ void setSimple(u16, cXyz const*, u8, GXColor const&, GXColor const&, int);
+ void getSimple(u16);
- /* 0x0000 */ JKRHeap* mpHeap;
- /* 0x0004 */ JPAResourceManager* mpCommonResMgr;
- /* 0x0008 */ dPa_modelControl_c* mModelCtrl;
- /* 0x000C */ JKRHeap* mpSceneHeap;
- /* 0x0010 */ void* mpData;
- /* 0x0014 */ JPAResourceManager* mpSceneResMgr;
- /* 0x0018 */ u8 mSceneNo;
- /* 0x0019 */ u8 mCount;
- /* 0x001A */ u8 mNumSimple;
- /* 0x001B */ u8 mNumSimpleCommon;
- /* 0x001C */ dPa_simpleEcallBack mSimpleCallbacks[25];
+ /* 0x0000 */ JKRHeap* mpHeap;
+ /* 0x0004 */ JPAResourceManager* mpCommonResMgr;
+ /* 0x0008 */ dPa_modelControl_c* mModelCtrl;
+ /* 0x000C */ JKRHeap* mpSceneHeap;
+ /* 0x0010 */ void* mpData;
+ /* 0x0014 */ JPAResourceManager* mpSceneResMgr;
+ /* 0x0018 */ u8 mSceneNo;
+ /* 0x0019 */ u8 mCount;
+ /* 0x001A */ u8 mNumSimple;
+ /* 0x001B */ u8 mNumSimpleCommon;
+ /* 0x001C */ dPa_simpleEcallBack mSimpleCallbacks[25];
};
#endif /* D_PARTICLE */ \ No newline at end of file
diff --git a/include/d/d_stage.h b/include/d/d_stage.h
index 48982611..bc413555 100644
--- a/include/d/d_stage.h
+++ b/include/d/d_stage.h
@@ -24,9 +24,18 @@ struct stage_stag_info_class {
/* 0x1C */ u32 field_0x1c;
};
-struct stage_scls_info_class {};
+struct stage_scls_info_class {
+ /* 0x0 */ char mStage[8];
+ /* 0x8 */ u8 mStart;
+ /* 0x9 */ u8 mRoom;
+ /* 0xA */ u8 field_0xa;
+ /* 0xB */ s8 mWipe;
+};
-struct stage_scls_info_dummy_class {};
+struct stage_scls_info_dummy_class {
+ /* 0x00 */ int num;
+ /* 0x04 */ stage_scls_info_class* m_entries;
+};
struct stage_lightvec_info_class {};
@@ -433,22 +442,22 @@ public:
dStage_roomControl_c() {}
void init();
- dStage_roomStatus_c* getStatusRoomDt(int);
- bool checkRoomDisp(int) const;
- int loadRoom(int, u8*);
- void zoneCountCheck(int) const;
- void checkDrawArea() const;
- void getDarkStatus();
- void getDarkMode();
+ dStage_roomStatus_c* getStatusRoomDt(int);
+ bool checkRoomDisp(int) const;
+ int loadRoom(int, u8*);
+ void zoneCountCheck(int) const;
+ void checkDrawArea() const;
+ void getDarkStatus();
+ void getDarkMode();
void getBgW(int);
- static void createMemoryBlock(int, u32);
- static void destroyMemoryBlock(void);
- static void SetTimePass(int);
- static JKRExpHeap* getMemoryBlock(int);
- static void setStayNo(int);
- static s8 GetTimePass();
- static void setZoneNo(int, int);
+ static void createMemoryBlock(int, u32);
+ static void destroyMemoryBlock(void);
+ static void SetTimePass(int);
+ static JKRExpHeap* getMemoryBlock(int);
+ static void setStayNo(int);
+ static s8 GetTimePass();
+ static void setZoneNo(int, int);
static int getZoneNo(int i_roomNo);
static s8 getStayNo() { return mStayNo; }
@@ -524,9 +533,15 @@ private:
}; // Size: 0xE
s8 dStage_roomRead_dt_c_GetReverbStage(roomRead_class&, int);
+int dStage_mapInfo_GetOceanZ(stage_map_info_class*);
+int dStage_mapInfo_GetOceanX(stage_map_info_class*);
inline s32 dStage_stagInfo_GetSaveTbl(stage_stag_info_class* i_stagInfo) {
return (i_stagInfo->field_0x09 >> 1) & 0x7F;
}
+inline u32 dStage_stagInfo_GetSTType(stage_stag_info_class* i_stagInfo) {
+ return (i_stagInfo->field_0x0c >> 16) & 7;
+}
+
#endif /* D_D_STAGE_H */ \ No newline at end of file
diff --git a/include/d/d_tree.h b/include/d/d_tree.h
index d609ec8b..50fd9476 100644
--- a/include/d/d_tree.h
+++ b/include/d/d_tree.h
@@ -7,46 +7,46 @@
class dTree_data_c {
public:
- ~dTree_data_c();
+ ~dTree_data_c();
dTree_data_c();
- void WorkCo(fopAc_ac_c*, u32, int);
- void WorkAt_NoCutAnim(fopAc_ac_c*, u32, int, dCcMassS_HitInf*, cCcD_Obj*);
- void WorkAt(fopAc_ac_c*, u32, int, dCcMassS_HitInf*);
- void hitCheck(fopAc_ac_c*, int);
- void animation(int);
-
- /* 0x000 */ u8 field_0x000;
- /* 0x001 */ u8 field_0x001;
- /* 0x002 */ u8 mAnimIdx;
- /* 0x003 */ s8 field_0x003;
- /* 0x004 */ cXyz mPos;
- /* 0x010 */ Mtx field_0x010;
- /* 0x040 */ Mtx field_0x040;
- /* 0x070 */ Mtx field_0x070;
- /* 0x0A0 */ Mtx mShadowMtx;
- /* 0x0D0 */ u8 field_0x0D0[0x100 - 0x0D0];
- /* 0x100 */ dTree_data_c* mpNext;
+ void WorkCo(fopAc_ac_c*, u32, int);
+ void WorkAt_NoCutAnim(fopAc_ac_c*, u32, int, dCcMassS_HitInf*, cCcD_Obj*);
+ void WorkAt(fopAc_ac_c*, u32, int, dCcMassS_HitInf*);
+ void hitCheck(fopAc_ac_c*, int);
+ void animation(int);
+
+ /* 0x000 */ u8 field_0x000;
+ /* 0x001 */ u8 field_0x001;
+ /* 0x002 */ u8 mAnimIdx;
+ /* 0x003 */ s8 field_0x003;
+ /* 0x004 */ cXyz mPos;
+ /* 0x010 */ Mtx field_0x010;
+ /* 0x040 */ Mtx field_0x040;
+ /* 0x070 */ Mtx field_0x070;
+ /* 0x0A0 */ Mtx mShadowMtx;
+ /* 0x0D0 */ u8 field_0x0D0[0x100 - 0x0D0];
+ /* 0x100 */ dTree_data_c* mpNext;
};
class dTree_anm_c {
public:
- ~dTree_anm_c();
- dTree_anm_c();
+ ~dTree_anm_c();
+ dTree_anm_c();
- /* 0x00 */ u8 field_0x00[0x02 - 0x00];
- /* 0x02 */ s16 field_0x02;
- /* 0x04 */ s16 field_0x04;
- /* 0x06 */ u8 field_0x06[0x08 - 0x06];
- /* 0x08 */ s16 field_0x08;
- /* 0x0A */ s16 field_0x0a;
- /* 0x0C */ f32 mAnimTimer;
- /* 0x10 */ f32 field_0x10;
- /* 0x14 */ f32 field_0x14;
- /* 0x18 */ f32 field_0x18;
- /* 0x1C */ f32 field_0x1c;
- /* 0x20 */ f32 field_0x20;
- /* 0x24 */ Mtx field_0x24;
+ /* 0x00 */ u8 field_0x00[0x02 - 0x00];
+ /* 0x02 */ s16 field_0x02;
+ /* 0x04 */ s16 field_0x04;
+ /* 0x06 */ u8 field_0x06[0x08 - 0x06];
+ /* 0x08 */ s16 field_0x08;
+ /* 0x0A */ s16 field_0x0a;
+ /* 0x0C */ f32 mAnimTimer;
+ /* 0x10 */ f32 field_0x10;
+ /* 0x14 */ f32 field_0x14;
+ /* 0x18 */ f32 field_0x18;
+ /* 0x1C */ f32 field_0x1c;
+ /* 0x20 */ f32 field_0x20;
+ /* 0x24 */ Mtx field_0x24;
/* 0x54 */ u8 field_0x54[0x84 - 0x54];
};
@@ -54,34 +54,34 @@ class dTree_room_c {
public:
dTree_room_c();
- void newData(dTree_data_c*);
- void deleteData();
+ void newData(dTree_data_c*);
+ void deleteData();
- /* 0x0 */ dTree_data_c* mpHead;
+ /* 0x0 */ dTree_data_c* mpHead;
};
class dTree_packet_c : public J3DPacket {
public:
- dTree_packet_c();
+ dTree_packet_c();
- void calc();
- void update();
- void setData(dTree_data_c*, int, cXyz&, u8, int);
- void newData(cXyz&, u8, int);
- void newAnm(s16);
- void setAnm(int, s16);
+ void calc();
+ void update();
+ void setData(dTree_data_c*, int, cXyz&, u8, int);
+ void newData(cXyz&, u8, int);
+ void newAnm(s16);
+ void setAnm(int, s16);
virtual void draw();
virtual ~dTree_packet_c();
- /* 0x0010 */ s16 field_0x0010;
- /* 0x0014 */ dTree_data_c mData[64];
- /* 0x4114 */ dTree_anm_c mAnm[72];
- /* 0x6634 */ dTree_room_c mRoom[64];
- /* 0x6734 */ u8 field_0x6734;
- /* 0x6736 */ s16 field_0x6736;
- /* 0x6738 */ s16 field_0x6738;
- /* 0x673C */ cXyz field_0x673c;
+ /* 0x0010 */ s16 field_0x0010;
+ /* 0x0014 */ dTree_data_c mData[64];
+ /* 0x4114 */ dTree_anm_c mAnm[72];
+ /* 0x6634 */ dTree_room_c mRoom[64];
+ /* 0x6734 */ u8 field_0x6734;
+ /* 0x6736 */ s16 field_0x6736;
+ /* 0x6738 */ s16 field_0x6738;
+ /* 0x673C */ cXyz field_0x673c;
};
#endif /* D_TREE_H */ \ No newline at end of file
diff --git a/include/d/d_wood.h b/include/d/d_wood.h
index 6e51fc54..c7dba157 100644
--- a/include/d/d_wood.h
+++ b/include/d/d_wood.h
@@ -23,15 +23,15 @@ public:
void cc_hit_after_cut(Packet_c*);
void proc(Packet_c*);
- /* 0x000 */ cXyz mPos;
- /* 0x00C */ u8 field_0x00C[0x010 - 0x00C];
- /* 0x010 */ u32 mFlags;
- /* 0x014 */ int mAnmIdx;
- /* 0x018 */ Mtx field_0x018;
- /* 0x048 */ Mtx field_0x048;
- /* 0x078 */ Mtx field_0x078;
- /* 0x0A8 */ Mtx field_0x0a8;
- /* 0x0D8 */ Unit_c* mpNext;
+ /* 0x000 */ cXyz mPos;
+ /* 0x00C */ u8 field_0x00C[0x010 - 0x00C];
+ /* 0x010 */ u32 mFlags;
+ /* 0x014 */ int mAnmIdx;
+ /* 0x018 */ Mtx field_0x018;
+ /* 0x048 */ Mtx field_0x048;
+ /* 0x078 */ Mtx field_0x078;
+ /* 0x0A8 */ Mtx field_0x0a8;
+ /* 0x0D8 */ Unit_c* mpNext;
/* 0x0DC */ u8 field_0xdc[0x18C - 0xDC];
};
@@ -58,11 +58,11 @@ public:
void mode_to_norm_init(AnmID_e);
void mode_to_norm(Packet_c*);
- /* 0x00 */ u8 field_0x00[0x60 - 0x00];
- /* 0x60 */ int field_0x60;
- /* 0x64 */ s16 field_0x64;
- /* 0x66 */ u8 field_0x66[0x8A - 0x66];
- /* 0x8A */ u8 field_0x8a;
+ /* 0x00 */ u8 field_0x00[0x60 - 0x00];
+ /* 0x60 */ int field_0x60;
+ /* 0x64 */ s16 field_0x64;
+ /* 0x66 */ u8 field_0x66[0x8A - 0x66];
+ /* 0x8A */ u8 field_0x8a;
};
STATIC_ASSERT(sizeof(Anm_c) == 0x8C);
@@ -73,7 +73,7 @@ public:
void entry_unit(Unit_c*);
void delete_all_unit();
- /* 0x0 */ Unit_c* mpUnit;
+ /* 0x0 */ Unit_c* mpUnit;
};
class Packet_c : public J3DPacket {
@@ -84,7 +84,7 @@ public:
void put_unit(const cXyz&, int);
void calc_cc();
void calc();
- void update();
+ void update();
void search_empty_UnitID() const;
void search_anm(Anm_c::Mode_e);