dBgS: Add release-elided functions to interface

This commit is contained in:
Lioncash 2021-01-22 21:40:55 -05:00
parent b5c8715cb9
commit 54cccdeb12
2 changed files with 15 additions and 13 deletions

View File

@ -13,7 +13,18 @@ public:
dBgS_PolyPassChk();
~dBgS_PolyPassChk();
bool ChkArrow() { return mArrow; }
bool ChkBomb() { return mBomb; }
bool ChkBoomerang() { return mBoomerang; }
bool ChkCam() { return mCamera; }
bool ChkHorse() { return mHorse; }
bool ChkIronBall() { return mIronBall; }
bool ChkLink() { return mLink; }
bool ChkNoHorse();
bool ChkObj() { return mObject; }
bool ChkRope() { return mRope; }
bool ChkStatue() { return mStatue; }
bool ChkUnderwaterRoof() { return mUnderwaterRoof; }
void ClrBomb();
void ClrCam();

View File

@ -10,17 +10,7 @@ dBgS_PolyPassChk::dBgS_PolyPassChk()
dBgS_PolyPassChk::~dBgS_PolyPassChk() {}
void dBgS_PolyPassChk::SetPassChkInfo(dBgS_PolyPassChk& chk) {
mObject = chk.mObject;
mCamera = chk.mCamera;
mLink = chk.mLink;
mArrow = chk.mArrow;
mBomb = chk.mBomb;
mBoomerang = chk.mBoomerang;
mRope = chk.mRope;
mUnderwaterRoof = chk.mUnderwaterRoof;
mHorse = chk.mHorse;
mStatue = chk.mStatue;
mIronBall = chk.mIronBall;
*this = chk;
}
void dBgS_PolyPassChk::SetObj() {
@ -76,10 +66,11 @@ void dBgS_PolyPassChk::SetHorse() {
}
bool dBgS_PolyPassChk::ChkNoHorse() {
if (mObject || mCamera || mLink || mArrow || mBomb || mBoomerang || mRope || mUnderwaterRoof) {
if (ChkObj() || ChkCam() || ChkLink() || ChkArrow() || ChkBomb() || ChkBoomerang() ||
ChkRope() || ChkUnderwaterRoof()) {
return true;
}
return !mHorse;
return !ChkHorse();
}
void dBgS_PolyPassChk::SetStatue() {