mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Implement/match LegoWorld::PresentersPending (#494)
* Implement/match LegoWorld::PresentersPending * Rename functions
This commit is contained in:
committed by
GitHub
parent
fadf8e7fd5
commit
19c771b85d
@@ -29,7 +29,7 @@ MxLong LegoAct2::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10050a80
|
||||
void LegoAct2::VTable0x50()
|
||||
void LegoAct2::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ MxLong Act3::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10073270
|
||||
void Act3::VTable0x50()
|
||||
void Act3::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ MxLong LegoCarBuild::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100242c0
|
||||
void LegoCarBuild::VTable0x50()
|
||||
void LegoCarBuild::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ DECOMP_SIZE_ASSERT(LegoCacheSoundListCursor, 0x10)
|
||||
// FUNCTION: LEGO1 0x1001ca40
|
||||
LegoWorld::LegoWorld() : m_list0x68(TRUE)
|
||||
{
|
||||
m_unk0xf4 = 4;
|
||||
m_startupTicks = e_four;
|
||||
m_cameraController = NULL;
|
||||
m_entityList = NULL;
|
||||
m_cacheSoundList = NULL;
|
||||
@@ -495,30 +495,63 @@ void LegoWorld::VTable0x68(MxBool p_add)
|
||||
MxResult LegoWorld::Tickle()
|
||||
{
|
||||
if (!m_worldStarted) {
|
||||
switch (m_unk0xf4) {
|
||||
case 0:
|
||||
switch (m_startupTicks) {
|
||||
case e_start:
|
||||
m_worldStarted = TRUE;
|
||||
SetAppCursor(0);
|
||||
VTable0x50();
|
||||
ReadyWorld();
|
||||
return TRUE;
|
||||
case 2:
|
||||
if (FUN_100220e0() == 1)
|
||||
case e_two:
|
||||
if (PresentersPending())
|
||||
break;
|
||||
default:
|
||||
m_unk0xf4--;
|
||||
m_startupTicks--;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100220e0
|
||||
undefined LegoWorld::FUN_100220e0()
|
||||
// FUNCTION: LEGO1 0x100220e0
|
||||
MxBool LegoWorld::PresentersPending()
|
||||
{
|
||||
return 0;
|
||||
MxPresenterListCursor controlPresenterCursor(&m_controlPresenters);
|
||||
MxPresenter* presenter;
|
||||
|
||||
while (controlPresenterCursor.Next(presenter)) {
|
||||
if (presenter->IsEnabled() && !presenter->HasTickleStatePassed(MxPresenter::e_starting))
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
MxPresenterListCursor animPresenterCursor(&m_animPresenters);
|
||||
|
||||
while (animPresenterCursor.Next(presenter)) {
|
||||
if (presenter->IsEnabled()) {
|
||||
if (presenter->IsA("LegoLocomotionAnimPresenter")) {
|
||||
if (!presenter->HasTickleStatePassed(MxPresenter::e_ready))
|
||||
return TRUE;
|
||||
}
|
||||
else {
|
||||
if (!presenter->HasTickleStatePassed(MxPresenter::e_starting))
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (MxCoreSet::iterator it = m_set0xa8.begin(); it != m_set0xa8.end(); it++) {
|
||||
if ((*it)->IsA("MxPresenter")) {
|
||||
presenter = (MxPresenter*) *it;
|
||||
|
||||
if (presenter->IsEnabled() && !presenter->HasTickleStatePassed(MxPresenter::e_starting))
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10022340
|
||||
void LegoWorld::VTable0x50()
|
||||
void LegoWorld::ReadyWorld()
|
||||
{
|
||||
TickleManager()->UnregisterClient(this);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ MxLong GasStation::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10004b30
|
||||
void GasStation::VTable0x50()
|
||||
void GasStation::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ MxLong Hospital::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10074a60
|
||||
void Hospital::VTable0x50()
|
||||
void Hospital::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -65,9 +65,9 @@ MxLong ElevatorBottom::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100181b0
|
||||
void ElevatorBottom::VTable0x50()
|
||||
void ElevatorBottom::ReadyWorld()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
LegoWorld::ReadyWorld();
|
||||
PlayMusic(JukeBox::e_informationCenter);
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ MxLong Infocenter::HandleEndAction(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1006f4e0
|
||||
void Infocenter::VTable0x50()
|
||||
void Infocenter::ReadyWorld()
|
||||
{
|
||||
m_infoManDialogueTimer = 0;
|
||||
m_bookAnimationTimer = 0;
|
||||
|
||||
@@ -53,9 +53,9 @@ MxLong InfocenterDoor::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10037a70
|
||||
void InfocenterDoor::VTable0x50()
|
||||
void InfocenterDoor::ReadyWorld()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
LegoWorld::ReadyWorld();
|
||||
PlayMusic(JukeBox::e_informationCenter);
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ MxLong RegistrationBook::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10077cc0
|
||||
void RegistrationBook::VTable0x50()
|
||||
void RegistrationBook::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -129,9 +129,9 @@ MxLong Score::FUN_10001510(MxEndActionNotificationParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10001580
|
||||
void Score::VTable0x50()
|
||||
void Score::ReadyWorld()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
LegoWorld::ReadyWorld();
|
||||
|
||||
MxDSAction action;
|
||||
action.SetObjectId(0x1f4);
|
||||
|
||||
@@ -28,7 +28,7 @@ MxLong HistoryBook::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100826f0
|
||||
void HistoryBook::VTable0x50()
|
||||
void HistoryBook::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -153,9 +153,9 @@ MxLong Isle::StopAction(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10030fc0
|
||||
void Isle::VTable0x50()
|
||||
void Isle::ReadyWorld()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
LegoWorld::ReadyWorld();
|
||||
|
||||
if (m_act1state->GetUnknown21()) {
|
||||
GameState()->HandleAction(2);
|
||||
|
||||
@@ -35,7 +35,7 @@ MxLong JukeBox::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1005d9f0
|
||||
void JukeBox::VTable0x50()
|
||||
void JukeBox::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -69,9 +69,9 @@ MxLong Police::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005e530
|
||||
void Police::VTable0x50()
|
||||
void Police::ReadyWorld()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
LegoWorld::ReadyWorld();
|
||||
PlayMusic(JukeBox::e_policeStation);
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ MxResult CarRace::Create(MxDSAction& p_dsAction)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10016dd0
|
||||
void CarRace::VTable0x50()
|
||||
void CarRace::ReadyWorld()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user