NoteDataWithScoring has no members; turn it into a namespace

This commit is contained in:
Glenn Maynard
2005-01-22 18:22:38 +00:00
parent 48bce52780
commit 4970e024f3
6 changed files with 118 additions and 123 deletions
+6 -24
View File
@@ -4,36 +4,18 @@
#define NOTEDATAWITHSCORING_H
#include "GameConstantsAndTypes.h"
#include "NoteData.h"
#include "PlayerNumber.h"
#include <map>
struct RadarValues;
class NoteDataWithScoring : public NoteData
class NoteData;
namespace NoteDataWithScoring
{
public:
bool IsRowCompletelyJudged( unsigned iRow ) const;
TapNoteScore MinTapNoteScore( unsigned iRow ) const;
TapNoteScore LastTapNoteScore( unsigned iRow ) const;
bool IsRowCompletelyJudged( const NoteData &in, unsigned iRow );
TapNoteScore MinTapNoteScore( const NoteData &in, unsigned iRow );
TapNoteScore LastTapNoteScore( const NoteData &in, unsigned iRow );
void GetActualRadarValues( PlayerNumber pn, float fSongSeconds, RadarValues& out ) const;
private:
int LastTapNoteScoreTrack( unsigned iRow ) const;
// statistics
int GetNumTapNotesWithScore( TapNoteScore tns, const float fStartBeat = 0, const float fEndBeat = -1 ) const;
int GetNumNWithScore( TapNoteScore tns, int iMinTaps, const float fStartBeat = 0, const float fEndBeat = -1 ) const;
int GetNumHoldNotesWithScore( HoldNoteScore hns, const float fStartBeat = 0, const float fEndBeat = -1 ) const;
int GetSuccessfulMines( const float fStartBeat = 0, const float fEndBeat = -1 ) const;
int GetSuccessfulHands( const float fStartBeat = 0, const float fEndBeat = -1 ) const;
float GetActualStreamRadarValue( float fSongSeconds, PlayerNumber pn ) const;
float GetActualVoltageRadarValue( float fSongSeconds, PlayerNumber pn ) const;
float GetActualAirRadarValue( float fSongSeconds, PlayerNumber pn ) const;
float GetActualFreezeRadarValue( float fSongSeconds, PlayerNumber pn ) const;
float GetActualChaosRadarValue( float fSongSeconds, PlayerNumber pn ) const;
void GetActualRadarValues( const NoteData &in, PlayerNumber pn, float fSongSeconds, RadarValues& out );
};
#endif