daObjTrnd2_c OK, daObjTrnd_c done except one function (#2111)

* work on d_a_tornado_obj

* daObjTrnd2_c OK
This commit is contained in:
hatal175
2024-04-01 12:06:32 +03:00
committed by GitHub
parent db80914e40
commit baf696d9b8
34 changed files with 581 additions and 1807 deletions
+1
View File
@@ -31,6 +31,7 @@ void dKyw_wether_proc();
void dKyw_get_AllWind_vec(cXyz* i_position, cXyz* i_direction, f32* i_power);
void dKyw_pntwind_cut(WIND_INFLUENCE* i_pntwind);
cXyz dKyw_pntwind_get_vecpow(cXyz* param_0);
void dKyw_pntwind_set(WIND_INFLUENCE* i_pntwind);
class dKankyo_sun_Packet : public J3DPacket {
public:
@@ -5,4 +5,33 @@
#include "d/com/d_com_inf_game.h"
#include "f_op/f_op_actor_mng.h"
class daObjTrnd_c : public fopAc_ac_c {
public:
/* 80D1B998 */ void setPntWind();
/* 80D1BA0C */ void cutPntWind();
/* 80D1BA30 */ void movePntWind();
/* 80D1BC40 */ void setCpsInfo();
/* 80D1BE04 */ void initBaseMtx();
/* 80D1BE24 */ void setBaseMtx();
/* 80D1BE6C */ int Create();
/* 80D1BFB0 */ int create();
/* 80D1C0F0 */ int execute();
/* 80D1C290 */ int draw();
/* 80D1C298 */ int _delete();
u32 checkSE() { return fopAcM_GetParamBit(this, 8, 1); }
u32 getTimer() { return fopAcM_GetParamBit(this, 0, 8); }
u32 getSwbit() { return fopAcM_GetParamBit(this, 0x18, 8); }
/* 0x568 */ dCcD_Stts mStts;
/* 0x5A4 */ dCcD_Cps mCps;
/* 0x6E8 */ cM3dGCpsS field_0x6e8;
/* 0x704 */ f32 field_0x704;
/* 0x708 */ Mtx field_0x708;
/* 0x738 */ s16 field_0x738;
/* 0x73C */ f32 field_0x73c;
/* 0x740 */ WIND_INFLUENCE mWindInfluence;
/* 0x76C */ f32 mWindPower;
}; // Size: 0x770
#endif /* D_A_OBJ_TORNADO_H */
@@ -2,7 +2,8 @@
#define D_A_OBJ_TORNADO2_H
#include "dolphin/types.h"
#include "f_op/f_op_actor.h"
#include "f_op/f_op_actor_mng.h"
#include "d/cc/d_cc_d.h"
struct daObjTrnd2_c : public fopAc_ac_c {
/* 80D1C4D8 */ void setPntWind();
@@ -11,27 +12,39 @@ struct daObjTrnd2_c : public fopAc_ac_c {
/* 80D1C780 */ void setCpsInfo();
/* 80D1C924 */ void initBaseMtx();
/* 80D1C944 */ void setBaseMtx();
/* 80D1C98C */ void Create();
/* 80D1CC80 */ void create();
/* 80D1CDC0 */ void execute();
/* 80D1C98C */ int Create();
/* 80D1CC80 */ int create();
/* 80D1CDC0 */ int execute();
/* 80D1D0AC */ void setParticle();
/* 80D1D214 */ void endParticle();
/* 80D1D278 */ void startParticle();
/* 80D1D2AC */ void stopParticle();
/* 80D1D2E0 */ bool draw();
/* 80D1D2E8 */ void _delete();
/* 80D1D2E0 */ int draw();
/* 80D1D2E8 */ int _delete();
f32 getTargetLength() { return field_0x738; }
f32 getNowLength() { return field_0x704; }
cXyz& getWindEndPos() { return field_0x6f4; }
Vec& getWindEndPos() { return field_0x6e8.mEnd; }
u32 getPower() { return fopAcM_GetParamBit(this, 8, 8); }
u32 getSwbit() { return fopAcM_GetParamBit(this, 0, 8); }
u32 getSwType() { return fopAcM_GetParamBit(this, 16, 4); }
u32 getOffTime() { return fopAcM_GetParamBit(this, 20, 4); }
u32 getOnTime() { return fopAcM_GetParamBit(this, 24, 4); }
u32 getScale() { return fopAcM_GetParamBit(this, 28, 1); }
u8 field_0x568[0x6f4-0x568];
cXyz field_0x6f4;
u32 field_0x700;
f32 field_0x704;
u8 field_0x708[0x738-0x708];
f32 field_0x738;
/* 0x568 */ dCcD_Stts mStts;
/* 0x5A4 */ dCcD_Cps mCps;
/* 0x6E8 */ cM3dGCpsS field_0x6e8;
/* 0x704 */ f32 field_0x704;
/* 0x708 */ Mtx field_0x708;
/* 0x738 */ f32 field_0x738;
/* 0x73C */ WIND_INFLUENCE mWindInfluence;
/* 0x768 */ f32 field_0x768;
/* 0x76C */ f32 field_0x76c;
/* 0x770 */ int mTimer;
/* 0x774 */ f32 mWindPower;
/* 0x778 */ bool field_0x778;
/* 0x778 */ JPABaseEmitter* mParticles[3];
};
#endif /* D_A_OBJ_TORNADO2_H */