summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2022-07-02 15:15:47 -0700
committerGitHub <noreply@github.com>2022-07-02 15:15:47 -0700
commitb68cfbc0e6a66e9ef46ab01264dbe9e92b65bf8e (patch)
tree76b6e4b713e658f58e84b4369d8ace35b90e3717 /include
parentb973f1c79806571e8f96ede37eae7bcda431ec21 (diff)
parentb99af1efc3c29179c75c5edc2e93ba1936be0da0 (diff)
Merge pull request #204 from lepelog/misc
misc and d_event
Diffstat (limited to 'include')
-rw-r--r--include/d/a/d_a_alink.h6
-rw-r--r--include/d/a/d_a_player.h7
-rw-r--r--include/d/com/d_com_inf_game.h4
-rw-r--r--include/d/d_attention.h2
-rw-r--r--include/d/event/d_event.h8
-rw-r--r--include/f_op/f_op_actor.h2
-rw-r--r--include/f_op/f_op_actor_mng.h2
-rw-r--r--include/f_op/f_op_scene.h5
-rw-r--r--include/f_op/f_op_scene_tag.h6
-rw-r--r--include/m_Do/m_Do_mtx.h4
-rw-r--r--include/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.h11
-rw-r--r--include/rel/d/a/tag/d_a_tag_mstop/d_a_tag_mstop.h11
12 files changed, 52 insertions, 16 deletions
diff --git a/include/d/a/d_a_alink.h b/include/d/a/d_a_alink.h
index 955cb4d060..b7bc9b5bd6 100644
--- a/include/d/a/d_a_alink.h
+++ b/include/d/a/d_a_alink.h
@@ -2572,11 +2572,12 @@ public:
BOOL i_checkReinRide() const { return mRideStatus == 1 || mRideStatus == 2; }
bool checkFishingCastMode() const {
+ bool var_r5;
bool var_r4 = 1;
bool var_r3 = 0;
if (mProcID == PROC_FISHING_CAST) {
- bool var_r5 = 0;
+ var_r5 = 0;
if (mItemActor.getActor() != NULL && mItemActor.getActor()->mEvtInfo.i_checkCommandDemoAccrpt() != 0) {
var_r5 = 1;
@@ -4633,7 +4634,7 @@ public:
FORCE_PANIC = 8,
};
- enum daMidna_FLG0 { NPC_NEAR = 0x100000, NPC_FAR = 0x40000 };
+ enum daMidna_FLG0 { NPC_NEAR = 0x100000, NPC_FAR = 0x40000, NO_DRAW = 0x2000 };
enum daMidna_FLG1 { FORCE_NORMAL_COLOR = 8, FORCE_TIRED_COLOR = 4 };
@@ -4699,6 +4700,7 @@ public:
void changeDemoMode(u32 mode) { mDemoMode = mode; }
BOOL checkNpcNear() { return checkStateFlg0(NPC_NEAR); }
BOOL checkNpcFar() { return checkStateFlg0(NPC_FAR); }
+ BOOL checkNoDraw() const { return checkStateFlg0(NO_DRAW); }
inline bool checkMidnaRealBody();
diff --git a/include/d/a/d_a_player.h b/include/d/a/d_a_player.h
index 7f70be553a..9043847a0f 100644
--- a/include/d/a/d_a_player.h
+++ b/include/d/a/d_a_player.h
@@ -157,6 +157,8 @@ private:
}; // Size: 0x24
class daMidna_c;
+class daPy_py_c;
+inline daPy_py_c* dComIfGp_getLinkPlayer();
class daPy_py_c : public fopAc_ac_c {
public:
@@ -351,7 +353,7 @@ public:
/* 80182A10 */ void checkGoronSideMove() const;
/* 80182AAC */ void getRightFootPosP();
/* 80182AB4 */ void getLeftFootPosP();
- /* 80182ABC */ u32 getMidnaActor();
+ /* 80182ABC */ //u32 getMidnaActor();
/* 80182AC4 */ void checkCopyRodThrowAfter() const;
/* 80182AD8 */ void checkRide() const;
/* 80182B9C */ void getRightHandPos() const;
@@ -589,6 +591,9 @@ public:
inline BOOL i_checkSwordGet();
inline bool i_checkShieldGet() const;
inline static BOOL checkNowWolf();
+ inline static BOOL i_checkNowWolf() {
+ return dComIfGp_getLinkPlayer()->i_checkWolf();
+ }
inline bool checkZoraWearFlg() const;
inline bool checkMagicArmorWearFlg() const;
diff --git a/include/d/com/d_com_inf_game.h b/include/d/com/d_com_inf_game.h
index 9207fa790d..4165f2dd6a 100644
--- a/include/d/com/d_com_inf_game.h
+++ b/include/d/com/d_com_inf_game.h
@@ -1514,6 +1514,10 @@ inline dAttention_c& dComIfGp_getAttention() {
return g_dComIfG_gameInfo.play.getAttention();
}
+inline u8 dComIfGp_att_getCatchChgItem() {
+ return dComIfGp_getAttention().getCatchChgItem();
+}
+
inline J2DGrafContext* dComIfGp_getCurrentGrafPort() {
return g_dComIfG_gameInfo.play.getCurrentGrafPort();
}
diff --git a/include/d/d_attention.h b/include/d/d_attention.h
index d288f00c3c..12b995f6ea 100644
--- a/include/d/d_attention.h
+++ b/include/d/d_attention.h
@@ -31,6 +31,7 @@ public:
void request(fopAc_ac_c*, u8, f32, f32, f32, s16, int);
s32 getCatghTarget() { return convPId(field_0x10); }
+ u8 getChangeItem() { return mChangeItem; }
private:
void* field_0x0;
@@ -203,6 +204,7 @@ public:
/* 8014B010 */ void getDistTable(int);
dAttCatch_c& getCatghTarget() { return mCatghTarget; }
+ u8 getCatchChgItem() { return mCatghTarget.getChangeItem(); }
BOOL chkFlag(u32 flag) { return mFlags & flag; }
s8 Lockon() {
/* s32 chk = true;
diff --git a/include/d/event/d_event.h b/include/d/event/d_event.h
index 7557d3cb3f..c8b7cc9c1d 100644
--- a/include/d/event/d_event.h
+++ b/include/d/event/d_event.h
@@ -32,8 +32,8 @@ class dEvt_control_c {
public:
dEvt_control_c();
s32 orderOld(u16, u16, u16, u16, void*, void*, void const*);
- s32 order(u16 eventType, u16 priority, u16 flag, u16 param_3, void* param_4,
- void* param_5, s16 eventID, u8 infoIdx);
+ s32 order(u16 eventType, u16 priority, u16 flag, u16 param_3, void* param_4, void* param_5,
+ s16 eventID, u8 infoIdx);
void setParam(dEvt_order_c*);
s32 beforeFlagProc(dEvt_order_c*);
void afterFlagProc(dEvt_order_c*);
@@ -41,9 +41,9 @@ public:
int talkCheck(dEvt_order_c*);
int talkXyCheck(dEvt_order_c*);
int catchCheck(dEvt_order_c*);
- void talkEnd();
+ int talkEnd();
int demoCheck(dEvt_order_c*);
- void demoEnd();
+ int demoEnd();
int potentialCheck(dEvt_order_c*);
int doorCheck(dEvt_order_c*);
int itemCheck(dEvt_order_c*);
diff --git a/include/f_op/f_op_actor.h b/include/f_op/f_op_actor.h
index 47b238619f..44d06dd096 100644
--- a/include/f_op/f_op_actor.h
+++ b/include/f_op/f_op_actor.h
@@ -31,7 +31,7 @@ public:
s16 getEventId() { return mEventId; }
s16 getIdx() { return mIndex; }
char* getArchiveName() { return mArchiveName; }
- BOOL chkCondition(u16 condition) { return mCondition & condition; }
+ BOOL chkCondition(u16 condition) { return (mCondition & condition) == condition; }
void i_onCondition(u16 cond) { mCondition |= cond; }
void i_offCondition(u16 cond) { mCondition &= ~cond; }
diff --git a/include/f_op/f_op_actor_mng.h b/include/f_op/f_op_actor_mng.h
index 17f3f3fda3..e928cad647 100644
--- a/include/f_op/f_op_actor_mng.h
+++ b/include/f_op/f_op_actor_mng.h
@@ -112,7 +112,7 @@ inline u32 fopAcM_GetID(const void* pActor) {
return fpcM_GetID(pActor);
}
-inline s16 fopAcM_GetName(fopAc_ac_c* pActor) {
+inline s16 fopAcM_GetName(void* pActor) {
return fpcM_GetName(pActor);
}
diff --git a/include/f_op/f_op_scene.h b/include/f_op/f_op_scene.h
index 16bda2d579..c8afbbb68d 100644
--- a/include/f_op/f_op_scene.h
+++ b/include/f_op/f_op_scene.h
@@ -18,9 +18,8 @@ public:
/* 0x0C8 */ u32 field_0xc8;
/* 0x0CC */ u8 field_0xcc[0xE0];
/* 0x1AC */ process_method_class* mpProcessMtd;
- /* 0x1B0 */ scene_tag_class* field_0x1b0;
- /* 0x1B4 */ u8 field_0x1b4[0x10];
+ /* 0x1B0 */ scene_tag_class field_0x1b0;
/* 0x1C4 */ request_of_phase_process_class field_0x1c4;
};
-#endif \ No newline at end of file
+#endif
diff --git a/include/f_op/f_op_scene_tag.h b/include/f_op/f_op_scene_tag.h
index afb233a977..b12dd2db8c 100644
--- a/include/f_op/f_op_scene_tag.h
+++ b/include/f_op/f_op_scene_tag.h
@@ -4,7 +4,9 @@
#include "dolphin/types.h"
#include "f_pc/f_pc_node.h"
-class scene_tag_class;
+class scene_tag_class {
+ u8 _0[0x14];
+};
void fopScnTg_QueueTo(scene_tag_class* pSceneTag);
void fopScnTg_ToQueue(scene_tag_class* pSceneTag);
@@ -12,4 +14,4 @@ void fopScnTg_Init(scene_tag_class* pSceneTag, void* pData);
extern node_list_class g_fopScnTg_SceneList;
-#endif \ No newline at end of file
+#endif
diff --git a/include/m_Do/m_Do_mtx.h b/include/m_Do/m_Do_mtx.h
index e742c9f73c..0375602fe5 100644
--- a/include/m_Do/m_Do_mtx.h
+++ b/include/m_Do/m_Do_mtx.h
@@ -26,8 +26,8 @@ inline void mDoMtx_multVecSR(Mtx m, const Vec* src, Vec* dst) {
class mDoMtx_stack_c {
public:
- /* 8000CCC8 */ bool push();
- /* 8000CD14 */ bool pop();
+ /* 8000CCC8 */ static bool push();
+ /* 8000CD14 */ static bool pop();
/* 8000CD64 */ static void transS(cXyz const&);
/* 8000CDD4 */ static void transM(cXyz const&);
/* 8000CD9C */ static void transM(f32, f32, f32);
diff --git a/include/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.h b/include/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.h
index 150b469c87..6c29b4e0bc 100644
--- a/include/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.h
+++ b/include/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.h
@@ -3,4 +3,15 @@
#include "dolphin/types.h"
+struct daTagMhint_c {
+ /* 805A56B8 */ void create();
+ /* 805A58E8 */ ~daTagMhint_c();
+ /* 805A5974 */ void eventOrder();
+ /* 805A5AE4 */ void execute();
+ bool checkNoAttention() const { return _0x56d == 0xFF; }
+
+ u8 _0[0x56d];
+ u8 _0x56d;
+};
+
#endif /* D_A_TAG_MHINT_H */
diff --git a/include/rel/d/a/tag/d_a_tag_mstop/d_a_tag_mstop.h b/include/rel/d/a/tag/d_a_tag_mstop/d_a_tag_mstop.h
index 9a60efb219..fec2a88d47 100644
--- a/include/rel/d/a/tag/d_a_tag_mstop/d_a_tag_mstop.h
+++ b/include/rel/d/a/tag/d_a_tag_mstop/d_a_tag_mstop.h
@@ -3,4 +3,15 @@
#include "dolphin/types.h"
+struct daTagMstop_c {
+ /* 805A6138 */ void create();
+ /* 805A6338 */ ~daTagMstop_c();
+ /* 805A63C4 */ void eventOrder();
+ /* 805A63F8 */ void execute();
+ bool checkNoAttention() const { return _0x56b == 0xFF; }
+
+ u8 _0[0x56b];
+ u8 _0x56b;
+};
+
#endif /* D_A_TAG_MSTOP_H */