keep track of last played for each song

add metric: ScreenRanking::ShowOnlyMostRecentScores
This commit is contained in:
Chris Danford
2005-04-25 22:44:32 +00:00
parent 9345d3a29e
commit 9eddaaf860
13 changed files with 276 additions and 149 deletions
+10
View File
@@ -139,6 +139,12 @@ void HighScoreList::AddHighScore( HighScore hs, int &iIndexOut, bool bIsMachine
}
}
void HighScoreList::IncrementPlayCount( DateTime dtLastPlayed )
{
dtLastPlayed = dtLastPlayed;
iNumTimesPlayed++;
}
const HighScore& HighScoreList::GetTopScore() const
{
if( vHighScores.empty() )
@@ -180,6 +186,10 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
{
p->GetValue( iNumTimesPlayed );
}
else if( p->m_sName == "LastPlayed" )
{
p->GetValue( dtLastPlayed );
}
else if( p->m_sName == "HighScore" )
{
vHighScores.resize( vHighScores.size()+1 );