summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-03-22 05:56:28 -0700
committerGitHub <noreply@github.com>2024-03-22 14:56:28 +0200
commitc662719bfcb0dedeb46c9df87d6089b2a91efc81 (patch)
treefccb0ba04e6c4c0e2648f95ba5e1c484360eefd7 /include
parent5845e695ceaa1c0a86f9a25bb9743bae2b4ba674 (diff)
work / documentation on d_a_b_ds (#2104)
* document / cleanup a good chunk of d_a_b_ds * fix d_a_b_ds nonmatching file
Diffstat (limited to 'include')
-rw-r--r--include/f_op/f_op_actor_mng.h2
-rw-r--r--include/global.h2
-rw-r--r--include/rel/d/a/b/d_a_b_ds/d_a_b_ds.h72
3 files changed, 18 insertions, 58 deletions
diff --git a/include/f_op/f_op_actor_mng.h b/include/f_op/f_op_actor_mng.h
index 887f5427d2..feef23fae3 100644
--- a/include/f_op/f_op_actor_mng.h
+++ b/include/f_op/f_op_actor_mng.h
@@ -534,7 +534,7 @@ s32 fopAcM_createItemFromTable(cXyz const* p_pos, int i_tableNo, int i_itemBitNo
s32 fopAcM_createDemoItem(const cXyz* p_pos, int itemNo, int itemBitNo, const csXyz* p_angle,
int roomNo, const cXyz* scale, u8 param_7);
-s32 fopAcM_createItemForBoss(const cXyz* p_pos, int param_2, int roomNo, const csXyz* p_angle,
+s32 fopAcM_createItemForBoss(const cXyz* p_pos, int i_itemNo, int roomNo, const csXyz* p_angle,
const cXyz* p_scale, f32 speedF, f32 speedY, int param_8);
s32 fopAcM_createItemForMidBoss(const cXyz* p_pos, int i_itemNo, int i_roomNo, const csXyz* p_angle,
diff --git a/include/global.h b/include/global.h
index 9898b9f220..83f1c98364 100644
--- a/include/global.h
+++ b/include/global.h
@@ -35,4 +35,6 @@ inline BOOL checkEqual(s32 a, s32 b) {
return (u32)__cntlzw(a - b) >> 5;
}
+#define FAST_DIV(x, n) (x >> (n / 2))
+
#endif
diff --git a/include/rel/d/a/b/d_a_b_ds/d_a_b_ds.h b/include/rel/d/a/b/d_a_b_ds/d_a_b_ds.h
index 419372d677..a58d04c431 100644
--- a/include/rel/d/a/b/d_a_b_ds/d_a_b_ds.h
+++ b/include/rel/d/a/b/d_a_b_ds/d_a_b_ds.h
@@ -12,12 +12,12 @@
class daB_DS_c : public fopEn_enemy_c {
public:
- enum Type {
- /* 0 */ PHASE_1,
- /* 1 */ BULLET_A,
- /* 2 */ PHASE_2,
- /* 3 */ BULLET_B,
- /* 4 */ BULLET_C,
+ enum Arg0 {
+ /* 0 */ TYPE_BATTLE_1,
+ /* 1 */ TYPE_BULLET_A,
+ /* 2 */ TYPE_BATTLE_2,
+ /* 3 */ TYPE_BULLET_B,
+ /* 4 */ TYPE_BULLET_C,
};
enum Action {
@@ -225,9 +225,9 @@ public:
/* 0x07D2 */ s16 field_0x7d2;
/* 0x07D4 */ f32 mBreathTimerBase;
/* 0x07D8 */ f32 mBulletRadius;
- /* 0x07DC */ f32 field_0x7dc[3];
- /* 0x07E8 */ f32 field_0x7e8;
- /* 0x07EC */ f32 field_0x7ec;
+ /* 0x07DC */ f32 mBackboneCrackAlpha[3];
+ /* 0x07E8 */ f32 mEyeColorAlpha;
+ /* 0x07EC */ f32 mCrackAlpha;
/* 0x07F0 */ f32 mBulletDistance;
/* 0x07F4 */ f32 mChkHigh;
/* 0x07F8 */ f32 field_0x7f8;
@@ -239,7 +239,7 @@ public:
/* 0x0810 */ f32 mWallR;
/* 0x0814 */ int mBrokenBone;
/* 0x0818 */ int mTimerCount;
- /* 0x081C */ int mActionTimer;
+ /* 0x081C */ int mModeTimer;
/* 0x0820 */ int mHitTimer;
/* 0x0824 */ u8 field_0x824[4];
/* 0x0828 */ int mP2FallTimer;
@@ -254,17 +254,17 @@ public:
/* 0x084C */ u8 mAttackingHand;
/* 0x084D */ u8 field_0x84d;
/* 0x084E */ u8 mDamageTimer;
- /* 0x084F */ u8 mBackboneJoint;
+ /* 0x084F */ u8 mBackboneLevel;
/* 0x0850 */ bool mDead;
/* 0x0851 */ bool mIsDemo;
/* 0x0852 */ u8 mBossPhase;
/* 0x0853 */ bool mIsOpeningDemo;
/* 0x0854 */ bool mIsAppear;
/* 0x0855 */ bool mIsAppearG;
- /* 0x0856 */ u8 mType;
- /* 0x0857 */ u8 mBitSw;
- /* 0x0858 */ u8 mBitSw2;
- /* 0x0859 */ u8 mBitSw3;
+ /* 0x0856 */ u8 arg0;
+ /* 0x0857 */ u8 bitSw;
+ /* 0x0858 */ u8 bitSw2;
+ /* 0x0859 */ u8 bitSw3;
/* 0x085A */ bool mCreateFireBreath;
/* 0x085B */ bool mNoDrawSword;
/* 0x085C */ bool mDrawZant;
@@ -314,46 +314,4 @@ public:
STATIC_ASSERT(sizeof(daB_DS_c) == 0x2F28);
-class daB_DS_HIO_c {
-public:
- /* 805CB22C */ daB_DS_HIO_c();
-#ifdef NONMATCHING
- /* 805DC89C */ virtual ~daB_DS_HIO_c() {}
-#else
- /* 805DC89C */ ~daB_DS_HIO_c();
-#endif
-
-#ifndef NONMATCHING
- /* 0x00 */ void* _vtable;
-#endif
- /* 0x04 */ s8 field_0x04;
- /* 0x08 */ f32 mModelSize;
- /* 0x0C */ f32 mHandRange;
- /* 0x10 */ f32 mBreathRange;
- /* 0x14 */ f32 mGuardSpawnRange;
- /* 0x18 */ f32 mNoSearchRange;
- /* 0x1C */ f32 mP2MoveAxis;
- /* 0x20 */ f32 mP2ModelSize;
- /* 0x24 */ f32 mP2AttackHeight;
- /* 0x28 */ s16 mP2FallTime;
- /* 0x2A */ s16 mPedestalFallTime;
- /* 0x2C */ s16 mSandFallWaitTime;
- /* 0x2E */ s16 mP2BulletFireTime;
- /* 0x30 */ s16 mP2OuterWallAttackTime;
- /* 0x32 */ s16 mP2TrapCreateWaitTime1;
- /* 0x34 */ s16 mP2TrapCreateWaitTime2;
- /* 0x36 */ s16 mP2TrapCreateID1;
- /* 0x38 */ s16 mP2TrapCreateID2;
- /* 0x3A */ s16 mHintTime1;
- /* 0x3C */ s16 mHintTime2;
- /* 0x3E */ s16 mP2OuterWallTrapSpeed;
- /* 0x40 */ s16 mTowerTrapSpeed;
- /* 0x42 */ s16 mP2ApproachAccel;
- /* 0x44 */ s16 mP2ApproachSpeedMax;
- /* 0x46 */ s16 mP2ApproachAfterBullet;
- /* 0x48 */ s16 mP2ApproachDist;
- /* 0x4A */ s16 mP2Health;
- /* 0x4C */ bool mP2HealthDebugOn;
-};
-
#endif /* D_A_B_DS_H */