Skip to content

Commit

Permalink
remove playerai
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 15, 2022
1 parent ea3e98f commit 5ce77e0
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 59 deletions.
1 change: 0 additions & 1 deletion src/Etterna/Actor/Gameplay/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "Etterna/Models/NoteData/NoteDataWithScoring.h"
#include "NoteField.h"
#include "Player.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/Misc/PlayerState.h"
#include "Etterna/Singletons/PrefsManager.h"
#include "Etterna/Models/Misc/Profile.h"
Expand Down
1 change: 0 additions & 1 deletion src/Etterna/Actor/Gameplay/PlayerReplay.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "Etterna/Globals/global.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/Misc/PlayerState.h"
#include "ArrowEffects.h"
#include "NoteField.h"
Expand Down
2 changes: 0 additions & 2 deletions src/Etterna/Models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ list(APPEND REST_SRC
"Misc/ModsGroup.cpp"
"Misc/NoteTypes.cpp"
"Misc/OptionRowHandler.cpp"
"Misc/PlayerAI.cpp"
"Misc/PlayerInfo.cpp"
"Misc/PlayerNumber.cpp"
"Misc/PlayerOptions.cpp"
Expand Down Expand Up @@ -179,7 +178,6 @@ list(APPEND REST_HPP
"Misc/ModsGroup.h"
"Misc/NoteTypes.h"
"Misc/OptionRowHandler.h"
"Misc/PlayerAI.h"
"Misc/PlayerInfo.h"
"Misc/PlayerNumber.h"
"Misc/PlayerOptions.h"
Expand Down
19 changes: 0 additions & 19 deletions src/Etterna/Models/Misc/PlayerAI.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions src/Etterna/Models/Misc/PlayerAI.h

This file was deleted.

1 change: 0 additions & 1 deletion src/Etterna/Models/Misc/StageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "Etterna/Singletons/ProfileManager.h"
#include "StageStats.h"
#include "Etterna/Models/StepsAndStyles/Style.h"
#include "PlayerAI.h"
#include "Etterna/Singletons/NetworkSyncManager.h"
#include "AdjustSync.h"
#include "Etterna/Singletons/ScoreManager.h"
Expand Down
13 changes: 6 additions & 7 deletions src/Etterna/Screen/Gameplay/ScreenGameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "Etterna/Models/NoteData/NoteDataUtil.h"
#include "Etterna/Models/NoteData/NoteDataWithScoring.h"
#include "Etterna/Actor/Gameplay/Player.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/Misc/PlayerState.h"
#include "Etterna/Singletons/PrefsManager.h"
#include "Etterna/Models/Misc/Profile.h"
Expand All @@ -42,7 +41,7 @@
#include "Etterna/Singletons/DownloadManager.h"
#include "Etterna/Singletons/ScoreManager.h"
#include "Etterna/Models/Misc/PlayerInfo.h"
#include "Etterna/Models/Songs/SongOptions.h"
#include "Etterna/Models/Songs/SongOptions.h"
#include "Etterna/Singletons/ReplayManager.h"

#include <algorithm>
Expand Down Expand Up @@ -461,14 +460,14 @@ ScreenGameplay::SetupNoteDataFromRow(Steps* pSteps, int row)
m_vPlayerInfo.m_SoundEffectControl.Load(
sType, m_vPlayerInfo.GetPlayerState(), &m_vPlayerInfo.m_NoteData);
}
}

}

void
ScreenGameplay::ReloadPlayer()
{
m_vPlayerInfo.m_pPlayer->Reload();
}

}

void
ScreenGameplay::LoadPlayer()
{
Expand Down Expand Up @@ -1322,7 +1321,7 @@ ScreenGameplay::Input(const InputEventPlus& input) -> bool
bHoldingGiveUp |= (input.MenuI == GAME_BUTTON_START);
}

// Exiting gameplay by holding Start (Forced Fail)
// Exiting gameplay by holding Start (Forced Fail)
// Never allow holding start in Practice Mode
if (bHoldingGiveUp && !GAMESTATE->IsPracticeMode() &&
PREFSMAN->m_AllowStartToGiveUp) {
Expand Down
1 change: 0 additions & 1 deletion src/Etterna/Screen/Gameplay/ScreenGameplayReplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "Etterna/Models/StepsAndStyles/Style.h"
#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
#include "Etterna/Models/Misc/GamePreferences.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/Misc/PlayerInfo.h"
#include "Etterna/Models/Misc/PlayerStageStats.h"
#include "Etterna/Models/NoteData/NoteData.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/Screen/Others/ScreenEvaluation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include "Etterna/Models/StepsAndStyles/Steps.h"
#include "Etterna/Singletons/ThemeManager.h"
#include "Etterna/Models/Misc/GamePreferences.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/NoteData/NoteData.h"
#include "Etterna/Singletons/ReplayManager.h"
#include "Etterna/Actor/Gameplay/Player.h"
#include "Etterna/Globals/rngthing.h"

#define CHEER_DELAY_SECONDS THEME->GetMetricF(m_sName, "CheerDelaySeconds")
Expand Down
11 changes: 5 additions & 6 deletions src/Etterna/Screen/Others/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
#include "Etterna/Singletons/NetworkSyncManager.h"
#include "Etterna/Singletons/FilterManager.h"
#include "Etterna/Models/Misc/GamePreferences.h"
#include "Etterna/Models/Misc/PlayerAI.h"
#include "Etterna/Models/Misc/PlayerOptions.h"
#include "Etterna/Models/NoteData/NoteData.h"
#include "Etterna/Actor/Gameplay/Player.h"
#include "Etterna/Models/NoteData/NoteDataUtil.h"
#include "Etterna/Models/NoteData/NoteDataUtil.h"
#include "Etterna/Singletons/ReplayManager.h"

#include <algorithm>
Expand Down Expand Up @@ -181,8 +180,8 @@ ScreenSelectMusic::Init()
THEME->GetPathS(m_sName, "difficulty harder"), false, &SoundParams);
m_soundOptionsChange.Load(THEME->GetPathS(m_sName, "options"));
m_soundLocked.Load(THEME->GetPathS(m_sName, "locked"));

REPLAYS->UnsetActiveReplay();

REPLAYS->UnsetActiveReplay();

this->SortByDrawOrder();
}
Expand Down Expand Up @@ -903,7 +902,7 @@ ScreenSelectMusic::ChangeSteps(PlayerNumber pn, int dir)
if (!GAMESTATE->ChangePreferredDifficulty(pn, dir))
return;
}


AfterStepsOrTrailChange();

const auto fBalance = GameSoundManager::GetPlayerBalance(pn);
Expand Down Expand Up @@ -1230,7 +1229,7 @@ ScreenSelectMusic::MenuBack(const InputEventPlus& /* input */)

void
ScreenSelectMusic::AfterStepsOrTrailChange()
{
{
// this used to be based on a list of given PlayerNumbers
const auto pn = PLAYER_1;
ASSERT(GAMESTATE->IsHumanPlayer(pn));
Expand Down

0 comments on commit 5ce77e0

Please sign in to comment.