mActorProperty Enum

This commit is contained in:
elijah-thomas774
2025-09-16 21:20:51 -04:00
parent 690d0d5799
commit c44a5426ba
21 changed files with 108 additions and 86 deletions
+9 -9
View File
@@ -56,7 +56,7 @@ dAcBase_c::dAcBase_c()
mActorNode(nullptr),
mRoomID(s_Create_RoomId),
mActorSubtype(s_Create_Subtype) {
JStudio_actor = 0;
mJStudioActor = 0;
someStr[0] = 0;
if (s_Create_Position) {
@@ -164,13 +164,13 @@ int dAcBase_c::actorPostCreate() {
}
int dAcBase_c::create() {
if (checkActorProperty(0x8000000)) {
if (checkActorProperty(AC_PROP_0x8000000)) {
return actorPostCreate();
}
int success = actorCreate();
if (success == SUCCEEDED) {
success = NOT_READY;
setActorProperty(0x8000000);
setActorProperty(AC_PROP_0x8000000);
}
return success;
}
@@ -193,7 +193,7 @@ int dAcBase_c::preDelete() {
ret = NOT_READY;
}
if (!checkActorProperty(0x800) && checkActorProperty(0x10000000) &&
if (!checkActorProperty(AC_PROP_0x800) && checkActorProperty(AC_PROP_0x10000000) &&
fBase_c::getConnectParent()->lifecycle_state != TO_BE_DELETED) {
if (itemDroppingAndGivingRelated(nullptr, 0) != 0) {
setEnemyDefeatFlag();
@@ -227,7 +227,7 @@ int dAcBase_c::preDelete() {
}
}
if (checkActorProperty(0x02000000)) {
if (checkActorProperty(AC_PROP_0x2000000)) {
changeLoadedEntitiesNoSet();
}
@@ -239,13 +239,13 @@ int dAcBase_c::preExecute() {
if (dBase_c::preExecute() == NOT_READY) {
return NOT_READY;
}
if (checkActorProperty(0x10000000)) {
if (checkActorProperty(0x40000000)) {
if (checkActorProperty(AC_PROP_0x10000000)) {
if (checkActorProperty(AC_PROP_0x40000000)) {
return NOT_READY;
}
if (EventManager::isInEvent() && JStudio_actor == nullptr && !EventManager::isInEvent0Or7() &&
!EventManager::FUN_800a0ba0() && !EventManager::FUN_800a0570(this) && !checkActorProperty(0x4)) {
if (EventManager::isInEvent() && mJStudioActor == nullptr && !EventManager::isInEvent0Or7() &&
!EventManager::FUN_800a0ba0() && !EventManager::FUN_800a0570(this) && !checkActorProperty(AC_PROP_0x4)) {
return NOT_READY;
}
}
+1 -1
View File
@@ -545,7 +545,7 @@ int dAcBoomerang_c::actorExecute() {
if (field_0x8B1 == 0 && (mStateMgr.isState(StateID_Move) || mStateMgr.isState(StateID_MoveCancelWait))) {
mEff2.createContinuousEffect(
PARTICLE_RESOURCE_ID_MAPPING_5_, player->GetPosition(), nullptr, nullptr, nullptr, nullptr
PARTICLE_RESOURCE_ID_MAPPING_5_, player->getPosition(), nullptr, nullptr, nullptr, nullptr
);
} else {
mEff2.remove(true);
+2 -2
View File
@@ -67,13 +67,13 @@ void dAcObjFairy_c::finalizeState_Wait() {}
void dAcObjFairy_c::initializeState_Avoid() {}
void dAcObjFairy_c::executeState_Avoid() {}
void dAcObjFairy_c::finalizeState_Avoid() {
setActorProperty(0x1);
setActorProperty(AC_PROP_0x1);
}
void dAcObjFairy_c::initializeState_PlayerAvoid() {}
void dAcObjFairy_c::executeState_PlayerAvoid() {}
void dAcObjFairy_c::finalizeState_PlayerAvoid() {
setActorProperty(0x1);
setActorProperty(AC_PROP_0x1);
}
void dAcObjFairy_c::initializeState_CureStart() {}
+14 -14
View File
@@ -944,7 +944,7 @@ bool dAcTbox_c::createHeap() {
fn_8026B380(fxPos);
mMtx_c fxTransform;
fxTransform.transS(fxPos);
fxTransform.ZXYrotM(GetRotation());
fxTransform.ZXYrotM(getRotation());
mOpenFxMdl.setLocalMtx(fxTransform);
mOpenFxMdl.setScale(fn_8026B3C0());
}
@@ -1623,7 +1623,7 @@ void dAcTbox_c::initializeState_DugOut() {
} else {
field_0x120C = 0;
}
setActorProperty(0x100);
setActorProperty(AC_PROP_0x100);
if (mVariant == NORMAL) {
mMdl1.setAnm(sAnmNames[0], m3d::PLAY_MODE_4);
}
@@ -1712,7 +1712,7 @@ void dAcTbox_c::finalizeState_DugOut() {}
void dAcTbox_c::initializeState_WaitAppear() {
mScale.set(0.0f, 0.0f, 0.0f);
setActorProperty(0x100);
setActorProperty(AC_PROP_0x100);
fn_8026D140();
field_0x11E8 = 0.0f;
field_0x11F4 &= ~0x2;
@@ -1739,7 +1739,7 @@ void dAcTbox_c::initializeState_DemoAppear() {
field_0x11F8 = 0;
mScale.set(0.0f, 0.0f, 0.0f);
field_0x11E8 = 0.0f;
setActorProperty(0x100);
setActorProperty(AC_PROP_0x100);
mMdl1.setAnm(sAppearAnmName, m3d::PLAY_MODE_4);
mMdl1.setFrame(mMdl1.getAnm().getStartFrame());
mAnmMatClr1.setFrame(0.0f, 0);
@@ -1808,7 +1808,7 @@ void dAcTbox_c::initializeState_WaitOpen() {
// WaitOpen not used for Goddess Chests
}
field_0x120C = 0;
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
if (mVariant == NORMAL) {
mMdl1.setAnm(sAnmNames[0], m3d::PLAY_MODE_4);
}
@@ -1831,7 +1831,7 @@ void dAcTbox_c::finalizeState_WaitOpen() {
}
void dAcTbox_c::initializeState_GoddessWaitOff() {
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
fn_8026D130();
field_0x11C0.set(-62.0f, 0.0f, -47.0f);
field_0x11CC.set(62.0f, 100.0f, 47.0f);
@@ -1843,7 +1843,7 @@ void dAcTbox_c::executeState_GoddessWaitOff() {}
void dAcTbox_c::finalizeState_GoddessWaitOff() {}
void dAcTbox_c::initializeState_GoddessWaitOn() {
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
fn_8026D130();
field_0x11C0.set(-62.0f, 0.0f, -47.0f);
field_0x11CC.set(62.0f, 100.0f, 47.0f);
@@ -1864,7 +1864,7 @@ void dAcTbox_c::finalizeState_GoddessWaitOn() {
void dAcTbox_c::initializeState_DeleteArchive() {
mScale.set(1.0f, 1.0f, 1.0f);
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
if (mVariant == NORMAL) {
mMdl1.setAnm(sAnmNames[0], m3d::PLAY_MODE_4);
}
@@ -1902,7 +1902,7 @@ void dAcTbox_c::finalizeState_DeleteArchive() {}
void dAcTbox_c::initializeState_LoadArchive() {
mScale.set(1.0f, 1.0f, 1.0f);
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
if (mVariant == NORMAL) {
mMdl1.setAnm(sAnmNames[0], m3d::PLAY_MODE_4);
}
@@ -1934,7 +1934,7 @@ extern "C" dAcItem_c *giveItem3(u16 item, s32);
void dAcTbox_c::initializeState_Open() {
mScale.set(1.0f, 1.0f, 1.0f);
startSound(SE_TBox_OPEN_A);
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
if (mVariant == NORMAL) {
mAnmMatClr1.setFrame(mAnmMatClr1.getFrameMax(0), 0);
}
@@ -2127,7 +2127,7 @@ void dAcTbox_c::initializeState_Wait() {
break;
}
field_0x120C = 1;
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
if (mVariant == 0) {
mMdl1.setAnm(sAnmNames[0], m3d::PLAY_MODE_4);
mAnmMatClr1.setFrame(mAnmMatClr1.getFrameMax(0), 0);
@@ -2158,7 +2158,7 @@ void dAcTbox_c::initializeState_GoddessWait() {
field_0x11E8 = 1.0f;
field_0x11F4 |= 2;
field_0x120C = 1;
clearActorProperty(0x100);
unsetActorProperty(AC_PROP_0x100);
field_0x11FC = 0x2D;
fn_8026D130();
}
@@ -2185,11 +2185,11 @@ bool dAcTbox_c::fn_8026D120() const {
}
void dAcTbox_c::fn_8026D130() {
setActorProperty(0x1);
setActorProperty(AC_PROP_0x1);
}
void dAcTbox_c::fn_8026D140() {
clearActorProperty(0x1);
unsetActorProperty(AC_PROP_0x1);
}
void dAcTbox_c::doInteraction(s32 _unused) {
+1 -1
View File
@@ -1185,7 +1185,7 @@ void dBgS::SetLightingCode(dAcObjBase_c *pObj, const cBgS_PolyInfo &info) {
f32 dBgS::SetLightingCode(dAcObjBase_c *pObj, f32 height) {
dBgS_ObjGndChk objGndChk;
mVec3_c pos = pObj->GetPosition();
mVec3_c pos = pObj->getPosition();
pos.y += height;
objGndChk.SetPos(&pos);
f32 gndCross = GroundCross(&objGndChk);
+2 -2
View File
@@ -109,7 +109,7 @@ void dBgS_Acch::Set(dAcObjBase_c *pObj, int tblSize, dBgS_AcchCir *pAcchCir) {
mpAcchCir = pAcchCir;
mpMyObj = pObj;
mActorId = pObj->getID();
mpPos = &pObj->GetPosition();
mpPos = &pObj->getPosition();
mpOldPos = &pObj->GetOldPosition();
mpSpeed = &pObj->GetVelocity();
if (mpSpeed) {
@@ -118,7 +118,7 @@ void dBgS_Acch::Set(dAcObjBase_c *pObj, int tblSize, dBgS_AcchCir *pAcchCir) {
mSpeed.set(0.0f, 0.0f, 0.0f);
}
mpAngle = &pObj->GetAngle();
mpShapeAngle = &pObj->GetRotation();
mpShapeAngle = &pObj->getRotation();
}
bool dBgS_Acch::fn_8033f5b0(mVec3_c *pPos, mVec3_c *pOldPos, f32 height) {
+1 -1
View File
@@ -176,7 +176,7 @@ u32 dCcMassS_Mng::Chk(mVec3_c *p_xyz, dAcObjBase_c **p_actor, dCcMassS_HitInf *p
if (field_0x3A8 & 0x10) {
mVec3_c vec;
PSVECSubtract((*p_actor)->GetPosition(), *p_xyz, vec);
PSVECSubtract((*p_actor)->getPosition(), *p_xyz, vec);
vec.y = 0;
f32 vecMag = PSVECMag(vec);
if (cM3d_IsZero(vecMag)) {
+3 -3
View File
@@ -91,10 +91,10 @@ bool dLinkage_c::tryAttach(
pActor->getConnectParent()->profile_name == fProfile::ROOM) {
pActor->addActorToRoom(-1);
onFlag(0x20000000);
pActor->setActorProperty(0x2000000);
pActor->setActorProperty(dAcBase_c::AC_PROP_0x2000000);
pActor->changeLoadedEntitiesWithSet();
}
pActor->clearActorProperty(0x1);
pActor->unsetActorProperty(dAcBase_c::AC_PROP_0x1);
return true;
}
@@ -223,7 +223,7 @@ void dLinkage_c::fn_800511E0(dAcObjBase_c *pActor) {
}
mMtx_c &mtx = pActor->mWorldMtx;
f32 y = field_0x1C * pActor->mScale.y;
mtx.transS(pActor->GetPosition().x, pActor->GetPosition().y + pActor->GetYOffset(), pActor->GetPosition().z);
mtx.transS(pActor->getPosition().x, pActor->getPosition().y + pActor->GetYOffset(), pActor->getPosition().z);
if (mType == CONNECTION_1) {
MTXConcat(mtx, carryTransMtx, mtx);
}
+3 -3
View File
@@ -183,7 +183,7 @@ const EVNT *dRoom_c::getEventForIndex(u32 idx) const {
}
void deactivateUpdatesCb(dAcBase_c *ac) {
if (!ac->checkActorProperty(0x400)) {
if (!ac->checkActorProperty(dAcBase_c::AC_PROP_0x400)) {
return;
}
ac->unkVirtFunc_0x60();
@@ -198,7 +198,7 @@ void dRoom_c::deactivateUpdates() {
}
void activateUpdatesCb(dAcBase_c *ac) {
if (!ac->checkActorProperty(0x400)) {
if (!ac->checkActorProperty(dAcBase_c::AC_PROP_0x400)) {
return;
}
ac->restorePosRotFromCopy();
@@ -381,7 +381,7 @@ void dRoom_c::executeState_Active() {
void dRoom_c::finalizeState_Active() {}
void deleteActor(dAcBase_c *ac) {
ac->setActorProperty(0x800);
ac->setActorProperty(dAcBase_c::AC_PROP_0x800);
ac->deleteRequest();
}
+2 -1
View File
@@ -1,6 +1,7 @@
#include "d/lyt/meter/d_lyt_meter_plus_btn.h"
#include "common.h"
#include "d/a/d_a_base.h"
#include "d/d_stage_mgr.h"
#include "d/flag/dungeonflag_manager.h"
#include "d/flag/sceneflag_manager.h"
@@ -245,7 +246,7 @@ void dLytMeterPlusBtn_c::setCall(bool shouldCall) {
bool dLytMeterPlusBtn_c::hasSpecificMapMark() {
dTgMapMark_c *mark = nullptr;
while ((mark = static_cast<dTgMapMark_c *>(fManager_c::searchBaseByGroupType(fBase_c::STAGE, mark))) != nullptr) {
if (mark->checkActorProperty(0x100) || mark->profile_name != fProfile::T_MAP_MARK ||
if (mark->checkActorProperty(dAcBase_c::AC_PROP_0x100) || mark->profile_name != fProfile::T_MAP_MARK ||
mark->rotz_shift0_0xf == 1) {
continue;
}