2024-03-22 21:30:58 -04:00
|
|
|
#include "act2actor.h"
|
|
|
|
|
2024-11-11 13:36:36 -05:00
|
|
|
#include "legocachesoundmanager.h"
|
|
|
|
#include "legosoundmanager.h"
|
|
|
|
#include "misc.h"
|
|
|
|
#include "roi/legoroi.h"
|
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
DECOMP_SIZE_ASSERT(Act2Actor, 0x1a8)
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x100187e0
|
|
|
|
Act2Actor::Act2Actor()
|
|
|
|
{
|
2024-11-11 13:36:36 -05:00
|
|
|
m_unk0x1c = 0;
|
|
|
|
m_unk0x1d = 0;
|
|
|
|
m_unk0x1f = FALSE;
|
|
|
|
m_unk0x24 = 0;
|
|
|
|
m_unk0x20 = 0;
|
|
|
|
m_unk0x1e = 0;
|
|
|
|
m_unk0x28 = 4;
|
|
|
|
m_unk0x2c = 0;
|
|
|
|
m_unk0x30 = 0;
|
|
|
|
m_unk0x34 = 0;
|
|
|
|
m_unk0x44 = 0;
|
|
|
|
m_unk0x40 = 1;
|
|
|
|
m_unk0x48 = 0;
|
|
|
|
m_unk0x4c = 0;
|
|
|
|
m_unk0x38 = 0;
|
|
|
|
m_unk0x3c = 0;
|
2024-03-22 21:30:58 -04:00
|
|
|
}
|
2024-04-19 16:23:36 -04:00
|
|
|
|
2024-11-11 13:36:36 -05:00
|
|
|
// FUNCTION: LEGO1 0x10018940
|
2024-04-19 16:23:36 -04:00
|
|
|
void Act2Actor::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
|
|
|
{
|
2024-11-11 13:36:36 -05:00
|
|
|
LegoAnimActor::SetROI(p_roi, p_bool1, p_bool2);
|
|
|
|
m_roi->SetVisibility(FALSE);
|
2024-04-19 16:23:36 -04:00
|
|
|
}
|
|
|
|
|
2024-11-11 13:36:36 -05:00
|
|
|
// FUNCTION: LEGO1 0x100189f0
|
2024-04-19 16:23:36 -04:00
|
|
|
MxResult Act2Actor::VTable0x94(LegoPathActor*, MxBool)
|
|
|
|
{
|
2024-11-11 13:36:36 -05:00
|
|
|
if (m_unk0x1f == FALSE) {
|
|
|
|
m_unk0x1f = TRUE;
|
|
|
|
m_unk0x20 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
SoundManager()->GetCacheSoundManager()->Play("hitactor", NULL, FALSE);
|
2024-04-19 16:23:36 -04:00
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10018a20
|
2024-05-20 11:34:31 -04:00
|
|
|
MxResult Act2Actor::VTable0x9c()
|
2024-04-19 16:23:36 -04:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10018c30
|
|
|
|
void Act2Actor::VTable0x70(float p_und)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-11-11 13:36:36 -05:00
|
|
|
// FUNCTION: LEGO1 0x10019280
|
2024-04-19 16:23:36 -04:00
|
|
|
void Act2Actor::SetWorldSpeed(MxFloat p_worldSpeed)
|
|
|
|
{
|
2024-11-11 13:36:36 -05:00
|
|
|
LegoAnimActor::SetWorldSpeed(p_worldSpeed);
|
|
|
|
m_unk0x44 = 0;
|
2024-04-19 16:23:36 -04:00
|
|
|
}
|
|
|
|
|
2024-11-25 17:24:46 -05:00
|
|
|
// STUB: LEGO1 0x10019520
|
|
|
|
// STUB: BETA10 0x1000d4d6
|
|
|
|
void Act2Actor::FUN_10019520()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-04-19 16:23:36 -04:00
|
|
|
// STUB: LEGO1 0x100195a0
|
|
|
|
MxS32 Act2Actor::VTable0xa0()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-11-11 13:36:36 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001a180
|
|
|
|
MxS32 Act2Actor::VTable0x68(Vector3& p_v1, Vector3& p_v2, Vector3& p_v3)
|
2024-04-19 16:23:36 -04:00
|
|
|
{
|
2024-11-11 13:36:36 -05:00
|
|
|
if (m_unk0x1f) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return LegoAnimActor::VTable0x68(p_v1, p_v2, p_v3);
|
2024-04-19 16:23:36 -04:00
|
|
|
}
|