Start InfoCenterEntity::VTable0x50 implementation

This commit is contained in:
Joshua Peisach 2024-03-24 21:33:51 -04:00
parent 2e5d54c03e
commit 341a1ec570
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
5 changed files with 57 additions and 3 deletions

View File

@ -20,8 +20,7 @@ class InfoCenterEntity : public BuildingEntity {
return !strcmp(p_name, InfoCenterEntity::ClassName()) || BuildingEntity::IsA(p_name);
}
// STUB: LEGO1 0x100150c0
MxLong VTable0x50(MxParam& p_param) override { return 0; }
MxLong VTable0x50(MxParam& p_param) override; // vtable+0x50
// SYNTHETIC: LEGO1 0x1000f7b0
// InfoCenterEntity::`scalar deleting destructor'

View File

@ -69,6 +69,7 @@ class Isle : public LegoWorld {
void FUN_10031590();
void FUN_10032620();
void FUN_100330e0();
void FUN_10033350();
void FUN_10032d30(
IsleScript::Script p_script,
JukeboxScript::Script p_music,

View File

@ -20,7 +20,7 @@ class PoliceEntity : public BuildingEntity {
return !strcmp(p_name, PoliceEntity::ClassName()) || BuildingEntity::IsA(p_name);
}
MxLong VTable0x50(MxParam& p_param) override;
MxLong VTable0x50(MxParam& p_param) override; // vtable+0x50
// SYNTHETIC: LEGO1 0x1000f900
// PoliceEntity::`scalar deleting destructor'

View File

@ -1,3 +1,51 @@
#include "infocenterentity.h"
#include "act1state.h"
#include "act2main_actions.h"
#include "act3_actions.h"
#include "act3state.h"
#include "isle.h"
#include "isle_actions.h"
#include "islepathactor.h"
#include "legoact2state.h"
#include "legoanimationmanager.h"
#include "legogamestate.h"
#include "legoomni.h"
#include "legoutils.h"
#include "legoworld.h"
#include "misc.h"
#include "mxtransitionmanager.h"
DECOMP_SIZE_ASSERT(InfoCenterEntity, 0x68)
// FUNCTION: LEGO1 0x100150c0
MxLong InfoCenterEntity::VTable0x50(MxParam& p_param)
{
Isle* isle;
switch (GameState()->GetCurrentAct()) {
case LegoGameState::Act::e_act1:
if (CurrentActor()->GetActorId() != GameState()->GetActorId()) {
CurrentActor()->VTable0xe4();
}
isle = (Isle*) FindWorld(*g_isleScript, IsleScript::c__Isle);
isle->FUN_10033350();
// Act1State* act1state = (Act1State*) GameState()->GetState("Act1State");
break;
case LegoGameState::Act::e_act2:
isle = (Isle*) FindWorld(*g_act2mainScript, Act2mainScript::c__Act2Main);
// FIXME: something eles goes here
// LegoAct2State* act2state = (LegoAct2State*) GameState()->GetState("LegoAct2State");
break;
case LegoGameState::Act::e_act3:
isle = (Isle*) FindWorld(*g_act3Script, Act3Script::c__Act3);
// TODO: something with the lists
break;
}
AnimationManager()->FUN_10061010(NULL);
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
return 1;
}

View File

@ -1115,3 +1115,9 @@ MxBool Isle::VTable0x64()
// TODO
return FALSE;
}
// STUB: LEGO1 0x10033350
void Isle::FUN_10033350()
{
// TODO
}