summaryrefslogtreecommitdiff
path: root/include/d/com
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2022-02-06 06:23:54 -0800
committerGitHub <noreply@github.com>2022-02-06 09:23:54 -0500
commit3a79e96e8b033e26a3970da68d0633010fac0f03 (patch)
tree4f96139d922bc2af03685bca121fb327723447f2 /include/d/com
parent612f26c132280da43ecfa5fa8c8cc32966f06eb6 (diff)
d_meter2 wip / d_s_play / d_file_sel_info (#179)
* d_meter2 wip * d_s_play * d_file_sel_info * format * tag_lv5soup / tag_setBall / fix dKyeff * d_cc_uty
Diffstat (limited to 'include/d/com')
-rw-r--r--include/d/com/d_com_inf_game.h226
1 files changed, 221 insertions, 5 deletions
diff --git a/include/d/com/d_com_inf_game.h b/include/d/com/d_com_inf_game.h
index 352eb23c04..050868de06 100644
--- a/include/d/com/d_com_inf_game.h
+++ b/include/d/com/d_com_inf_game.h
@@ -178,6 +178,19 @@ public:
mCStickDirection = param_1;
mCStickSetFlag = flag;
}
+ void setCStickStatusForce(u8 status, u8 param_1, u8 flag) {
+ mCStickStatusForce = status;
+ mCStickDirectionForce = param_1;
+ mCStickSetFlagForce = flag;
+ }
+ void setSButtonStatus(u8 status, u8 flag) {
+ mSButtonStatus = status;
+ mSButtonSetFlag = flag;
+ }
+ void setSButtonStatusForce(u8 status, u8 flag) {
+ mSButtonStatusForce = status;
+ mSButtonSetFlagForce = flag;
+ }
void setItemLifeCount(float hearts, u8 type) {
mItemLifeCount += hearts;
mItemLifeCountType = type;
@@ -220,6 +233,10 @@ public:
const char* getStartStageName() { return mStartStage.getName(); }
s8 getStartStageRoomNo() { return mStartStage.getRoomNo(); }
s8 getStartStageLayer() { return mStartStage.getLayer(); }
+ const char* getNextStageName() { return mNextStage.getName(); }
+ dStage_startStage_c* getNextStartStage() { return &mNextStage; }
+ s8 getNextStageRoomNo() { return mNextStage.getRoomNo(); }
+ s8 getNextStageLayer() { return mNextStage.getLayer(); }
u8 isHeapLockFlag() { return mHeapLockFlag; }
void setHeapLockFlag(u8 status) { mHeapLockFlag = status; }
void setSubHeapLockFlag(int idx, u8 status) { mSubHeapLockFlag[idx] = status; }
@@ -235,6 +252,10 @@ public:
s16 getStartStagePoint() { return mStartStage.getPoint(); }
s8 getStartStageDarkArea() { return mStartStage.getDarkArea(); }
void setStartStageDarkArea(s8 darkArea) { mStartStage.setDarkArea(darkArea); }
+ void setStartStageLayer(s8 layer) { mStartStage.setLayer(layer); }
+ s16 getNextStagePoint() { return mNextStage.getPoint(); }
+ s8 getNextStageWipe() { return mNextStage.getWipe(); }
+ bool isEnableNextStage() { return mNextStage.isEnable(); }
void* getPlayerPtr(int ptrIdx) { return mPlayerPtr[ptrIdx]; }
void* getPlayer(int idx) { return mPlayer[idx]; }
JKRArchive* getMain2DArchive() { return mMain2DArchive; }
@@ -260,6 +281,25 @@ public:
void offPauseFlag() { mPauseFlag = false; }
camera_class* getCamera(int idx) { return mCameraInfo[idx].mCamera; }
s32 checkStatus(u16 flags) { return flags & mStatus; }
+ s16 getItemPachinkoNumCount() { return mItemPachinkoNumCount; }
+ void clearItemPachinkoNumCount() { mItemPachinkoNumCount = 0; }
+ u8 getSButtonStatusForce() { return mSButtonStatusForce; }
+ u8 getSButtonSetFlagForce() { return mSButtonSetFlagForce; }
+ u8 getCStickStatusForce() { return mCStickStatusForce; }
+ u8 getCStickSetFlagForce() { return mCStickSetFlagForce; }
+ u8 getCStickDirectionForce() { return mCStickDirectionForce; }
+ bool isCStickSetFlag(u8 flag) { return mCStickSetFlag & flag; }
+ void show2dOn() { mShow2D = 1; }
+ s16 getItemMaxLifeCount() { return mItemMaxLifeCount; }
+ f32 getItemLifeCount() { return mItemLifeCount; }
+ void clearItemMaxLifeCount() { mItemMaxLifeCount = 0; }
+ void clearItemLifeCount() {
+ mItemLifeCount = 0.0f;
+ mItemLifeCountType = 0;
+ }
+ void setCameraParamFileName(int i, char* name) { mCameraInfo[i].mCameraParamFileName = name; }
+ s8 getLayerOld() { return mLayerOld; }
+ void setStatus(u16 status) { mStatus = status; }
public:
/* 0x00000 */ dBgS mDBgS;
@@ -302,7 +342,7 @@ public:
/* 0x04E04 */ dPa_control_c* mParticle;
/* 0x04E08 */ void* mSimpleModel;
/* 0x04E0C */ u8 mWindowNum;
- /* 0x04E0D */ u8 mLayerOld;
+ /* 0x04E0D */ s8 mLayerOld;
/* 0x04E0E */ u16 mStatus;
/* 0x04E10 */ dDlst_window_c mWindow[1];
/* 0x04E3C */ dComIfG_camera_info_class mCameraInfo[1];
@@ -515,6 +555,8 @@ extern GXColor g_blackColor;
extern GXColor g_clearColor;
extern GXColor g_whiteColor;
+typedef int (**request_of_phase_process_fn)(void*);
+
void dComIfGp_setItemLifeCount(float, u8);
void dComIfGp_setItemRupeeCount(long);
int dComIfGs_isItemFirstBit(u8);
@@ -538,7 +580,7 @@ void dComIfGs_setWarpMarkFlag(u8);
void dComIfGs_setSelectEquipSword(u8);
void dComIfGs_setSelectEquipShield(u8);
void* dComIfG_getStageRes(char const*);
-void dComLbG_PhaseHandler(request_of_phase_process_class*, int (**param_1)(void*), void*);
+void dComLbG_PhaseHandler(request_of_phase_process_class*, request_of_phase_process_fn, void*);
void dComIfGp_addSelectItemNum(int, s16);
BOOL dComIfGs_isOneZoneSwitch(int, int);
u8 dComIfGp_getSelectItem(int);
@@ -559,6 +601,12 @@ bool dComIfGp_checkMapShow();
s32 dComIfGp_setHeapLockFlag(u8);
s8 dComIfGs_sense_type_change_Get();
u8 dComIfGp_world_dark_get();
+JKRExpHeap* dComIfGp_getSubHeap2D(int);
+void dComIfGp_world_dark_set(u8);
+void dComIfGs_BossLife_public_Set(s8);
+
+class scene_class;
+BOOL dComIfG_resetToOpening(scene_class*);
inline void dComIfGp_setRStatus(u8 status, u8 flag) {
g_dComIfG_gameInfo.play.setRStatus(status, flag);
@@ -857,6 +905,30 @@ inline const char* dComIfGp_getStartStageName() {
return g_dComIfG_gameInfo.play.getStartStageName();
}
+inline const char* dComIfGp_getNextStageName() {
+ return g_dComIfG_gameInfo.play.getNextStageName();
+}
+
+inline dStage_startStage_c* dComIfGp_getNextStartStage() {
+ return g_dComIfG_gameInfo.play.getNextStartStage();
+}
+
+inline s8 dComIfGp_getNextStageRoomNo() {
+ return g_dComIfG_gameInfo.play.getNextStageRoomNo();
+}
+
+inline s8 dComIfGp_getNextStageLayer() {
+ return g_dComIfG_gameInfo.play.getNextStageLayer();
+}
+
+inline s32 dComIfGp_getNextStageWipe() {
+ return g_dComIfG_gameInfo.play.getNextStageWipe();
+}
+
+inline bool dComIfGp_isEnableNextStage() {
+ return g_dComIfG_gameInfo.play.isEnableNextStage();
+}
+
inline void dComIfGd_reset() {
g_dComIfG_gameInfo.drawlist.reset();
}
@@ -975,10 +1047,18 @@ inline int dComIfG_setObjectRes(const char* name, u8 param_1, JKRHeap* heap) {
return g_dComIfG_gameInfo.mResControl.setObjectRes(name, param_1, heap);
}
+inline int dComIfG_setStageRes(const char* name, JKRHeap* heap) {
+ return g_dComIfG_gameInfo.mResControl.setStageRes(name, heap);
+}
+
inline int dComIfG_syncObjectRes(const char* name) {
return g_dComIfG_gameInfo.mResControl.syncObjectRes(name);
}
+inline int dComIfG_syncStageRes(const char* name) {
+ return g_dComIfG_gameInfo.mResControl.syncStageRes(name);
+}
+
inline JKRExpHeap* dComIfGp_getExpHeap2D() {
return g_dComIfG_gameInfo.play.getExpHeap2D();
}
@@ -1003,8 +1083,8 @@ inline s64 dComIfGs_getSaveTotalTime() {
return g_dComIfG_gameInfo.info.getSaveTotalTime();
}
-inline dSv_save_c& dComIfGs_getSaveData() {
- return g_dComIfG_gameInfo.info.getSavedata();
+inline dSv_save_c* dComIfGs_getSaveData() {
+ return &g_dComIfG_gameInfo.info.getSavedata();
}
inline void dComIfGs_setLineUpItem() {
@@ -1107,6 +1187,10 @@ inline s16 dComIfGp_getStartStagePoint() {
return g_dComIfG_gameInfo.play.getStartStagePoint();
}
+inline s16 dComIfGp_getNextStagePoint() {
+ return g_dComIfG_gameInfo.play.getNextStagePoint();
+}
+
inline void dComIfGs_initZone() {
g_dComIfG_gameInfo.info.initZone();
}
@@ -1167,6 +1251,10 @@ inline dBgS& dComIfG_Bgsp() {
return g_dComIfG_gameInfo.play.mDBgS;
}
+inline dCcS* dComIfG_Ccsp() {
+ return &g_dComIfG_gameInfo.play.mDCcS;
+}
+
inline s16 dComIfGs_getStartPoint() {
return g_dComIfG_gameInfo.info.getRestart().getStartPoint();
}
@@ -1199,7 +1287,7 @@ inline void dComIfGp_set3DStatus(u8 status, u8 direction, u8 flag) {
g_dComIfG_gameInfo.play.set3DStatus(status, direction, flag);
}
-inline s32 dComIfGs_getLastSceneMode() {
+inline u32 dComIfGs_getLastSceneMode() {
return g_dComIfG_gameInfo.info.getRestart().getLastMode();
}
@@ -1450,6 +1538,26 @@ inline void dComIfGp_setCStickStatus(u8 param_0, u8 param_1, u8 param_2) {
g_dComIfG_gameInfo.play.setCStickStatus(param_0, param_1, param_2);
}
+inline void dComIfGp_setCStickStatusForce(u8 param_0, u8 param_1, u8 param_2) {
+ g_dComIfG_gameInfo.play.setCStickStatusForce(param_0, param_1, param_2);
+}
+
+inline u8 dComIfGp_getCStickDirectionForce() {
+ return g_dComIfG_gameInfo.play.getCStickDirectionForce();
+}
+
+inline u8 dComIfGp_getCStickStatusForce() {
+ return g_dComIfG_gameInfo.play.getCStickStatusForce();
+}
+
+inline u8 dComIfGp_getCStickSetFlagForce() {
+ return g_dComIfG_gameInfo.play.getCStickSetFlagForce();
+}
+
+inline bool dComIfGp_isCStickSetFlag(u8 flag) {
+ return g_dComIfG_gameInfo.play.isCStickSetFlag(flag);
+}
+
inline void* dComIfG_getObjectIDRes(const char* arc_name, u16 id) {
return g_dComIfG_gameInfo.mResControl.getObjectIDRes(arc_name, id);
}
@@ -1536,6 +1644,10 @@ inline u8 dComIfG_getBrightness() {
return g_dComIfG_gameInfo.mFadeBrightness;
}
+inline void dComIfG_setBrightness(u8 brightness) {
+ g_dComIfG_gameInfo.mFadeBrightness = brightness;
+}
+
inline void dComIfGd_drawListItem3d() {
g_dComIfG_gameInfo.drawlist.drawOpaListItem3d();
g_dComIfG_gameInfo.drawlist.drawXluListItem3d();
@@ -1545,4 +1657,108 @@ inline void dComIfGd_init() {
g_dComIfG_gameInfo.drawlist.init();
}
+inline s16 dComIfGp_getItemPachinkoNumCount() {
+ return g_dComIfG_gameInfo.play.getItemPachinkoNumCount();
+}
+
+inline void dComIfGp_clearItemPachinkoNumCount() {
+ g_dComIfG_gameInfo.play.clearItemPachinkoNumCount();
+}
+
+inline u8 dComIfGp_getSButtonStatusForce() {
+ return g_dComIfG_gameInfo.play.getSButtonStatusForce();
+}
+
+inline u8 dComIfGp_getSButtonSetFlagForce() {
+ return g_dComIfG_gameInfo.play.getSButtonSetFlagForce();
+}
+
+inline void dComIfGp_setSButtonStatus(u8 status, u8 flag) {
+ g_dComIfG_gameInfo.play.setSButtonStatus(status, flag);
+}
+
+inline void dComIfGp_setSButtonStatusForce(u8 status, u8 flag) {
+ g_dComIfG_gameInfo.play.setSButtonStatusForce(status, flag);
+}
+
+inline void dComIfGp_2dShowOn() {
+ g_dComIfG_gameInfo.play.show2dOn();
+}
+
+inline s16 dComIfGp_getItemMaxLifeCount() {
+ return g_dComIfG_gameInfo.play.getItemMaxLifeCount();
+}
+
+inline f32 dComIfGp_getItemLifeCount() {
+ return g_dComIfG_gameInfo.play.getItemLifeCount();
+}
+
+inline void dComIfGp_clearItemMaxLifeCount() {
+ g_dComIfG_gameInfo.play.clearItemMaxLifeCount();
+}
+
+inline void dComIfGp_clearItemLifeCount() {
+ g_dComIfG_gameInfo.play.clearItemLifeCount();
+}
+
+inline u8 dComIfGp_getItemLifeCountType() {
+ return g_dComIfG_gameInfo.play.getItemLifeCountType();
+}
+
+inline void dComIfGp_particle_cleanup() {
+ g_dComIfG_gameInfo.play.getParticle()->cleanup();
+}
+
+inline void dComIfGp_setCameraParamFileName(int i, char* name) {
+ g_dComIfG_gameInfo.play.setCameraParamFileName(i, name);
+}
+
+inline void dComIfGs_onDarkClearLV(int lv) {
+ g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusB().onDarkClearLV(lv);
+}
+
+inline void dComIfGs_onTransformLV(int lv) {
+ g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusB().onTransformLV(lv);
+}
+
+inline s8 dComIfGp_getLayerOld() {
+ return g_dComIfG_gameInfo.play.getLayerOld();
+}
+
+inline void dComIfGp_setStartStageLayer(s8 layer) {
+ g_dComIfG_gameInfo.play.setStartStageLayer(layer);
+}
+
+inline void dComIfGs_onSaveDunSwitch(int flag) {
+ g_dComIfG_gameInfo.info.getDan().onSwitch(flag);
+}
+
+inline void dComIfGp_setStatus(u16 status) {
+ g_dComIfG_gameInfo.play.setStatus(status);
+}
+
+inline int dComIfG_syncAllObjectRes() {
+ return g_dComIfG_gameInfo.mResControl.syncAllObjectRes();
+}
+
+inline void dComIfGp_particle_readScene(u8 particle_no, mDoDvdThd_toMainRam_c** param_1) {
+ g_dComIfG_gameInfo.play.getParticle()->readScene(particle_no, param_1);
+}
+
+inline void dComIfGp_particle_calc3D() {
+ g_dComIfG_gameInfo.play.getParticle()->calc3D();
+}
+
+inline void dComIfGp_particle_calc2D() {
+ g_dComIfG_gameInfo.play.getParticle()->calc2D();
+}
+
+inline u8 dComIfGs_getDataNum() {
+ return g_dComIfG_gameInfo.info.getDataNum();
+}
+
+inline char* dComIfGs_getPlayerName() {
+ return g_dComIfG_gameInfo.info.getPlayer().getPlayerInfo().getLinkName();
+}
+
#endif /* D_COM_D_COM_INF_GAME_H */