#include "stdafx.h" /* ----------------------------------------------------------------------------- Class: NoteDataWithScoring Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "NoteDataWithScoring.h" NoteDataWithScoring::NoteDataWithScoring() { Init(); } void NoteDataWithScoring::Init() { NoteData::Init(); InitScoringData(); } void NoteDataWithScoring::InitScoringData() { for( int t=0; t= TNS_GREAT ) iNumSuccessfulTapNotes++; } } return iNumSuccessfulTapNotes; } int NoteDataWithScoring::GetNumSuccessfulDoubles( const float fStartBeat, const float fEndBeat ) { int iNumSuccessfulDoubles = 0; int iStartIndex = BeatToNoteRow( fStartBeat ); int iEndIndex = BeatToNoteRow( fEndBeat ); for( int i=iStartIndex; i= 2 && minTapNoteScore >= TNS_GREAT ) iNumSuccessfulDoubles++; } return iNumSuccessfulDoubles; } int NoteDataWithScoring::GetNumSuccessfulHoldNotes( const float fStartBeat, const float fEndBeat ) { int iNumSuccessfulHolds = 0; for( int i=0; i= NOTE_TYPE_12TH ) iNumChaosNotesCompleted++; } float fReturn = iNumChaosNotesCompleted / fSongSeconds * 0.5f; return min( fReturn, 1.0f ); } float NoteDataWithScoring::GetActualFreezeRadarValue( float fSongSeconds ) { // number of hold steps float fReturn = GetNumSuccessfulHoldNotes() / fSongSeconds; return min( fReturn, 1.0f ); }