#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= 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 ); }