2024-01-20 18:04:46 -05:00
|
|
|
#include "legoracecar.h"
|
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
#include "mxmisc.h"
|
|
|
|
#include "mxnotificationmanager.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(LegoRaceCar, 0x200)
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10012950
|
|
|
|
LegoRaceCar::LegoRaceCar()
|
|
|
|
{
|
|
|
|
m_unk0x54 = 0;
|
|
|
|
m_unk0x70 = 0;
|
|
|
|
m_unk0x74 = 0;
|
|
|
|
m_unk0x5c.Clear();
|
|
|
|
m_unk0x58 = 0;
|
|
|
|
m_unk0x78 = 0;
|
|
|
|
m_unk0x7c = 0;
|
|
|
|
NotificationManager()->Register(this);
|
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x10012c80
|
|
|
|
LegoRaceCar::~LegoRaceCar()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10012d90
|
|
|
|
MxLong LegoRaceCar::Notify(MxParam& p_param)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10012e60
|
|
|
|
void LegoRaceCar::SetWorldSpeed(MxFloat p_worldSpeed)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
// FUNCTION: LEGO1 0x10012ea0
|
|
|
|
void LegoRaceCar::FUN_10012ea0(float p_worldSpeed)
|
|
|
|
{
|
|
|
|
if (p_worldSpeed < 0) {
|
|
|
|
LegoCarRaceActor::m_unk0x0c = 2;
|
2024-06-06 11:45:37 -04:00
|
|
|
m_maxLinearVel = 0;
|
2024-03-22 21:30:58 -04:00
|
|
|
SetWorldSpeed(0);
|
|
|
|
}
|
|
|
|
else {
|
2024-06-06 11:45:37 -04:00
|
|
|
m_maxLinearVel = p_worldSpeed;
|
2024-03-22 21:30:58 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x10012ef0
|
|
|
|
void LegoRaceCar::ParseAction(char*)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
// STUB: LEGO1 0x10012ff0
|
|
|
|
void LegoRaceCar::FUN_10012ff0(float)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10013130
|
|
|
|
MxBool LegoRaceCar::FUN_10013130(float)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x100131f0
|
|
|
|
void LegoRaceCar::VTable0x70(float p_float)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x100133c0
|
|
|
|
MxResult LegoRaceCar::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
2024-06-10 13:04:40 -04:00
|
|
|
return 0;
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x10013600
|
|
|
|
MxResult LegoRaceCar::VTable0x9c()
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
2024-06-10 13:04:40 -04:00
|
|
|
return SUCCESS;
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x10014500
|
2024-04-17 06:34:21 -04:00
|
|
|
MxU32 LegoRaceCar::VTable0x6c(
|
|
|
|
LegoPathBoundary* p_boundary,
|
|
|
|
Vector3& p_v1,
|
|
|
|
Vector3& p_v2,
|
|
|
|
float p_f1,
|
|
|
|
float p_f2,
|
|
|
|
Vector3& p_v3
|
|
|
|
)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
2024-04-17 06:34:21 -04:00
|
|
|
return 0;
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
2024-06-10 13:04:40 -04:00
|
|
|
// STUB: LEGO1 0x10014560
|
2024-05-20 14:27:00 -04:00
|
|
|
void LegoRaceCar::SwitchBoundary(LegoPathBoundary*& p_boundary, LegoUnknown100db7f4*& p_edge, float& p_unk0xe4)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|