mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Implement/match Isle::HandleTransitionEnd (#683)
* Implement/match Isle::HandleTransitionEnd * Rename enums * Forward declare enum for C++11+ * Add underlying storage to action headers * Fix missing define
This commit is contained in:
committed by
GitHub
parent
4197e3c326
commit
5b8f515968
@@ -79,6 +79,12 @@ MxU32 Ambulance::VTable0xd4(LegoControlManagerEvent& p_param)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10037060
|
||||
void Ambulance::FUN_10037060()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10037160
|
||||
MxResult Ambulance::Tickle()
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ MxResult Bike::Create(MxDSAction& p_dsAction)
|
||||
void Bike::VTable0xe4()
|
||||
{
|
||||
IslePathActor::VTable0xe4();
|
||||
GameState()->SetCurrentArea(LegoGameState::Area::e_unk57);
|
||||
GameState()->SetCurrentArea(LegoGameState::Area::e_bike);
|
||||
FUN_1003ee00(*g_isleScript, 11);
|
||||
FUN_1003ee00(*g_isleScript, 12);
|
||||
FUN_1003ee00(*g_isleScript, 15);
|
||||
@@ -56,3 +56,9 @@ MxU32 Bike::VTable0xd4(LegoControlManagerEvent& p_param)
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10076b60
|
||||
void Bike::FUN_10076b60()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -50,3 +50,9 @@ MxU32 DuneBuggy::VTable0xdc(MxType19NotificationParam& p_param)
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10068350
|
||||
void DuneBuggy::FUN_10068350()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "act3.h"
|
||||
#include "isle.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legoanimationmanager.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
@@ -67,7 +68,7 @@ void Helicopter::VTable0xe4()
|
||||
IslePathActor::VTable0xe4();
|
||||
|
||||
if (GameState()->GetCurrentAct() == LegoGameState::e_act1) {
|
||||
GameState()->SetCurrentArea(LegoGameState::e_unk60);
|
||||
GameState()->SetCurrentArea(LegoGameState::e_copter);
|
||||
if (CurrentActor()) {
|
||||
if (CurrentActor()->IsA("IslePathActor")) {
|
||||
((IslePathActor*) CurrentActor())->VTable0xe8(0x37, TRUE, 7);
|
||||
@@ -114,7 +115,7 @@ MxU32 Helicopter::VTable0xcc()
|
||||
m_script = *g_isleScript;
|
||||
AnimationManager()->FUN_10064670(FALSE);
|
||||
VTable0xe8(0x29, TRUE, 7);
|
||||
((Isle*) CurrentWorld())->SetUnknown13c(LegoGameState::e_unk60);
|
||||
((Isle*) CurrentWorld())->SetDestLocation(LegoGameState::e_copter);
|
||||
FUN_10015820(TRUE, 0);
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, TRUE);
|
||||
SetUnknownDC(4);
|
||||
@@ -229,7 +230,7 @@ MxU32 Helicopter::VTable0xd4(LegoControlManagerEvent& p_param)
|
||||
break;
|
||||
case 0x1c:
|
||||
if (GameState()->GetCurrentAct() == LegoGameState::e_act1) {
|
||||
((Isle*) CurrentWorld())->SetUnknown13c(LegoGameState::e_infomain);
|
||||
((Isle*) CurrentWorld())->SetDestLocation(LegoGameState::e_infomain);
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
VTable0xe4();
|
||||
}
|
||||
|
||||
@@ -42,3 +42,9 @@ MxU32 Jetski::VTable0xd4(LegoControlManagerEvent& p_param)
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1007e990
|
||||
void Jetski::FUN_1007e990()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ MxLong JukeBoxEntity::Notify(MxParam& p_param)
|
||||
CurrentActor()->VTable0xe4();
|
||||
}
|
||||
|
||||
((Isle*) FindWorld(*g_isleScript, 0))->SetUnknown13c(LegoGameState::e_jukeboxw);
|
||||
((Isle*) FindWorld(*g_isleScript, 0))->SetDestLocation(LegoGameState::e_jukeboxw);
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -50,3 +50,9 @@ MxU32 Motocycle::VTable0xdc(MxType19NotificationParam& p_param)
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10035e10
|
||||
void Motocycle::FUN_10035e10()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -50,3 +50,9 @@ MxU32 SkateBoard::VTable0xd0()
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10010510
|
||||
void SkateBoard::FUN_10010510()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -75,3 +75,9 @@ void TowTrack::FUN_1004dab0()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1004dad0
|
||||
void TowTrack::FUN_1004dad0()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -702,22 +702,22 @@ void LegoGameState::StopArea(Area p_area)
|
||||
RemoveFromWorld(*g_isleScript, 0x481, *g_isleScript, 0);
|
||||
RemoveFromWorld(*g_isleScript, 0x482, *g_isleScript, 0);
|
||||
break;
|
||||
case e_copter:
|
||||
case e_copterbuild:
|
||||
InvokeAction(Extra::e_stop, *g_jukeboxScript, 0x2f, NULL);
|
||||
InvokeAction(Extra::e_stop, *g_copterScript, 0, NULL);
|
||||
InvokeAction(Extra::e_close, *g_copterScript, 0, NULL);
|
||||
break;
|
||||
case e_dunecar:
|
||||
case e_dunecarbuild:
|
||||
InvokeAction(Extra::e_stop, *g_jukeboxScript, 0x31, NULL);
|
||||
InvokeAction(Extra::e_stop, *g_dunecarScript, 0, NULL);
|
||||
InvokeAction(Extra::e_close, *g_dunecarScript, 0, NULL);
|
||||
break;
|
||||
case e_jetski:
|
||||
case e_jetskibuild:
|
||||
InvokeAction(Extra::e_stop, *g_jukeboxScript, 0x33, NULL);
|
||||
InvokeAction(Extra::e_stop, *g_jetskiScript, 0, NULL);
|
||||
InvokeAction(Extra::e_close, *g_jetskiScript, 0, NULL);
|
||||
break;
|
||||
case e_racecar:
|
||||
case e_racecarbuild:
|
||||
InvokeAction(Extra::e_stop, *g_jukeboxScript, 0x35, NULL);
|
||||
InvokeAction(Extra::e_stop, *g_racecarScript, 0, NULL);
|
||||
InvokeAction(Extra::e_close, *g_racecarScript, 0, NULL);
|
||||
@@ -801,12 +801,12 @@ void LegoGameState::SwitchArea(Area p_area)
|
||||
case e_hospitalExterior:
|
||||
case e_unk31:
|
||||
case e_policeExterior:
|
||||
case e_unk57:
|
||||
case e_unk58:
|
||||
case e_unk59:
|
||||
case e_unk60:
|
||||
case e_unk61:
|
||||
case e_unk64:
|
||||
case e_bike:
|
||||
case e_dunecar:
|
||||
case e_motocycle:
|
||||
case e_copter:
|
||||
case e_skateboard:
|
||||
case e_jetski:
|
||||
case e_unk66:
|
||||
LoadIsle();
|
||||
break;
|
||||
@@ -902,19 +902,19 @@ void LegoGameState::SwitchArea(Area p_area)
|
||||
LoadIsle();
|
||||
InvokeAction(Extra::ActionType::e_start, *g_isleScript, 1150, NULL);
|
||||
break;
|
||||
case e_copter:
|
||||
case e_copterbuild:
|
||||
VideoManager()->SetUnk0x554(TRUE);
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_copterScript, 0, NULL);
|
||||
break;
|
||||
case e_dunecar:
|
||||
case e_dunecarbuild:
|
||||
VideoManager()->SetUnk0x554(TRUE);
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_dunecarScript, 0, NULL);
|
||||
break;
|
||||
case e_jetski:
|
||||
case e_jetskibuild:
|
||||
VideoManager()->SetUnk0x554(TRUE);
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_jetskiScript, 0, NULL);
|
||||
break;
|
||||
case e_racecar:
|
||||
case e_racecarbuild:
|
||||
VideoManager()->SetUnk0x554(TRUE);
|
||||
InvokeAction(Extra::ActionType::e_opendisk, *g_racecarScript, 0, NULL);
|
||||
break;
|
||||
|
||||
@@ -164,12 +164,11 @@ MxTransitionManager* TransitionManager()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10015910
|
||||
void PlayMusic(MxU32 p_index)
|
||||
void PlayMusic(JukeboxScript::Script p_script)
|
||||
{
|
||||
// index is the entityid of the music in jukebox.si
|
||||
MxDSAction action;
|
||||
action.SetAtomId(*g_jukeboxScript);
|
||||
action.SetObjectId(p_index);
|
||||
action.SetObjectId(p_script);
|
||||
|
||||
LegoOmni::GetInstance()->GetBackgroundAudioManager()->PlayMusic(action, 5, 4);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "infocenterstate.h"
|
||||
|
||||
#include "infocenter.h"
|
||||
#include "infomain_actions.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(InfocenterState, 0x94);
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "radiostate.h"
|
||||
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legoomni.h"
|
||||
#include "mxmisc.h"
|
||||
#include "mxtimer.h"
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "mxdsaction.h"
|
||||
#include "mxmisc.h"
|
||||
#include "police.h"
|
||||
#include "police_actions.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "act1state.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "historybook.h"
|
||||
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legoinputmanager.h"
|
||||
#include "misc.h"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#include "hospital.h"
|
||||
|
||||
#include "hospital_actions.h"
|
||||
#include "islepathactor.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legoinputmanager.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
#include "credits_actions.h"
|
||||
#include "helicopterstate.h"
|
||||
#include "infocenterstate.h"
|
||||
#include "infomain_actions.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legoact2state.h"
|
||||
#include "legoanimationmanager.h"
|
||||
#include "legobuildingmanager.h"
|
||||
@@ -1412,14 +1414,14 @@ void Infocenter::StopCredits()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10071300
|
||||
void Infocenter::PlayAction(InfomainScript::Script p_objectId)
|
||||
void Infocenter::PlayAction(InfomainScript::Script p_script)
|
||||
{
|
||||
MxDSAction action;
|
||||
action.SetObjectId(p_objectId);
|
||||
action.SetObjectId(p_script);
|
||||
action.SetAtomId(*g_infomainScript);
|
||||
StopCurrentAction();
|
||||
|
||||
m_currentInfomainScript = p_objectId;
|
||||
m_currentInfomainScript = p_script;
|
||||
BackgroundAudioManager()->LowerVolume();
|
||||
Start(&action);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "infocenterstate.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
|
||||
@@ -6,9 +6,11 @@
|
||||
#include "carracestate.h"
|
||||
#include "dunebuggy.h"
|
||||
#include "helicopter.h"
|
||||
#include "isle_actions.h"
|
||||
#include "islepathactor.h"
|
||||
#include "jetski.h"
|
||||
#include "jetskiracestate.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "jukeboxentity.h"
|
||||
#include "legoanimationmanager.h"
|
||||
#include "legocontrolmanager.h"
|
||||
@@ -20,6 +22,7 @@
|
||||
#include "motocycle.h"
|
||||
#include "mxmisc.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
#include "mxstillpresenter.h"
|
||||
#include "mxtransitionmanager.h"
|
||||
#include "pizza.h"
|
||||
#include "skateboard.h"
|
||||
@@ -48,7 +51,7 @@ Isle::Isle()
|
||||
m_racecar = NULL;
|
||||
m_jetski = NULL;
|
||||
m_act1state = 0;
|
||||
m_unk0x13c = LegoGameState::e_undefined;
|
||||
m_destLocation = LegoGameState::e_undefined;
|
||||
|
||||
NotificationManager()->Register(this);
|
||||
}
|
||||
@@ -89,7 +92,7 @@ MxResult Isle::Create(MxDSAction& p_dsAction)
|
||||
GameState()->StopArea(LegoGameState::e_act2main); // Looks like a bug
|
||||
break;
|
||||
case LegoGameState::e_actNotFound:
|
||||
m_unk0x13c = LegoGameState::e_infomain;
|
||||
m_destLocation = LegoGameState::e_infomain;
|
||||
}
|
||||
|
||||
if (GameState()->GetCurrentArea() == LegoGameState::e_isle) {
|
||||
@@ -257,7 +260,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
|
||||
switch (GameState()->m_currentArea) {
|
||||
case LegoGameState::e_elevride:
|
||||
m_unk0x13c = LegoGameState::e_elevride;
|
||||
m_destLocation = LegoGameState::e_elevride;
|
||||
|
||||
#ifdef COMPAT_MODE
|
||||
{
|
||||
@@ -288,7 +291,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_garadoor:
|
||||
m_unk0x13c = LegoGameState::e_garadoor;
|
||||
m_destLocation = LegoGameState::e_garadoor;
|
||||
|
||||
#ifdef COMPAT_MODE
|
||||
{
|
||||
@@ -302,7 +305,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
SetIsWorldActive(FALSE);
|
||||
break;
|
||||
case LegoGameState::e_polidoor:
|
||||
m_unk0x13c = LegoGameState::e_polidoor;
|
||||
m_destLocation = LegoGameState::e_polidoor;
|
||||
|
||||
#ifdef COMPAT_MODE
|
||||
{
|
||||
@@ -315,7 +318,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
|
||||
SetIsWorldActive(FALSE);
|
||||
break;
|
||||
case LegoGameState::e_unk57:
|
||||
case LegoGameState::e_bike:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -328,7 +331,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
m_bike->Notify(LegoEventNotificationParam(c_notificationType11, NULL, 0, 0, 0, 0));
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_unk58:
|
||||
case LegoGameState::e_dunecar:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -341,7 +344,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
m_dunebuggy->Notify(LegoEventNotificationParam(c_notificationType11, NULL, 0, 0, 0, 0));
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_unk59:
|
||||
case LegoGameState::e_motocycle:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -354,7 +357,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
m_motocycle->Notify(LegoEventNotificationParam(c_notificationType11, NULL, 0, 0, 0, 0));
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_unk60:
|
||||
case LegoGameState::e_copter:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -367,7 +370,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
m_helicopter->Notify(LegoEventNotificationParam(c_notificationType11, NULL, 0, 0, 0, 0));
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_unk61:
|
||||
case LegoGameState::e_skateboard:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -380,7 +383,7 @@ void Isle::Enable(MxBool p_enable)
|
||||
m_skateboard->Notify(LegoEventNotificationParam(c_notificationType11, NULL, 0, 0, 0, 0));
|
||||
#endif
|
||||
break;
|
||||
case LegoGameState::e_unk64:
|
||||
case LegoGameState::e_jetski:
|
||||
FUN_1001fa70(CurrentActor());
|
||||
SetIsWorldActive(TRUE);
|
||||
|
||||
@@ -511,12 +514,12 @@ void Isle::Enable(MxBool p_enable)
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_elevride) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_polidoor) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_garadoor) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk57) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk58) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk59) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk60) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk64) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_unk61) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_bike) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_dunecar) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_motocycle) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_copter) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_jetski) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_skateboard) &&
|
||||
(m_act1state->m_unk0x018 != 0 || GameState()->m_currentArea != LegoGameState::e_jetrace2)) {
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
}
|
||||
@@ -542,10 +545,180 @@ void Isle::FUN_10032620()
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100327a0
|
||||
// FUNCTION: LEGO1 0x100327a0
|
||||
MxLong Isle::HandleTransitionEnd()
|
||||
{
|
||||
return 0;
|
||||
InvokeAction(Extra::e_stop, *g_isleScript, IsleScript::c_Avo917In_PlayWav, NULL);
|
||||
DeleteObjects(&m_atom, IsleScript::c_Avo900Ps_PlayWav, IsleScript::c_Avo907Ps_PlayWav);
|
||||
|
||||
if (m_destLocation != LegoGameState::e_skateboard) {
|
||||
m_act1state->m_unk0x018 = 0;
|
||||
}
|
||||
|
||||
switch (m_destLocation) {
|
||||
case LegoGameState::e_infomain:
|
||||
((LegoEntity*) Find(*g_isleScript, IsleScript::c_InfoCenter_Entity))->GetROI()->SetUnknown0x0c(1);
|
||||
GameState()->SwitchArea(m_destLocation);
|
||||
m_destLocation = LegoGameState::e_undefined;
|
||||
break;
|
||||
case LegoGameState::e_elevride:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
VariableTable()->SetVariable("VISIBILITY", "Hide infocen");
|
||||
FUN_10032d30(IsleScript::c_ElevRide_Background_Bitmap, JukeboxScript::c_Elevator_Music, "LCAMZI1,90", FALSE);
|
||||
break;
|
||||
case LegoGameState::e_elevride2:
|
||||
FUN_10032d30(IsleScript::c_ElevRide_Background_Bitmap, JukeboxScript::c_Elevator_Music, "LCAMZI2,90", FALSE);
|
||||
|
||||
if (m_destLocation == LegoGameState::e_undefined) {
|
||||
((MxStillPresenter*) Find(m_atom, IsleScript::c_Meter3_Bitmap))->Enable(TRUE);
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_elevopen:
|
||||
FUN_10032d30(
|
||||
IsleScript::c_ElevOpen_Background_Bitmap,
|
||||
JukeboxScript::c_InfoCenter_3rd_Floor_Music,
|
||||
"LCAMZIS,90",
|
||||
FALSE
|
||||
);
|
||||
break;
|
||||
case LegoGameState::e_seaview:
|
||||
FUN_10032d30(
|
||||
IsleScript::c_SeaView_Background_Bitmap,
|
||||
JukeboxScript::c_InfoCenter_3rd_Floor_Music,
|
||||
"LCAMZIE,90",
|
||||
FALSE
|
||||
);
|
||||
break;
|
||||
case LegoGameState::e_observe:
|
||||
FUN_10032d30(
|
||||
IsleScript::c_Observe_Background_Bitmap,
|
||||
JukeboxScript::c_InfoCenter_3rd_Floor_Music,
|
||||
"LCAMZIW,90",
|
||||
FALSE
|
||||
);
|
||||
break;
|
||||
case LegoGameState::e_elevdown:
|
||||
FUN_10032d30(
|
||||
IsleScript::c_ElevDown_Background_Bitmap,
|
||||
JukeboxScript::c_InfoCenter_3rd_Floor_Music,
|
||||
"LCAMZIN,90",
|
||||
FALSE
|
||||
);
|
||||
break;
|
||||
case LegoGameState::e_garadoor:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
VariableTable()->SetVariable("VISIBILITY", "Hide Gas");
|
||||
FUN_10032d30(IsleScript::c_GaraDoor_Background_Bitmap, JukeboxScript::c_JBMusic2, "LCAMZG1,90", FALSE);
|
||||
break;
|
||||
case LegoGameState::e_unk28:
|
||||
GameState()->SwitchArea(m_destLocation);
|
||||
GameState()->StopArea(LegoGameState::e_previousArea);
|
||||
m_destLocation = LegoGameState::e_undefined;
|
||||
VariableTable()->SetVariable("VISIBILITY", "Show Gas");
|
||||
AnimationManager()->FUN_1005f0b0();
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
SetAppCursor(0);
|
||||
SetIsWorldActive(TRUE);
|
||||
break;
|
||||
case LegoGameState::e_unk33:
|
||||
GameState()->SwitchArea(m_destLocation);
|
||||
GameState()->StopArea(LegoGameState::e_previousArea);
|
||||
m_destLocation = LegoGameState::e_undefined;
|
||||
VariableTable()->SetVariable("VISIBILITY", "Show Policsta");
|
||||
AnimationManager()->FUN_1005f0b0();
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
SetAppCursor(0);
|
||||
SetIsWorldActive(TRUE);
|
||||
break;
|
||||
case LegoGameState::e_polidoor:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
VariableTable()->SetVariable("VISIBILITY", "Hide Policsta");
|
||||
FUN_10032d30(
|
||||
IsleScript::c_PoliDoor_Background_Bitmap,
|
||||
JukeboxScript::c_PoliceStation_Music,
|
||||
"LCAMZP1,90",
|
||||
FALSE
|
||||
);
|
||||
break;
|
||||
case LegoGameState::e_bike:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30(IsleScript::c_BikeDashboard_Bitmap, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_bike->FUN_10076b60();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_dunecar:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30(IsleScript::c_DuneCarFuelMeter, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_dunebuggy->FUN_10068350();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_motocycle:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30(IsleScript::c_MotoBikeDashboard_Bitmap, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_motocycle->FUN_10035e10();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_copter:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30(IsleScript::c_HelicopterDashboard_Bitmap, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
break;
|
||||
case LegoGameState::e_skateboard:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30(IsleScript::c_SkatePizza_Bitmap, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_skateboard->FUN_10010510();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_ambulance:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
m_act1state->m_unk0x018 = 10;
|
||||
FUN_10032d30(IsleScript::c_AmbulanceFuelMeter, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_ambulance->FUN_10037060();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_towtrack:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
m_act1state->m_unk0x018 = 8;
|
||||
FUN_10032d30(IsleScript::c_TowFuelMeter, JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_towtrack->FUN_1004dad0();
|
||||
}
|
||||
break;
|
||||
case LegoGameState::e_jetski:
|
||||
m_act1state->m_unk0x01f = 1;
|
||||
FUN_10032d30((IsleScript::Script) m_jetski->GetUnknown0x160(), JukeboxScript::c_MusicTheme1, NULL, TRUE);
|
||||
|
||||
if (m_act1state->m_unk0x01f == 0) {
|
||||
m_jetski->FUN_1007e990();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
GameState()->SwitchArea(m_destLocation);
|
||||
m_destLocation = LegoGameState::e_undefined;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10032d30
|
||||
void Isle::FUN_10032d30(
|
||||
IsleScript::Script p_script,
|
||||
JukeboxScript::Script p_music,
|
||||
const char* p_cameraLocation,
|
||||
MxBool p_und
|
||||
)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10032f10
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#include "jukebox.h"
|
||||
|
||||
#include "act1state.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "jukeboxstate.h"
|
||||
#include "jukeboxw_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "police.h"
|
||||
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
@@ -10,6 +11,7 @@
|
||||
#include "mxmisc.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
#include "mxtransitionmanager.h"
|
||||
#include "police_actions.h"
|
||||
#include "policestate.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Police, 0x110)
|
||||
@@ -128,7 +130,7 @@ MxLong Police::HandleClick(LegoControlManagerEvent& p_param)
|
||||
}
|
||||
|
||||
BackgroundAudioManager()->Stop();
|
||||
m_destLocation = LegoGameState::Area::e_copter;
|
||||
m_destLocation = LegoGameState::Area::e_copterbuild;
|
||||
TransitionManager()->StartTransition(MxTransitionManager::e_mosaic, 50, FALSE, FALSE);
|
||||
break;
|
||||
case PoliceScript::c_Donut_Ctl:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "registrationbook.h"
|
||||
|
||||
#include "infocenterstate.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "ambulancemissionstate.h"
|
||||
#include "jukebox.h"
|
||||
#include "jukebox_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
|
||||
Reference in New Issue
Block a user