mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-29 23:38:09 -04:00
clean up some inlines
This commit is contained in:
@@ -1568,11 +1568,11 @@ static int daAgb_Create(fopAc_ac_c* i_this) {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
a_this->mCrrPos.Set(&fopAcM_GetPosition_p(a_this), &fopAcM_GetOldPosition_p(a_this), (void*)NULL, NULL);
|
||||
a_this->mCrrPos.Set(fopAcM_GetPosition_p(a_this), fopAcM_GetOldPosition_p(a_this), (void*)NULL, NULL);
|
||||
a_this->mCrrPos.SetWall(171.0f, 50.0f);
|
||||
a_this->mCrrPos.SetGndUpY(170.0f);
|
||||
a_this->mCrrPos.ClrNoRoof();
|
||||
a_this->mAcch.Set(&fopAcM_GetPosition_p(a_this), &fopAcM_GetOldPosition_p(a_this), a_this, 1, &a_this->mAcchCir);
|
||||
a_this->mAcch.Set(fopAcM_GetPosition_p(a_this), fopAcM_GetOldPosition_p(a_this), a_this, 1, &a_this->mAcchCir);
|
||||
a_this->mAcch.OnLineCheck();
|
||||
a_this->mAcch.SetGrndNone();
|
||||
a_this->mAcchCir.SetWall(171.0f, 40.0f);
|
||||
|
||||
@@ -1241,8 +1241,8 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) {
|
||||
i_this->mAttentionInfo.mFlags = 0;
|
||||
|
||||
i_this->mAcch.Set(
|
||||
&fopAcM_GetPosition_p(i_this), &fopAcM_GetOldPosition_p(i_this),
|
||||
i_this, 1, &i_this->mAcchCir, &fopAcM_GetSpeed_p(i_this)
|
||||
fopAcM_GetPosition_p(i_this), fopAcM_GetOldPosition_p(i_this),
|
||||
i_this, 1, &i_this->mAcchCir, fopAcM_GetSpeed_p(i_this)
|
||||
);
|
||||
i_this->mStts.Init(254, 1, i_this);
|
||||
|
||||
|
||||
@@ -1347,8 +1347,8 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) {
|
||||
i_this->mAttentionInfo.mFlags = 0;
|
||||
|
||||
i_this->mAcch.Set(
|
||||
&fopAcM_GetPosition_p(i_this), &fopAcM_GetOldPosition_p(i_this),
|
||||
i_this, 1, &i_this->mAcchCir, &fopAcM_GetSpeed_p(i_this)
|
||||
fopAcM_GetPosition_p(i_this), fopAcM_GetOldPosition_p(i_this),
|
||||
i_this, 1, &i_this->mAcchCir, fopAcM_GetSpeed_p(i_this)
|
||||
);
|
||||
i_this->mStts.Init(254, 1, i_this);
|
||||
|
||||
|
||||
@@ -809,9 +809,9 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
|
||||
}
|
||||
|
||||
i_this->mDamageReaction.mAcch.Set(
|
||||
&fopAcM_GetPosition_p(i_this), &fopAcM_GetOldPosition_p(i_this),
|
||||
fopAcM_GetPosition_p(i_this), fopAcM_GetOldPosition_p(i_this),
|
||||
i_this, 1, &i_this->mDamageReaction.mAcchCir,
|
||||
&fopAcM_GetSpeed_p(i_this)
|
||||
fopAcM_GetSpeed_p(i_this)
|
||||
);
|
||||
i_this->mDamageReaction.mAcchCir.SetWall(40.0f, 40.0f);
|
||||
i_this->mDamageReaction.mAcch.ClrRoofNone();
|
||||
|
||||
@@ -217,7 +217,7 @@ void daGhostship_c::createInit() {
|
||||
}
|
||||
|
||||
mCir.SetWall(30.0f, 30.0f);
|
||||
mAcch.Set(&fopAcM_GetPosition_p(this), &fopAcM_GetOldPosition_p(this), this, 1, &mCir, &fopAcM_GetSpeed_p(this));
|
||||
mAcch.Set(fopAcM_GetPosition_p(this), fopAcM_GetOldPosition_p(this), this, 1, &mCir, fopAcM_GetSpeed_p(this));
|
||||
mAcch.SetWallNone();
|
||||
mAcch.SetRoofNone();
|
||||
dLib_waveRot(¤t.pos, 0.0f, &mWave);
|
||||
|
||||
@@ -134,7 +134,7 @@ void itemGetCallBack(fopAc_ac_c* item_actor, dCcD_GObjInf*, fopAc_ac_c* collided
|
||||
/* 800F5044-800F53EC .text CreateInit__8daItem_cFv */
|
||||
void daItem_c::CreateInit() {
|
||||
mAcchCir.SetWall(30.0f, 30.0f);
|
||||
mAcch.Set(¤t.pos, &old.pos, this, 1, &mAcchCir, &fopAcM_GetSpeed_p(this));
|
||||
mAcch.Set(¤t.pos, &old.pos, this, 1, &mAcchCir, fopAcM_GetSpeed_p(this));
|
||||
mAcch.m_flags &= ~0x400;
|
||||
mAcch.m_flags &= ~0x8;
|
||||
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
|
||||
@@ -157,7 +157,7 @@ void daItem_c::CreateInit() {
|
||||
|
||||
mDisappearTimer = getData()->mDuration;
|
||||
field_0x65a = getData()->field_0x18;
|
||||
field_0x650 = fopAcM_GetSpeed_p(this).y;
|
||||
field_0x650 = fopAcM_GetSpeed(this).y;
|
||||
mItemStatus = 0;
|
||||
|
||||
mType = daItem_prm::getType(this);
|
||||
|
||||
@@ -145,17 +145,17 @@ daNpc_Btsw2_HIO_c::daNpc_Btsw2_HIO_c() {
|
||||
const char daNpc_Btsw2_c::m_arc_name[] = "Btsw";
|
||||
|
||||
static const int l_bck_ix_tbl[] = {
|
||||
BTSW_INDEX_BCK_BN_WAIT01,
|
||||
BTSW_INDEX_BCK_BN_WAIT02,
|
||||
BTSW_INDEX_BCK_BN_TALK01,
|
||||
BTSW_INDEX_BCK_BN_TALK02,
|
||||
BTSW_INDEX_BCK_BN_ONEGAI,
|
||||
BTSW_INDEX_BCK_BN_SUGOI,
|
||||
BTSW_INDEX_BCK_BN_SUGOI,
|
||||
BTSW_INDEX_BCK_BN_WALK,
|
||||
BTSW_INDEX_BCK_BN_KASIGE,
|
||||
BTSW_INDEX_BCK_BN_SIWAKE01,
|
||||
BTSW_INDEX_BCK_BN_SIWAKE02,
|
||||
BTSW_INDEX_BCK_BN_WAIT01,
|
||||
BTSW_INDEX_BCK_BN_WAIT02,
|
||||
BTSW_INDEX_BCK_BN_TALK01,
|
||||
BTSW_INDEX_BCK_BN_TALK02,
|
||||
BTSW_INDEX_BCK_BN_ONEGAI,
|
||||
BTSW_INDEX_BCK_BN_SUGOI,
|
||||
BTSW_INDEX_BCK_BN_SUGOI,
|
||||
BTSW_INDEX_BCK_BN_WALK,
|
||||
BTSW_INDEX_BCK_BN_KASIGE,
|
||||
BTSW_INDEX_BCK_BN_SIWAKE01,
|
||||
BTSW_INDEX_BCK_BN_SIWAKE02,
|
||||
};
|
||||
|
||||
static const int l_btp_ix_tbl[] = {
|
||||
|
||||
@@ -27,7 +27,7 @@ void daPy_lk_c::setSwordModel(BOOL r28) {
|
||||
/* 0x0E */ u16 tipStabBrk;
|
||||
};
|
||||
static const sword_model_tbl_s sword_model_tbl[] = {
|
||||
{
|
||||
{
|
||||
LINK_BDL_SWA,
|
||||
LINK_BDL_YHSLS00,
|
||||
LKANM_BTK_YHSLS00,
|
||||
@@ -37,7 +37,7 @@ void daPy_lk_c::setSwordModel(BOOL r28) {
|
||||
LKANM_BTK_CUTFH,
|
||||
LKANM_BRK_CUTFH
|
||||
},
|
||||
{
|
||||
{
|
||||
LINK_BDL_SWMS,
|
||||
LINK_BDL_YMSLI00,
|
||||
LKANM_BTK_YMSLI00,
|
||||
|
||||
@@ -839,7 +839,7 @@ void daRd_c::modeDeath() {
|
||||
fopAcM_onActor(this);
|
||||
|
||||
// Do not consider the ReDead to be a living enemy while its death animation is playing out.
|
||||
mGroup = fopAc_ENV_e;
|
||||
fopAcM_SetGroup(this, fopAc_ENV_e);
|
||||
|
||||
if (cLib_calcTimer(&mTimer1) == 0) {
|
||||
fopAcM_createDisappear(this, ¤t.pos, 5);
|
||||
@@ -1773,7 +1773,7 @@ void daRd_c::createInit() {
|
||||
mCyl.Set(m_cyl_src);
|
||||
mCyl.SetStts(&mStts);
|
||||
mAcchCir.SetWall(30.0f, 30.0f);
|
||||
mAcch.Set(&fopAcM_GetPosition_p(this), &fopAcM_GetOldPosition_p(this), this, 1, &mAcchCir, &fopAcM_GetSpeed_p(this));
|
||||
mAcch.Set(fopAcM_GetPosition_p(this), fopAcM_GetOldPosition_p(this), this, 1, &mAcchCir, fopAcM_GetSpeed_p(this));
|
||||
mAcch.SetRoofNone();
|
||||
J3DModelData* modelData = mpMorf->getModel()->getModelData();
|
||||
mJntCtrl.setHeadJntNum(0x0A); // ree_kubi_1
|
||||
|
||||
@@ -490,16 +490,16 @@ f32 fopAcM_searchActorDistance2(fopAc_ac_c* i_this, fopAc_ac_c* i_other) {
|
||||
|
||||
/* 800253C0-80025470 .text fopAcM_searchActorDistanceXZ__FP10fopAc_ac_cP10fopAc_ac_c */
|
||||
f32 fopAcM_searchActorDistanceXZ(fopAc_ac_c* i_this, fopAc_ac_c* i_other) {
|
||||
cXyz& this_pos = fopAcM_GetPosition_p(i_this);
|
||||
cXyz& other_pos = fopAcM_GetPosition_p(i_other);
|
||||
return (other_pos - this_pos).absXZ();
|
||||
cXyz* this_pos = fopAcM_GetPosition_p(i_this);
|
||||
cXyz* other_pos = fopAcM_GetPosition_p(i_other);
|
||||
return (*other_pos - *this_pos).absXZ();
|
||||
}
|
||||
|
||||
/* 80025470-800254BC .text fopAcM_searchActorDistanceXZ2__FP10fopAc_ac_cP10fopAc_ac_c */
|
||||
f32 fopAcM_searchActorDistanceXZ2(fopAc_ac_c* i_this, fopAc_ac_c* i_other) {
|
||||
cXyz& this_pos = fopAcM_GetPosition_p(i_this);
|
||||
cXyz& other_pos = fopAcM_GetPosition_p(i_other);
|
||||
return (other_pos - this_pos).abs2XZ();
|
||||
cXyz* this_pos = fopAcM_GetPosition_p(i_this);
|
||||
cXyz* other_pos = fopAcM_GetPosition_p(i_other);
|
||||
return (*other_pos - *this_pos).abs2XZ();
|
||||
}
|
||||
|
||||
/* 800254BC-800255B4 .text fopAcM_rollPlayerCrash__FP10fopAc_ac_cfUl */
|
||||
|
||||
Reference in New Issue
Block a user