diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2023-06-28 15:02:13 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2023-06-28 15:02:13 +0300 |
| commit | f7e5cc384f2f331377a48f0fb0c083ad4384724f (patch) | |
| tree | 64ff0ed731ec4976cc7fdcd3599534169d8c380a /include/d | |
| parent | a3c4cc486e6f67c1beb5d84e45fb979cc744fba3 (diff) | |
| parent | 47edd6719044926e44926dfada578285a56cdb00 (diff) | |
Merge remote-tracking branch 'upstream/master' into undecided
Diffstat (limited to 'include/d')
| -rw-r--r-- | include/d/com/d_com_inf_game.h | 4 | ||||
| -rw-r--r-- | include/d/d_attention.h | 2 | ||||
| -rw-r--r-- | include/d/d_select_cursor.h | 2 | ||||
| -rw-r--r-- | include/d/menu/d_menu_collect.h | 19 | ||||
| -rw-r--r-- | include/d/menu/d_menu_insect.h | 2 | ||||
| -rw-r--r-- | include/d/meter/d_meter2_info.h | 8 | ||||
| -rw-r--r-- | include/d/msg/d_msg_object.h | 10 | ||||
| -rw-r--r-- | include/d/save/d_save.h | 2 |
8 files changed, 35 insertions, 14 deletions
diff --git a/include/d/com/d_com_inf_game.h b/include/d/com/d_com_inf_game.h index dce98cbf78..ae2994b76c 100644 --- a/include/d/com/d_com_inf_game.h +++ b/include/d/com/d_com_inf_game.h @@ -1702,6 +1702,10 @@ inline void dComIfGs_setOptCalibrateDist(u16 i_calibrateDist) { g_dComIfG_gameInfo.info.getPlayer().getConfig().setCalibrateDist(i_calibrateDist); } +inline u16 dComIfGs_getFishNum(u8 param_0) { + return g_dComIfG_gameInfo.info.getPlayer().getFishingInfo().getFishCount(param_0); +} + void dComIfGp_setSelectItem(int index); s32 dComIfGp_offHeapLockFlag(int flag); void dComIfGp_createSubExpHeap2D(); diff --git a/include/d/d_attention.h b/include/d/d_attention.h index 2ce3e8efb0..0fec633004 100644 --- a/include/d/d_attention.h +++ b/include/d/d_attention.h @@ -219,6 +219,8 @@ public: return mZHintTarget.request(param_1, param_2); } + static dist_entry& i_getDistTable(int i_no) { return dist_table[i_no]; } + static type_tbl_entry loc_type_tbl[3]; static type_tbl_entry act_type_tbl[5]; static dist_entry dist_table[234]; diff --git a/include/d/d_select_cursor.h b/include/d/d_select_cursor.h index 50b576f52b..fcea7acd66 100644 --- a/include/d/d_select_cursor.h +++ b/include/d/d_select_cursor.h @@ -58,6 +58,8 @@ public: void onPlayAnime(int i_flag) { field_0xb4 |= (1 << i_flag); } void offPlayAnime(int i_flag) { field_0xb4 &= ~(1 << i_flag); } bool chkPlayAnime(int i_flag) { return field_0xb4 & (1 << i_flag); } + void onPlayAllAnime() { field_0xb4 = 0xff; } + void offPlayAllAnime() { field_0xb4 = 0; } private: /* 0x04 */ J2DScreen* mpScreen; diff --git a/include/d/menu/d_menu_collect.h b/include/d/menu/d_menu_collect.h index 26ca21fb31..d5599adbb5 100644 --- a/include/d/menu/d_menu_collect.h +++ b/include/d/menu/d_menu_collect.h @@ -20,6 +20,7 @@ class dSelect_cursor_c; class dMenu_Collect2D_c; class dMenu_Collect2DTop_c : public dDlst_base_c { public: + dMenu_Collect2DTop_c(dMenu_Collect2D_c* param_0) { mpCollect2D = param_0; } /* 801B77A4 */ virtual void draw(); /* 801B7EB8 */ virtual ~dMenu_Collect2DTop_c(); @@ -32,9 +33,9 @@ public: /* 801AFEA4 */ void _create(); /* 801B0100 */ void _delete(); /* 801B0570 */ void initialize(); - /* 801B05A8 */ void isFishIconVisible(); - /* 801B061C */ void isSkillIconVisible(); - /* 801B071C */ void isInsectIconVisible(); + /* 801B05A8 */ bool isFishIconVisible(); + /* 801B061C */ bool isSkillIconVisible(); + /* 801B071C */ bool isInsectIconVisible(); /* 801B074C */ void screenSet(); /* 801B1C3C */ void animationSet(); /* 801B1CE0 */ void btkAnimeLoop0(J2DAnmTextureSRTKey*); @@ -105,6 +106,8 @@ public: /* 801B7F00 */ virtual void draw(); /* 801AFE34 */ virtual ~dMenu_Collect2D_c(); + u8 getCursorX() { return mCursorX; } + u8 getCursorY() { return mCursorY; } u8 getSubWindowOpenCheck() { return mSubWindowOpenCheck; } private: @@ -311,12 +314,12 @@ public: /* 801B6FB0 */ void animeEntry(); /* 801B7014 */ void createMaskModel(); /* 801B71C4 */ void createMirrorModel(); - /* 801B7434 */ void getCrystalNum(); - /* 801B749C */ void getMirrorNum(); + /* 801B7434 */ int getCrystalNum(); + /* 801B749C */ int getMirrorNum(); /* 801B7504 */ void getMaskMdlVisible(); - /* 801B75E8 */ static void setupItem3D(f32 (*)[4]); + /* 801B75E8 */ static void setupItem3D(Mtx); /* 801B7660 */ void toItem3Dpos(f32, f32, f32, cXyz*); - /* 801B774C */ void calcViewMtx(f32 (*)[4]); + /* 801B774C */ static void calcViewMtx(Mtx); /* 801B6538 */ virtual ~dMenu_Collect3D_c(); @@ -331,7 +334,7 @@ private: /* 0x018 */ J3DModel* mpModel; /* 0x01C */ mDoExt_bckAnm* field_0x1c; /* 0x020 */ mDoExt_brkAnm* field_0x20; - /* 0x024 */ u8 field_0x24[4]; + /* 0x024 */ u32 field_0x24; /* 0x028 */ dKy_tevstr_c field_0x28; /* 0x3B0 */ cXyz field_0x3b0; /* 0x3BC */ csXyz field_0x3bc; diff --git a/include/d/menu/d_menu_insect.h b/include/d/menu/d_menu_insect.h index 5ae137e84c..e394a8a4f2 100644 --- a/include/d/menu/d_menu_insect.h +++ b/include/d/menu/d_menu_insect.h @@ -35,7 +35,7 @@ public: /* 801D9644 */ void screenSetBase(); /* 801D98F0 */ void screenSetExplain(); /* 801D9BD0 */ void screenSetDoIcon(); - /* 801D9D4C */ void getGetInsectNum(); + /* 801D9D4C */ static u8 getGetInsectNum(); /* 801D9DCC */ void getInsectItemID(int, int); /* 801D9DE4 */ void isGetInsect(int, int); /* 801D9E20 */ void isGiveInsect(int, int); diff --git a/include/d/meter/d_meter2_info.h b/include/d/meter/d_meter2_info.h index 78ad8a4cc1..2b1a57c796 100644 --- a/include/d/meter/d_meter2_info.h +++ b/include/d/meter/d_meter2_info.h @@ -151,6 +151,10 @@ public: u8 getItemExplainWindowStatus() { return mItemExplainWindowStatus; } void resetDirectUseItem() { mDirectUseItem = 0; } u16 getFloatingFlowID() { return mFloatingFlowID; } + void setCollectCursorPosXY(u8 x, u8 y) { + mCollectCursorPosX = x; + mCollectCursorPosY = y; + } public: /* 0x04 */ u8 unk4[4]; @@ -550,6 +554,10 @@ inline u16 dMeter2Info_getFloatingFlowID() { return g_meter2_info.getFloatingFlowID(); } +inline void dMeter2Info_setCollectCursorPosXY(u8 x, u8 y) { + g_meter2_info.setCollectCursorPosXY(x, y); +} + const char* dMeter2Info_getNumberTextureName(int pIndex); void dMeter2Info_recieveLetter(); u8 dMeter2Info_getNewLetterNum(); diff --git a/include/d/msg/d_msg_object.h b/include/d/msg/d_msg_object.h index c829b8105b..ace935de8b 100644 --- a/include/d/msg/d_msg_object.h +++ b/include/d/msg/d_msg_object.h @@ -121,12 +121,12 @@ public: /* 802380F4 */ void getString(u32, J2DTextBox*, J2DTextBox*, JUTFont*, COutFont_c*, char*, char*, char*, s16*); /* 80238174 */ static u8* getMsgDtPtr(); - /* 80238188 */ void setProcessID(unsigned int); + /* 80238188 */ static void setProcessID(unsigned int); /* 8023819C */ static fopAc_ac_c* getActor(); - /* 802381C0 */ void getpTalkActor(); - /* 802381D4 */ void getIdx(); - /* 802381E8 */ void getNodeIdx(); - /* 802381FC */ void setStatus(u16); + /* 802381C0 */ static fopAc_ac_c* getpTalkActor(); + /* 802381D4 */ static u32 getIdx(); + /* 802381E8 */ static u16 getNodeIdx(); + /* 802381FC */ static void setStatus(u16); /* 8023822C */ static u16 getStatus(); /* 80238258 */ void getScrnDrawPtr(); /* 8023826C */ static void setTalkActor(fopAc_ac_c*); diff --git a/include/d/save/d_save.h b/include/d/save/d_save.h index f5934842ce..dc3880cf18 100644 --- a/include/d/save/d_save.h +++ b/include/d/save/d_save.h @@ -678,6 +678,7 @@ class dSv_fishing_info_c { public: void init(); void addFishCount(u8 i_fishIndex); + u16 getFishCount(u8 i_fishIndex) { return mFishCount[i_fishIndex]; } private: /* 0x00 */ u16 mFishCount[16]; @@ -768,6 +769,7 @@ public: dSv_player_get_item_c& getGetItem() { return mGetItem; } dSv_player_config_c& getConfig() { return mConfig; } dSv_letter_info_c& getLetterInfo() { return mLetterInfo; } + dSv_fishing_info_c& getFishingInfo() { return mFishingInfo; } dSv_player_field_last_stay_info_c& getPlayerFieldLastStayInfo() { return mPlayerFieldLastStayInfo; } |
