Decouple <vector>

This commit is contained in:
Martin Natano
2023-04-21 22:13:41 +02:00
parent aa87f85eef
commit bacecae1f7
422 changed files with 2326 additions and 1295 deletions
+11 -8
View File
@@ -10,7 +10,10 @@
#include "Profile.h"
#include "ProfileManager.h"
/* Arcade: for the current stage (one song).
#include <vector>
/* Arcade: for the current stage (one song).
* Nonstop/Oni/Endless: for current course (which usually contains multiple songs)
*/
@@ -228,7 +231,7 @@ void StageStats::FinalizeScores( bool bSummary )
if( bSummary )
{
// don't save scores if any stage was failed
if( m_player[p].m_bFailed )
if( m_player[p].m_bFailed )
continue;
int iAverageMeter = GetAverageMeter(p);
@@ -257,7 +260,7 @@ void StageStats::FinalizeScores( bool bSummary )
}
// If both players get a machine high score in the same HighScoreList,
// then one player's score may have bumped the other player. Look in
// then one player's score may have bumped the other player. Look in
// the HighScoreList and re-get the high score index.
FOREACH_HumanPlayer( p )
{
@@ -309,7 +312,7 @@ bool StageStats::PlayerHasHighScore( PlayerNumber pn ) const
if( pSong->IsTutorial() == Song::SHOW_NEVER )
return false;
const HighScoreList &hsl =
const HighScoreList &hsl =
GAMESTATE->IsCourseMode() ?
PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse, pTrail) :
PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong, pSteps);
@@ -320,7 +323,7 @@ bool StageStats::PlayerHasHighScore( PlayerNumber pn ) const
{
const HighScore &hs = hsl.vHighScores[h];
if( hs.GetName() == RANKING_TO_FILL_IN_MARKER[pn] &&
hs.GetPercentDP() == fPercentDP &&
hs.GetPercentDP() == fPercentDP &&
hs.GetScore() == iScore )
{
return true;
@@ -341,7 +344,7 @@ unsigned int StageStats::GetMinimumMissCombo() const
// lua start
#include "LuaBinding.h"
/** @brief Allow Lua to have access to the StageStats. */
/** @brief Allow Lua to have access to the StageStats. */
class LunaStageStats: public Luna<StageStats>
{
public:
@@ -407,7 +410,7 @@ LUA_REGISTER_CLASS( StageStats )
/*
* (c) 2001-2004 Chris Danford, Glenn Maynard
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -417,7 +420,7 @@ LUA_REGISTER_CLASS( StageStats )
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF