mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-03 00:53:47 -04:00
wip
This commit is contained in:
+27
-23
@@ -14,12 +14,12 @@ public:
|
||||
|
||||
class dMeterMap_c;
|
||||
|
||||
class dMeter2_c {
|
||||
class dMeter2_c : public msg_class {
|
||||
public:
|
||||
/* 8021EA14 */ void _create();
|
||||
/* 8021F128 */ void _execute();
|
||||
/* 8021F370 */ void _draw();
|
||||
/* 8021F49C */ void _delete();
|
||||
/* 8021EA14 */ int _create();
|
||||
/* 8021F128 */ int _execute();
|
||||
/* 8021F370 */ int _draw();
|
||||
/* 8021F49C */ int _delete();
|
||||
/* 8021F6EC */ void emphasisButtonDelete();
|
||||
/* 8021F780 */ void setLifeZero();
|
||||
/* 8021F7B0 */ void checkStatus();
|
||||
@@ -61,6 +61,8 @@ public:
|
||||
/* 802259F8 */ void isArrowEquip();
|
||||
/* 80225A64 */ void isPachinkoEquip();
|
||||
|
||||
void setNowLifeGauge(s16 life) { mNowLifeGauge = life; }
|
||||
|
||||
private:
|
||||
/* 0x100 */ JKRExpHeap* mpHeap;
|
||||
/* 0x104 */ JKRExpHeap* mpSubHeap;
|
||||
@@ -72,7 +74,7 @@ private:
|
||||
/* 0x11C */ void* field_0x11c;
|
||||
/* 0x120 */ dMeterMap_c* mpMap;
|
||||
/* 0x124 */ u32 field_0x124;
|
||||
/* 0x128 */ int field_0x128;
|
||||
/* 0x128 */ u32 field_0x128;
|
||||
/* 0x12C */ int field_0x12c;
|
||||
/* 0x130 */ f32 field_0x130;
|
||||
/* 0x134 */ f32 field_0x134[2];
|
||||
@@ -90,22 +92,22 @@ private:
|
||||
/* 0x18C */ f32 field_0x18c;
|
||||
/* 0x190 */ s16 field_0x190;
|
||||
/* 0x192 */ s16 mNowLifeGauge;
|
||||
/* 0x194 */ s16 field_0x194;
|
||||
/* 0x196 */ s16 field_0x196;
|
||||
/* 0x198 */ s16 field_0x198;
|
||||
/* 0x194 */ s16 mMaxLife;
|
||||
/* 0x196 */ s16 mNowMagic;
|
||||
/* 0x198 */ s16 mMaxMagic;
|
||||
/* 0x19A */ s16 field_0x19a;
|
||||
/* 0x19C */ int field_0x19c;
|
||||
/* 0x1A0 */ int field_0x1a0;
|
||||
/* 0x1A4 */ int field_0x1a4;
|
||||
/* 0x1A8 */ int field_0x1a8;
|
||||
/* 0x19C */ int mNowOil;
|
||||
/* 0x1A0 */ int mMaxOil;
|
||||
/* 0x1A4 */ int mNowOxygen;
|
||||
/* 0x1A8 */ int mMaxOxygen;
|
||||
/* 0x1AC */ int field_0x1ac;
|
||||
/* 0x1B0 */ u16 field_0x1b0;
|
||||
/* 0x1B2 */ u16 field_0x1b2;
|
||||
/* 0x1B0 */ u16 mRupeeNum;
|
||||
/* 0x1B2 */ u16 mKeyNum;
|
||||
/* 0x1B4 */ u16 field_0x1b4;
|
||||
/* 0x1B6 */ u16 mSubContentsStringType;
|
||||
/* 0x1B8 */ u16 field_0x1b8[5];
|
||||
/* 0x1C2 */ u8 field_0x1c2;
|
||||
/* 0x1C3 */ u8 field_0x1c3;
|
||||
/* 0x1C2 */ u8 mLightDropNum;
|
||||
/* 0x1C3 */ u8 mNeedLightDropNum;
|
||||
/* 0x1C4 */ u8 field_0x1c4;
|
||||
/* 0x1C5 */ u8 field_0x1c5;
|
||||
/* 0x1C6 */ u8 field_0x1c6;
|
||||
@@ -123,8 +125,8 @@ private:
|
||||
/* 0x1D2 */ u8 field_0x1d2[4];
|
||||
/* 0x1D6 */ u8 field_0x1d6[2];
|
||||
/* 0x1D8 */ u8 field_0x1d8[2];
|
||||
/* 0x1DA */ u8 field_0x1da;
|
||||
/* 0x1DB */ u8 field_0x1db;
|
||||
/* 0x1DA */ u8 mArrowNum;
|
||||
/* 0x1DB */ u8 mPachinkoNum;
|
||||
/* 0x1DC */ u8 field_0x1dc;
|
||||
/* 0x1DD */ u8 field_0x1dd;
|
||||
/* 0x1DE */ u8 field_0x1de;
|
||||
@@ -144,10 +146,10 @@ private:
|
||||
/* 0x1EC */ u8 field_0x1ec;
|
||||
/* 0x1ED */ u8 field_0x1ed;
|
||||
/* 0x1EE */ u8 field_0x1ee;
|
||||
/* 0x1EF */ u8 field_0x1ef[4];
|
||||
/* 0x1F3 */ u8 field_0x1f3[3];
|
||||
/* 0x1F6 */ u8 field_0x1f6[3];
|
||||
/* 0x1F9 */ u8 field_0x1f9[4];
|
||||
/* 0x1EF */ u8 mBottleNum[4];
|
||||
/* 0x1F3 */ u8 mBombNum[3];
|
||||
/* 0x1F6 */ u8 mBombMax[3];
|
||||
/* 0x1F9 */ u8 mItemMaxNum[4];
|
||||
/* 0x1FD */ u8 field_0x1fd;
|
||||
/* 0x1FE */ u8 field_0x1fe;
|
||||
/* 0x1FF */ u8 field_0x1ff;
|
||||
@@ -155,4 +157,6 @@ private:
|
||||
/* 0x201 */ u8 field_0x201;
|
||||
};
|
||||
|
||||
typedef int (*dMeter2_Method)(dMeter2_c*);
|
||||
|
||||
#endif /* D_METER_D_METER2_H */
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
/* 80215A94 */ void setAlphaOxygenAnimeMax();
|
||||
/* 80215B18 */ void drawLightDrop(u8, u8, f32, f32, f32, f32, u8);
|
||||
/* 80215DA4 */ void setAlphaLightDropChange(bool);
|
||||
/* 80215DA8 */ void getNowLightDropRateCalc();
|
||||
/* 80215DA8 */ f32 getNowLightDropRateCalc();
|
||||
/* 80215E40 */ void setAlphaLightDropAnimeMin();
|
||||
/* 80215F88 */ void setAlphaLightDropAnimeMax();
|
||||
/* 8021632C */ void drawRupee(s16);
|
||||
@@ -114,6 +114,8 @@ public:
|
||||
|
||||
/* 802102F8 */ virtual ~dMeter2Draw_c();
|
||||
|
||||
J2DScreen* getMainScreenPtr() { return mpScreen; }
|
||||
|
||||
private:
|
||||
/* 0x004 */ f32 field_0x4;
|
||||
/* 0x008 */ f32 field_0x8;
|
||||
@@ -210,9 +212,9 @@ private:
|
||||
/* 0x518 */ J2DPicture* mpItemXYPane[3];
|
||||
/* 0x524 */ int field_0x524[2][2];
|
||||
/* 0x534 */ u8 field_0x534[8];
|
||||
/* 0x53C */ void* field_0x53c;
|
||||
/* 0x540 */ J2DAnmBase* field_0x540; // bpk
|
||||
/* 0x544 */ J2DAnmBase* field_0x544; // bpk
|
||||
/* 0x53C */ J2DAnmColorKey* field_0x53c;
|
||||
/* 0x540 */ J2DAnmColorKey* field_0x540; // bpk
|
||||
/* 0x544 */ J2DAnmColorKey* field_0x544; // bpk
|
||||
/* 0x548 */ u8 field_0x548[8];
|
||||
/* 0x550 */ f32 field_0x550;
|
||||
/* 0x554 */ f32 field_0x554;
|
||||
@@ -227,7 +229,35 @@ private:
|
||||
/* 0x578 */ f32 field_0x578;
|
||||
/* 0x57C */ f32 field_0x57c;
|
||||
/* 0x580 */ f32 field_0x580;
|
||||
/* 0x584 */ u8 field_0x584[0x78];
|
||||
/* 0x584 */ f32 field_0x584;
|
||||
/* 0x588 */ f32 field_0x588;
|
||||
/* 0x58C */ f32 field_0x58c;
|
||||
/* 0x590 */ f32 field_0x590;
|
||||
/* 0x594 */ f32 field_0x594;
|
||||
/* 0x598 */ f32 field_0x598;
|
||||
/* 0x59C */ f32 field_0x59c;
|
||||
/* 0x5A0 */ f32 field_0x5a0;
|
||||
/* 0x5A4 */ f32 field_0x5a4;
|
||||
/* 0x5A8 */ f32 field_0x5a8;
|
||||
/* 0x5AC */ f32 field_0x5ac;
|
||||
/* 0x5B0 */ f32 field_0x5b0;
|
||||
/* 0x5B4 */ f32 field_0x5b4;
|
||||
/* 0x5B8 */ f32 field_0x5b8;
|
||||
/* 0x5BC */ f32 field_0x5bc;
|
||||
/* 0x5C0 */ f32 field_0x5c0;
|
||||
/* 0x5C4 */ f32 field_0x5c4;
|
||||
/* 0x5C8 */ f32 field_0x5c8;
|
||||
/* 0x5CC */ f32 field_0x5cc;
|
||||
/* 0x5D0 */ f32 field_0x5d0;
|
||||
/* 0x5D4 */ f32 field_0x5d4;
|
||||
/* 0x5D8 */ f32 field_0x5d8;
|
||||
/* 0x5DC */ f32 field_0x5dc;
|
||||
/* 0x5E0 */ f32 field_0x5e0;
|
||||
/* 0x5E4 */ f32 field_0x5e4;
|
||||
/* 0x5E8 */ f32 field_0x5e8;
|
||||
/* 0x5EC */ f32 field_0x5ec;
|
||||
/* 0x5F0 */ f32 field_0x5f0;
|
||||
/* 0x5F4 */ u8 field_0x5f4[0x8];
|
||||
/* 0x5FC */ f32 field_0x5fc[3];
|
||||
/* 0x608 */ f32 field_0x608;
|
||||
/* 0x60C */ f32 field_0x60c;
|
||||
|
||||
@@ -129,8 +129,12 @@ public:
|
||||
const char* getWarpStageName() { return mWarpInfo.mStageName; }
|
||||
void setNowCount(u8 count) { mNowCount = count; }
|
||||
void setMaxCount(u8 count) { mMaxCount = count; }
|
||||
void allUseButton() { mUseButton = -1; }
|
||||
bool isUseButton(int param_0) { return param_0 & mUseButton; }
|
||||
void setMeterMapClass(dMeterMap_c* p_map) { mMeterMap = p_map; }
|
||||
void resetGameStatus() { mGameStatus = 0; }
|
||||
|
||||
private:
|
||||
public:
|
||||
/* 0x04 */ u8 unk4[4];
|
||||
/* 0x08 */ u64 unk8;
|
||||
/* 0x10 */ void* mMsgResource;
|
||||
@@ -277,4 +281,28 @@ inline void dMeter2Info_setMaxCount(u8 count) {
|
||||
g_meter2_info.setMaxCount(count);
|
||||
}
|
||||
|
||||
inline bool dMeter2Info_isDirectUseItem(int param_0) {
|
||||
return g_meter2_info.isDirectUseItem(param_0);
|
||||
}
|
||||
|
||||
inline bool dMeter2Info_isUseButton(int param_0) {
|
||||
return g_meter2_info.isUseButton(param_0);
|
||||
}
|
||||
|
||||
inline void dMeter2Info_setMeterMapClass(dMeterMap_c* p_map) {
|
||||
g_meter2_info.setMeterMapClass(p_map);
|
||||
}
|
||||
|
||||
inline void dMeter2Info_decHotSpringTimer() {
|
||||
g_meter2_info.decHotSpringTimer();
|
||||
}
|
||||
|
||||
inline void dMeter2Info_allUseButton() {
|
||||
g_meter2_info.allUseButton();
|
||||
}
|
||||
|
||||
inline void dMeter2Info_resetGameStatus() {
|
||||
g_meter2_info.resetGameStatus();
|
||||
}
|
||||
|
||||
#endif /* D_METER_D_METER2_INFO_H */
|
||||
|
||||
@@ -1380,4 +1380,10 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dMeter_cursorHIO_c) == 68);
|
||||
|
||||
extern dMeter_menuHIO_c g_menuHIO;
|
||||
extern dMeter_drawHIO_c g_drawHIO;
|
||||
extern dMeter_ringHIO_c g_ringHIO;
|
||||
extern dMeter_fmapHIO_c g_fmapHIO;
|
||||
extern dMeter_cursorHIO_c g_cursorHIO;
|
||||
|
||||
#endif /* D_METER_D_METER_HIO_H */
|
||||
|
||||
@@ -8,7 +8,7 @@ class dMeterMap_c {
|
||||
public:
|
||||
/* 8020D49C */ void isEnableDispMap();
|
||||
/* 8020D528 */ void getMapDispSizeTypeNo();
|
||||
/* 8020D650 */ void isEnableDispMapAndMapDispSizeTypeNo();
|
||||
/* 8020D650 */ static bool isEnableDispMapAndMapDispSizeTypeNo();
|
||||
/* 8020D690 */ void getMapDispEdgeBottomY_Layout();
|
||||
/* 8020D698 */ void isEventRunCheck();
|
||||
/* 8020D72C */ void getMapDispEdgeLeftX_Layout();
|
||||
@@ -31,8 +31,10 @@ public:
|
||||
/* 8020E4C8 */ void isShow(u32);
|
||||
/* 8020E620 */ void isFmapScreen();
|
||||
/* 8020E70C */ void isDmapScreen();
|
||||
/* 8020E754 */ void meter_map_move(u32);
|
||||
/* 8020E754 */ static void meter_map_move(u32);
|
||||
/* 8020E9CC */ void keyCheck();
|
||||
|
||||
u8 field_0x0[0x34];
|
||||
};
|
||||
|
||||
#endif /* D_METER_D_METER_MAP_H */
|
||||
|
||||
Reference in New Issue
Block a user