support ScoreKeeperShared in ScoreKeeper::MakeScoreKeeper

This commit is contained in:
Glenn Maynard
2010-01-25 07:36:20 +00:00
parent e266156335
commit 1d9555a6d2
+3
View File
@@ -32,6 +32,7 @@ void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow,
#include "ScoreKeeperNormal.h"
#include "ScoreKeeperGuitar.h"
#include "ScoreKeeperShared.h"
ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats )
{
@@ -39,6 +40,8 @@ ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPla
return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperGuitar" )
return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperShared" )
return new ScoreKeeperShared( pPlayerState, pPlayerStageStats );
FAIL_M( sClassName );
}