From aa04fe60dd97fdadd320c8223eef51bc1ebbd92b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 12 Aug 2005 02:19:08 +0000 Subject: [PATCH] hide grade --- stepmania/src/GameCommand.cpp | 2 +- stepmania/src/GameState.cpp | 4 ++-- stepmania/src/MusicWheelItem.cpp | 2 +- stepmania/src/Profile.cpp | 6 +++--- stepmania/src/ScreenEvaluation.cpp | 2 +- stepmania/src/ScreenNameEntryTraditional.cpp | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 3c0931348f..6f87e9858d 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -612,7 +612,7 @@ static HighScore MakeRandomHighScore( float fPercentDP ) { HighScore hs; hs.SetName( "FAKE" ); - hs.grade = (Grade)SCALE( rand()%5, 0, 4, GRADE_TIER01, GRADE_TIER05 ); + hs.SetGrade( (Grade)SCALE( rand()%5, 0, 4, GRADE_TIER01, GRADE_TIER05 ) ); hs.iScore = rand()%100*1000; hs.fPercentDP = fPercentDP; hs.fSurviveSeconds = randomf( 30.0f, 100.0f ); diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index fc32b1f6d7..9f359e2f13 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1391,7 +1391,7 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsOu feat.pSteps = pSteps; feat.Feat = ssprintf("MR #%d in %s %s", j+1, pSong->GetTranslitMainTitle().c_str(), DifficultyToString(pSteps->GetDifficulty()).c_str() ); feat.pStringToFill = hs.GetNameMutable(); - feat.grade = hs.grade; + feat.grade = hs.GetGrade(); feat.fPercentDP = hs.fPercentDP; feat.iScore = hs.iScore; @@ -1419,7 +1419,7 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsOu feat.Type = RankingFeat::SONG; feat.Feat = ssprintf("PR #%d in %s %s", j+1, pSong->GetTranslitMainTitle().c_str(), DifficultyToString(pSteps->GetDifficulty()).c_str() ); feat.pStringToFill = hs.GetNameMutable(); - feat.grade = hs.grade; + feat.grade = hs.GetGrade(); feat.fPercentDP = hs.fPercentDP; feat.iScore = hs.iScore; diff --git a/stepmania/src/MusicWheelItem.cpp b/stepmania/src/MusicWheelItem.cpp index ed0e26031f..cc3a463c37 100644 --- a/stepmania/src/MusicWheelItem.cpp +++ b/stepmania/src/MusicWheelItem.cpp @@ -261,7 +261,7 @@ void MusicWheelItem::RefreshGrades() else PROFILEMAN->GetHighScoreForDifficulty( data->m_pSong, GAMESTATE->GetCurrentStyle(), PROFILE_SLOT_MACHINE, dc, hs ); - m_GradeDisplay[p].SetGrade( p, hs.grade ); + m_GradeDisplay[p].SetGrade( p, hs.GetGrade() ); } } diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index ee11c5d9a8..e307d5d2c4 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -260,7 +260,7 @@ int Profile::GetTotalStepsWithTopGrade( StepsType st, Difficulty d, Grade g ) co if( hsl.vHighScores.empty() ) continue; // skip - if( hsl.vHighScores[0].grade == g ) + if( hsl.vHighScores[0].GetGrade() == g ) iCount++; } } @@ -290,7 +290,7 @@ int Profile::GetTotalTrailsWithTopGrade( StepsType st, CourseDifficulty d, Grade if( hsl.vHighScores.empty() ) continue; // skip - if( hsl.vHighScores[0].grade == g ) + if( hsl.vHighScores[0].GetGrade() == g ) iCount++; } @@ -653,7 +653,7 @@ void Profile::GetGrades( const Song* pSong, StepsType st, int iCounts[NUM_GRADES continue; const HighScoresForASteps &hsSteps = it->second; - if( hsSteps.hsl.GetTopScore().grade == g ) + if( hsSteps.hsl.GetTopScore().GetGrade() == g ) iCounts[g]++; } } diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 6b47135d38..04dee8ec2f 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -897,7 +897,7 @@ void ScreenEvaluation::CommitScores( HighScore &hs = m_HighScore[p]; hs.SetName( RANKING_TO_FILL_IN_MARKER[p] ); - hs.grade = stageStats.m_player[p].GetGrade(); + hs.SetGrade( stageStats.m_player[p].GetGrade() ); hs.iScore = stageStats.m_player[p].iScore; hs.fPercentDP = stageStats.m_player[p].GetPercentDancePoints(); hs.fSurviveSeconds = stageStats.m_player[p].fAliveSeconds; diff --git a/stepmania/src/ScreenNameEntryTraditional.cpp b/stepmania/src/ScreenNameEntryTraditional.cpp index 208a8d393e..c4f49188e1 100644 --- a/stepmania/src/ScreenNameEntryTraditional.cpp +++ b/stepmania/src/ScreenNameEntryTraditional.cpp @@ -169,7 +169,7 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S ss.m_player[p].vpPossibleSteps.push_back( pSteps ); HighScore hs; - hs.grade = GRADE_TIER03; + hs.SetGrade( GRADE_TIER03 ); hs.fPercentDP = ss.m_player[p].GetPercentDancePoints(); hs.iScore = ss.m_player[p].iScore; hs.dateTime = DateTime::GetNowDateTime();