add ScoreKeeperGuitar

This commit is contained in:
Chris Danford
2006-11-16 00:57:48 +00:00
parent 86037fa6cd
commit d78deea28d
5 changed files with 29 additions and 3 deletions
+5 -2
View File
@@ -120,8 +120,11 @@ PlayerStageStats.cpp PlayerStageStats.h \
PlayerState.cpp PlayerState.h Preference.cpp Preference.h Profile.cpp Profile.h \
RandomSample.cpp RandomSample.h RadarValues.cpp RadarValues.h \
ScreenDimensions.h ScreenDimensions.cpp \
ScoreKeeper.h ScoreKeeper.cpp ScoreKeeperNormal.cpp ScoreKeeperNormal.h \
ScoreKeeperRave.cpp ScoreKeeperRave.h Song.cpp song.h SongCacheIndex.cpp SongCacheIndex.h \
ScoreKeeper.h ScoreKeeper.cpp \
ScoreKeeperGuitar.cpp ScoreKeeperGuitar.h \
ScoreKeeperNormal.cpp ScoreKeeperNormal.h \
ScoreKeeperRave.cpp ScoreKeeperRave.h \
Song.cpp song.h SongCacheIndex.cpp SongCacheIndex.h \
SongOptions.cpp SongOptions.h SongUtil.cpp SongUtil.h StageStats.cpp StageStats.h Steps.cpp Steps.h \
StepsUtil.cpp StepsUtil.h Style.cpp Style.h StyleUtil.cpp StyleUtil.h \
SubscriptionManager.h \
+13
View File
@@ -30,6 +30,19 @@ void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow,
iNumTapsInRowOut = iNum;
}
#include "ScoreKeeperNormal.h"
#include "ScoreKeeperGuitar.h"
ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats )
{
if( sClassName == "ScoreKeeperNormal" )
return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
else if( sClassName == "ScoreKeeperGuitar" )
return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats );
FAIL_M( sClassName );
}
/*
* (c) 2006 Steve Checkoway
* All rights reserved.
+3
View File
@@ -24,6 +24,9 @@ struct AttackArray;
class ScoreKeeper
{
public:
static ScoreKeeper* MakeScoreKeeper( RString sClassName, PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats );
protected:
PlayerState *m_pPlayerState;
PlayerStageStats *m_pPlayerStageStats;
+2 -1
View File
@@ -68,6 +68,7 @@
static ThemeMetric<float> INITIAL_BACKGROUND_BRIGHTNESS ("ScreenGameplay","InitialBackgroundBrightness");
static ThemeMetric<float> SECONDS_BETWEEN_COMMENTS ("ScreenGameplay","SecondsBetweenComments");
static ThemeMetric<RString> SCORE_KEEPER_CLASS ("ScreenGameplay","ScoreKeeperClass");
AutoScreenMessage( SM_PlayGo )
@@ -164,7 +165,7 @@ void PlayerInfo::Load( PlayerNumber pn, MultiPlayer mp, bool bShowNoteField )
if( m_pSecondaryScoreDisplay )
m_pSecondaryScoreDisplay->Init( pPlayerState, pPlayerStageStats );
m_pPrimaryScoreKeeper = new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
m_pPrimaryScoreKeeper = ScoreKeeper::MakeScoreKeeper( SCORE_KEEPER_CLASS, pPlayerState, pPlayerStageStats );
switch( GAMESTATE->m_PlayMode )
{
+6
View File
@@ -1091,6 +1091,12 @@ cl /Zl /nologo /c verstub.cpp /Fo&quot;$(IntDir)&quot;\
<File
RelativePath="ScoreKeeper.h">
</File>
<File
RelativePath=".\ScoreKeeperGuitar.cpp">
</File>
<File
RelativePath=".\ScoreKeeperGuitar.h">
</File>
<File
RelativePath=".\ScoreKeeperNormal.cpp">
</File>