From 6a9f89ff9241cf00858378e16eea0ce5f7acce46 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 17 Dec 2002 22:05:17 +0000 Subject: [PATCH] add accessors move some stuff out of the header --- stepmania/src/NoteDataWithScoring.cpp | 20 ++++++++++++++++ stepmania/src/NoteDataWithScoring.h | 34 +++++++++++---------------- 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/stepmania/src/NoteDataWithScoring.cpp b/stepmania/src/NoteDataWithScoring.cpp index 6a809362b0..75fcb888c7 100644 --- a/stepmania/src/NoteDataWithScoring.cpp +++ b/stepmania/src/NoteDataWithScoring.cpp @@ -93,6 +93,26 @@ int NoteDataWithScoring::GetNumHoldNotesWithScore( HoldNoteScore hns, const floa return iNumSuccessfulHolds; } +bool NoteDataWithScoring::IsRowComplete( int index ) +{ + for( int t=0; t m_HoldNoteScores; /* 1.0 means this HoldNote has full life. * 0.0 means this HoldNote is dead @@ -33,26 +35,18 @@ struct NoteDataWithScoring : public NoteData int GetNumDoublesWithScore( TapNoteScore tns, const float fStartBeat = 0, const float fEndBeat = MAX_BEATS ); int GetNumHoldNotesWithScore( HoldNoteScore hns, const float fStartBeat = 0, const float fEndBeat = MAX_BEATS ); - inline bool IsRowComplete( int index ) + TapNoteScore GetTapNoteScore(int track, int row) const { - for( int t=0; t