mirror of
https://github.com/zeldaret/st
synced 2026-08-28 08:48:41 -04:00
Decompile ActorManager_001.cpp (#31)
* started ActorManager_001.cpp * create, ctor, dtor * prog * fix build * fix build issues * progress * struct comments * match ClearInstance
This commit is contained in:
@@ -79,7 +79,7 @@ ARM bool ActorRupee::vfunc_18(unk32 param1) {
|
||||
if (this->func_ov031_020e9d54()) {
|
||||
this->mUnk_30 = &data_ov031_02113478;
|
||||
this->mUnk_34 = &data_ov031_02113478;
|
||||
SET_FLAG(&this->mFlags, ActorFlag_12);
|
||||
SET_FLAG(this->mFlags, ActorFlag_12);
|
||||
}
|
||||
|
||||
if (this->mUnk_80 >= 0) {
|
||||
@@ -199,7 +199,7 @@ ARM void ActorRupee::func_ov031_020e9108() {
|
||||
this->mVel.y = vel.y + 0x9A + 0x100;
|
||||
this->mVel.z = vel.z - 0xCD;
|
||||
|
||||
SET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
SET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
}
|
||||
|
||||
ARM void ActorRupee::func_ov031_020e91a8() {
|
||||
@@ -229,7 +229,7 @@ ARM void ActorRupee::func_ov031_020e9234() {
|
||||
this->mVel.x = 0;
|
||||
this->mVel.y = 0;
|
||||
this->mVel.z = 0;
|
||||
SET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
SET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
}
|
||||
|
||||
ARM void ActorRupee::func_ov031_020e9254() {
|
||||
@@ -328,7 +328,7 @@ ARM void ActorRupee::func_ov031_020e9450() {
|
||||
this->mPrevPos = this->mPos;
|
||||
Vec3p_Add(&this->mPos, &this->mVel, &this->mPos);
|
||||
|
||||
if (!GET_FLAG(&this->mFlags, ActorFlag_5)) {
|
||||
if (!GET_FLAG(this->mFlags, ActorFlag_5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ ARM void ActorRupee::func_ov031_020e94d4() {
|
||||
this->mUnk_4a = 0;
|
||||
this->mUnk_44 = 0;
|
||||
this->mUnk_9c.func_ov000_02097bec();
|
||||
UNSET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
UNSET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
}
|
||||
|
||||
ARM void ActorRupee::func_ov031_020e951c() {
|
||||
@@ -422,7 +422,7 @@ ARM void ActorRupee::func_ov031_020e9638() {
|
||||
this->mVel.x = 0;
|
||||
this->mVel.y = 0;
|
||||
this->mVel.z = 0;
|
||||
UNSET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
UNSET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
this->mUnk_c4.mUnk_04 = 0;
|
||||
|
||||
if (this->mUnk_6e == 2) {
|
||||
@@ -452,7 +452,7 @@ ARM void ActorRupee::func_ov031_020e970c() {
|
||||
this->mVel.x = 0;
|
||||
this->mVel.y = 0;
|
||||
this->mVel.z = 0;
|
||||
SET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
SET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
this->mUnk_4a = 1;
|
||||
this->mUnk_52 = -1;
|
||||
this->mUnk_50 = 0;
|
||||
@@ -752,7 +752,7 @@ ARM void ActorRupee::func_ov031_020e9d94() {
|
||||
u32 temp_r1;
|
||||
|
||||
if (this->func_ov031_020e9e5c()) {
|
||||
SET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
SET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -777,9 +777,9 @@ ARM void ActorRupee::func_ov031_020e9d94() {
|
||||
temp_r1 = temp_r0 >> 0x1F;
|
||||
|
||||
if ((this->mUnk_94 & 7) < 4) {
|
||||
UNSET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
UNSET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
} else {
|
||||
SET_FLAG(&this->mFlags, ActorFlag_Visible);
|
||||
SET_FLAG(this->mFlags, ActorFlag_Visible);
|
||||
}
|
||||
|
||||
if (this->mUnk_94 < this->mUnk_96) {
|
||||
|
||||
Reference in New Issue
Block a user