Change the api to take a NoteData and a row. Let the score keepers decide what they want to do with the row.

This commit is contained in:
Steve Checkoway
2006-07-14 04:19:30 +00:00
parent af1652ef28
commit 743d2b9697
9 changed files with 82 additions and 21 deletions
+7 -3
View File
@@ -348,10 +348,14 @@ void ScoreKeeperNormal::HandleTapScore( const TapNote &tn )
}
}
void ScoreKeeperNormal::HandleTapRowScore( const TapNote &lastTN, int iNumTapsInRow )
void ScoreKeeperNormal::HandleTapRowScore( const NoteData &nd, int iRow )
{
ASSERT( iNumTapsInRow >= 1 );
TapNoteScore scoreOfLastTap = lastTN.result.tns;
TapNoteScore scoreOfLastTap;
int iNumTapsInRow;
GetScoreOfLastTapInRow( nd, iRow, scoreOfLastTap, iNumTapsInRow );
if( iNumTapsInRow <= 0 )
return;
// Update dance points.
if( !m_pPlayerStageStats->bFailed )