allow ScoreKeeperRave to be used as a ScoreKeeper.

This commit is contained in:
AJ Kelly
2010-05-26 00:08:35 -05:00
parent b740232ca6
commit 0a85bfd23d
+3 -1
View File
@@ -13,7 +13,6 @@ ScoreKeeper::ScoreKeeper( PlayerState *pPlayerState, PlayerStageStats *pPlayerSt
void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow,
TapNoteScore &tnsOut, int &iNumTapsInRowOut )
{
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
int iNum = 0;
for( int track = 0; track < nd.GetNumTracks(); ++track )
@@ -29,6 +28,7 @@ void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow,
}
#include "ScoreKeeperNormal.h"
#include "ScoreKeeperRave.h"
#include "ScoreKeeperGuitar.h"
#include "ScoreKeeperShared.h"
@@ -36,6 +36,8 @@ ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPla
{
if( sClassName == "ScoreKeeperNormal" )
return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperRave" )
return new ScoreKeeperRave( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperGuitar" )
return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperShared" )