hide grade

This commit is contained in:
Glenn Maynard
2005-08-12 02:19:08 +00:00
parent 2307fa23d9
commit aa04fe60dd
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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 );
+2 -2
View File
@@ -1391,7 +1391,7 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector<RankingFeat> &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<RankingFeat> &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;
+1 -1
View File
@@ -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() );
}
}
+3 -3
View File
@@ -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]++;
}
}
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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();