mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Remove getters/setters that (likely) don't exist (#1583)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -223,14 +223,8 @@ public:
|
|||||||
Act GetCurrentAct() { return m_currentAct; }
|
Act GetCurrentAct() { return m_currentAct; }
|
||||||
|
|
||||||
Act GetLoadedAct() { return m_loadedAct; }
|
Act GetLoadedAct() { return m_loadedAct; }
|
||||||
Area GetPreviousArea() { return m_previousArea; }
|
|
||||||
Area GetUnknown0x42c() { return m_unk0x42c; }
|
|
||||||
|
|
||||||
void SetDirty(MxBool p_isDirty) { m_isDirty = p_isDirty; }
|
|
||||||
void SetPreviousArea(Area p_previousArea) { m_previousArea = p_previousArea; }
|
|
||||||
void SetActorId(MxU8 p_actorId) { m_actorId = p_actorId; }
|
void SetActorId(MxU8 p_actorId) { m_actorId = p_actorId; }
|
||||||
Username* GetPlayersIndex(MxS32 p_index) { return &m_players[p_index]; }
|
|
||||||
MxS16 GetPlayerCount() { return m_playerCount; }
|
|
||||||
LegoBackgroundColor* GetBackgroundColor() { return m_backgroundColor; }
|
LegoBackgroundColor* GetBackgroundColor() { return m_backgroundColor; }
|
||||||
|
|
||||||
void SetCurrentAct(Act p_currentAct);
|
void SetCurrentAct(Act p_currentAct);
|
||||||
@@ -254,14 +248,11 @@ private:
|
|||||||
LegoBackgroundColor* m_tempBackgroundColor; // 0x1c
|
LegoBackgroundColor* m_tempBackgroundColor; // 0x1c
|
||||||
LegoFullScreenMovie* m_fullScreenMovie; // 0x20
|
LegoFullScreenMovie* m_fullScreenMovie; // 0x20
|
||||||
|
|
||||||
// TODO: Most likely getters/setters are not used according to BETA for the following members:
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MxS16 m_currentPlayerId; // 0x24
|
MxS16 m_currentPlayerId; // 0x24
|
||||||
MxS16 m_playerCount; // 0x26
|
MxS16 m_playerCount; // 0x26
|
||||||
Username m_players[9]; // 0x28
|
Username m_players[9]; // 0x28
|
||||||
History m_history; // 0xa6
|
History m_history; // 0xa6
|
||||||
undefined2 m_unk0x41a; // 0x41a
|
|
||||||
JukeboxScript::Script m_jukeboxMusic; // 0x41c
|
JukeboxScript::Script m_jukeboxMusic; // 0x41c
|
||||||
MxBool m_isDirty; // 0x420
|
MxBool m_isDirty; // 0x420
|
||||||
Area m_currentArea; // 0x424
|
Area m_currentArea; // 0x424
|
||||||
|
@@ -1629,6 +1629,7 @@ void LegoGameState::SerializeScoreHistory(MxS16 p_flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003cea0
|
// FUNCTION: LEGO1 0x1003cea0
|
||||||
|
// FUNCTION: BETA10 0x10017840
|
||||||
void LegoGameState::SetCurrentAct(Act p_currentAct)
|
void LegoGameState::SetCurrentAct(Act p_currentAct)
|
||||||
{
|
{
|
||||||
m_currentAct = p_currentAct;
|
m_currentAct = p_currentAct;
|
||||||
|
@@ -488,7 +488,7 @@ MxResult Act3::Create(MxDSAction& p_dsAction)
|
|||||||
case LegoGameState::e_act1:
|
case LegoGameState::e_act1:
|
||||||
case LegoGameState::e_actNotFound:
|
case LegoGameState::e_actNotFound:
|
||||||
GameState()->StopArea(LegoGameState::e_undefined);
|
GameState()->StopArea(LegoGameState::e_undefined);
|
||||||
if (GameState()->GetPreviousArea() == LegoGameState::e_infomain) {
|
if (GameState()->m_previousArea == LegoGameState::e_infomain) {
|
||||||
GameState()->StopArea(LegoGameState::e_isle);
|
GameState()->StopArea(LegoGameState::e_isle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -505,7 +505,7 @@ MxResult Act3::Create(MxDSAction& p_dsAction)
|
|||||||
|
|
||||||
GameState()->m_currentArea = LegoGameState::e_act3script;
|
GameState()->m_currentArea = LegoGameState::e_act3script;
|
||||||
GameState()->SetCurrentAct(LegoGameState::e_act3);
|
GameState()->SetCurrentAct(LegoGameState::e_act3);
|
||||||
GameState()->SetDirty(TRUE);
|
GameState()->m_isDirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -883,7 +883,7 @@ void Act3::Enable(MxBool p_enable)
|
|||||||
|
|
||||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||||
PlayMusic(JukeboxScript::c_Act3Music);
|
PlayMusic(JukeboxScript::c_Act3Music);
|
||||||
GameState()->SetDirty(TRUE);
|
GameState()->m_isDirty = TRUE;
|
||||||
|
|
||||||
if (m_time > 0) {
|
if (m_time > 0) {
|
||||||
MxFloat delta = Timer()->GetTime() - m_time - 100.0f;
|
MxFloat delta = Timer()->GetTime() - m_time - 100.0f;
|
||||||
|
@@ -219,7 +219,7 @@ MxResult Infocenter::Create(MxDSAction& p_dsAction)
|
|||||||
|
|
||||||
if (m_infocenterState->m_unk0x74 == 4) {
|
if (m_infocenterState->m_unk0x74 == 4) {
|
||||||
LegoGameState* state = GameState();
|
LegoGameState* state = GameState();
|
||||||
state->SetPreviousArea(GameState()->GetUnknown0x42c());
|
state->m_previousArea = GameState()->m_unk0x42c;
|
||||||
}
|
}
|
||||||
|
|
||||||
InputManager()->Register(this);
|
InputManager()->Register(this);
|
||||||
@@ -1020,13 +1020,13 @@ MxU8 Infocenter::HandleControl(LegoControlManagerNotificationParam& p_param)
|
|||||||
case InfomainScript::c_BigInfo_Ctl:
|
case InfomainScript::c_BigInfo_Ctl:
|
||||||
switch (state->GetCurrentAct()) {
|
switch (state->GetCurrentAct()) {
|
||||||
case LegoGameState::e_act1:
|
case LegoGameState::e_act1:
|
||||||
if (state->GetPreviousArea()) {
|
if (state->m_previousArea) {
|
||||||
switch (state->GetPreviousArea()) {
|
switch (state->m_previousArea) {
|
||||||
case LegoGameState::e_infodoor:
|
case LegoGameState::e_infodoor:
|
||||||
case LegoGameState::e_regbook:
|
case LegoGameState::e_regbook:
|
||||||
case LegoGameState::e_infoscor:
|
case LegoGameState::e_infoscor:
|
||||||
m_infocenterState->m_unk0x74 = 5;
|
m_infocenterState->m_unk0x74 = 5;
|
||||||
m_destLocation = state->GetPreviousArea();
|
m_destLocation = state->m_previousArea;
|
||||||
actionToPlay = (InfomainScript::Script) m_infocenterState->GetNextLeaveDialogue();
|
actionToPlay = (InfomainScript::Script) m_infocenterState->GetNextLeaveDialogue();
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
InputManager()->DisableInputProcessing();
|
InputManager()->DisableInputProcessing();
|
||||||
@@ -1081,7 +1081,7 @@ MxU8 Infocenter::HandleControl(LegoControlManagerNotificationParam& p_param)
|
|||||||
actionToPlay = GameState()->GetCurrentAct() != LegoGameState::e_act1 ? InfomainScript::c_GoTo_RegBook_Red
|
actionToPlay = GameState()->GetCurrentAct() != LegoGameState::e_act1 ? InfomainScript::c_GoTo_RegBook_Red
|
||||||
: InfomainScript::c_GoTo_RegBook;
|
: InfomainScript::c_GoTo_RegBook;
|
||||||
m_radio.Stop();
|
m_radio.Stop();
|
||||||
GameState()->m_unk0x42c = GameState()->GetPreviousArea();
|
GameState()->m_unk0x42c = GameState()->m_previousArea;
|
||||||
InputManager()->DisableInputProcessing();
|
InputManager()->DisableInputProcessing();
|
||||||
break;
|
break;
|
||||||
case InfomainScript::c_Mama_Ctl:
|
case InfomainScript::c_Mama_Ctl:
|
||||||
@@ -1390,7 +1390,7 @@ void Infocenter::Reset()
|
|||||||
AnimationManager()->Reset(FALSE);
|
AnimationManager()->Reset(FALSE);
|
||||||
CharacterManager()->ReleaseAllActors();
|
CharacterManager()->ReleaseAllActors();
|
||||||
GameState()->SetCurrentAct(LegoGameState::e_act1);
|
GameState()->SetCurrentAct(LegoGameState::e_act1);
|
||||||
GameState()->SetPreviousArea(LegoGameState::e_undefined);
|
GameState()->m_previousArea = LegoGameState::e_undefined;
|
||||||
GameState()->m_unk0x42c = LegoGameState::e_undefined;
|
GameState()->m_unk0x42c = LegoGameState::e_undefined;
|
||||||
|
|
||||||
InitializeBitmaps();
|
InitializeBitmaps();
|
||||||
|
@@ -121,7 +121,7 @@ MxResult Isle::Create(MxDSAction& p_dsAction)
|
|||||||
m_act1state = act1state;
|
m_act1state = act1state;
|
||||||
|
|
||||||
EnableAnimations(TRUE);
|
EnableAnimations(TRUE);
|
||||||
GameState()->SetDirty(TRUE);
|
GameState()->m_isDirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@@ -141,7 +141,7 @@ MxResult LegoAct2::Create(MxDSAction& p_dsAction)
|
|||||||
case LegoGameState::e_act1:
|
case LegoGameState::e_act1:
|
||||||
case LegoGameState::e_actNotFound:
|
case LegoGameState::e_actNotFound:
|
||||||
GameState()->StopArea(LegoGameState::e_undefined);
|
GameState()->StopArea(LegoGameState::e_undefined);
|
||||||
if (GameState()->GetPreviousArea() == LegoGameState::e_infomain) {
|
if (GameState()->m_previousArea == LegoGameState::e_infomain) {
|
||||||
GameState()->StopArea(LegoGameState::e_isle);
|
GameState()->StopArea(LegoGameState::e_isle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ MxResult LegoAct2::Create(MxDSAction& p_dsAction)
|
|||||||
GameState()->m_currentArea = LegoGameState::e_act2main;
|
GameState()->m_currentArea = LegoGameState::e_act2main;
|
||||||
GameState()->SetCurrentAct(LegoGameState::e_act2);
|
GameState()->SetCurrentAct(LegoGameState::e_act2);
|
||||||
InputManager()->Register(this);
|
InputManager()->Register(this);
|
||||||
GameState()->SetDirty(TRUE);
|
GameState()->m_isDirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@@ -536,7 +536,7 @@ void LegoAct2::Enable(MxBool p_enable)
|
|||||||
|
|
||||||
((IslePathActor*) m_pepper->GetEntity())->VTable0xec(m_unk0x10dc, m_unk0x1124, TRUE);
|
((IslePathActor*) m_pepper->GetEntity())->VTable0xec(m_unk0x10dc, m_unk0x1124, TRUE);
|
||||||
|
|
||||||
if (GameState()->GetPreviousArea() == LegoGameState::e_infomain) {
|
if (GameState()->m_previousArea == LegoGameState::e_infomain) {
|
||||||
GameState()->StopArea(LegoGameState::e_infomain);
|
GameState()->StopArea(LegoGameState::e_infomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user