#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(int taps, int holds) { NoteData::Init(); for( int t=0; tGetTapNote(t, i) != TAP_EMPTY && m_TapNoteScores[t][i] == tns ) iNumSuccessfulTapNotes++; } } return iNumSuccessfulTapNotes; } int NoteDataWithScoring::GetNumDoublesWithScore( TapNoteScore tns, 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 ) iNumSuccessfulDoubles++; } return iNumSuccessfulDoubles; } int NoteDataWithScoring::GetNumHoldNotesWithScore( HoldNoteScore hns, 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 = GetNumHoldNotesWithScore(HNS_OK) / fSongSeconds; return min( fReturn, 1.0f ); }