2023-06-29 04:10:08 -04:00
|
|
|
#include "bike.h"
|
|
|
|
|
2024-02-17 14:26:29 -05:00
|
|
|
#include "legocontrolmanager.h"
|
|
|
|
#include "legogamestate.h"
|
|
|
|
#include "legoomni.h"
|
2024-03-09 15:07:52 -05:00
|
|
|
#include "legoutils.h"
|
2024-02-17 14:26:29 -05:00
|
|
|
#include "legoworld.h"
|
2024-03-09 15:07:52 -05:00
|
|
|
#include "misc.h"
|
2024-02-17 14:26:29 -05:00
|
|
|
|
2023-09-10 08:01:39 -04:00
|
|
|
DECOMP_SIZE_ASSERT(Bike, 0x164);
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10076670
|
2023-06-29 04:10:08 -04:00
|
|
|
Bike::Bike()
|
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
this->m_unk0x13c = 20.0;
|
|
|
|
this->m_unk0x150 = 3.0;
|
|
|
|
this->m_unk0x148 = 1;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-02-17 14:26:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x100768f0
|
2024-01-20 18:04:46 -05:00
|
|
|
MxResult Bike::Create(MxDSAction& p_dsAction)
|
|
|
|
{
|
2024-02-17 14:26:29 -05:00
|
|
|
MxResult result = IslePathActor::Create(p_dsAction);
|
|
|
|
m_world = CurrentWorld();
|
|
|
|
|
|
|
|
if (m_world) {
|
|
|
|
m_world->Add(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
2024-02-17 14:26:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10076920
|
2024-01-20 18:04:46 -05:00
|
|
|
void Bike::VTable0xe4()
|
|
|
|
{
|
2024-02-17 14:26:29 -05:00
|
|
|
IslePathActor::VTable0xe4();
|
2024-03-17 13:01:47 -04:00
|
|
|
GameState()->SetCurrentArea(LegoGameState::Area::e_bike);
|
2024-02-17 14:26:29 -05:00
|
|
|
FUN_1003ee00(*g_isleScript, 11);
|
|
|
|
FUN_1003ee00(*g_isleScript, 12);
|
|
|
|
FUN_1003ee00(*g_isleScript, 15);
|
|
|
|
FUN_1003ee00(*g_isleScript, 14);
|
|
|
|
FUN_1003ee00(*g_isleScript, 13);
|
|
|
|
ControlManager()->Unregister(this);
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x100769a0
|
|
|
|
MxU32 Bike::VTable0xcc()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10076aa0
|
2024-01-28 16:09:33 -05:00
|
|
|
MxU32 Bike::VTable0xd4(LegoControlManagerEvent& p_param)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
2024-03-17 13:01:47 -04:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x10076b60
|
|
|
|
void Bike::FUN_10076b60()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|