rename m_iNumSingleSongsPlayed -> m_iNumTotalSongsPlayed

replace GetTotalNumSongsPlayed
This commit is contained in:
Glenn Maynard
2005-02-23 22:59:56 +00:00
parent c6de356dca
commit 2da21b16d4
3 changed files with 7 additions and 16 deletions
+4 -12
View File
@@ -102,7 +102,7 @@ void Profile::InitGeneralData()
m_iNumSongsPlayedByDifficulty[i] = 0;
for( int i=0; i<MAX_METER+1; i++ )
m_iNumSongsPlayedByMeter[i] = 0;
m_iNumSingleSongsPlayed = 0;
m_iNumTotalSongsPlayed = 0;
ZERO( m_iNumStagesPassedByPlayMode );
ZERO( m_iNumStagesPassedByGrade );
@@ -185,14 +185,6 @@ float Profile::GetCaloriesBurnedToday() const
return GetCaloriesBurnedForDay(now);
}
int Profile::GetTotalNumSongsPlayed() const
{
int iTotal = 0;
FOREACH_PlayMode( i )
iTotal += m_iNumSongsPlayedByPlayMode[i];
return iTotal;
}
int Profile::GetTotalNumSongsPassed() const
{
int iTotal = 0;
@@ -886,7 +878,7 @@ XNode* Profile::SaveGeneralDataCreateNode() const
}
}
pGeneralDataNode->AppendChild( "NumSingleSongsPlayed", m_iNumSingleSongsPlayed );
pGeneralDataNode->AppendChild( "NumTotalSongsPlayed", m_iNumTotalSongsPlayed );
{
XNode* pNumStagesPassedByPlayMode = pGeneralDataNode->AppendChild("NumStagesPassedByPlayMode");
@@ -1056,7 +1048,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
pNumSongsPlayedByMeter->GetChildValue( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] );
}
pNode->GetChildValue("NumSingleSongsPlayed", m_iNumSingleSongsPlayed );
pNode->GetChildValue("NumTotalSongsPlayed", m_iNumTotalSongsPlayed );
{
const XNode* pNumStagesPassedByGrade = pNode->GetChild("NumStagesPassedByGrade");
@@ -1703,7 +1695,7 @@ public:
static int SetGoalSeconds( T* p, lua_State *L ) { p->m_iGoalSeconds = IArg(1); return 0; }
static int GetCaloriesBurnedToday( T* p, lua_State *L ) { lua_pushnumber(L, p->GetCaloriesBurnedToday() ); return 1; }
static int GetSaved( T* p, lua_State *L ) { p->m_SavedLuaData.PushSelf(L); return 1; }
static int GetTotalNumSongsPlayed( T* p, lua_State *L ) { lua_pushnumber(L, p->GetTotalNumSongsPlayed() ); return 1; }
static int GetTotalNumSongsPlayed( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iNumTotalSongsPlayed ); return 1; }
static int IsCodeUnlocked( T* p, lua_State *L ) { lua_pushboolean(L, p->IsCodeUnlocked(IArg(1)) ); return 1; }
+1 -2
View File
@@ -66,7 +66,6 @@ public:
CString GetDisplayTotalCaloriesBurned() const; // remove me and use Lua instead
CString GetDisplayTotalCaloriesBurnedToday() const; // remove me and use Lua instead
float GetCaloriesBurnedToday() const;
int GetTotalNumSongsPlayed() const;
int GetTotalNumSongsPassed() const;
float GetSongsPossible( StepsType st, Difficulty dc ) const;
float GetCoursesPossible( StepsType st, CourseDifficulty cd ) const;
@@ -129,7 +128,7 @@ public:
int m_iNumSongsPlayedByDifficulty[NUM_DIFFICULTIES];
int m_iNumSongsPlayedByMeter[MAX_METER+1];
/* This stat counts once per song, even if two players are active. */
int m_iNumSingleSongsPlayed;
int m_iNumTotalSongsPlayed;
int m_iNumStagesPassedByPlayMode[NUM_PLAY_MODES];
int m_iNumStagesPassedByGrade[NUM_GRADES];
+2 -2
View File
@@ -142,7 +142,7 @@ void StatsManager::CommitStatsToProfiles()
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
pMachineProfile->m_iCurrentCombo = 0;
pMachineProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
pMachineProfile->m_iNumTotalSongsPlayed += m_CurStageStats.vpSongs.size();
CHECKPOINT;
FOREACH_HumanPlayer( pn )
@@ -157,7 +157,7 @@ void StatsManager::CommitStatsToProfiles()
PREFSMAN->m_bComboContinuesBetweenSongs ?
m_CurStageStats.m_player[pn].iCurCombo :
0;
pPlayerProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
pPlayerProfile->m_iNumTotalSongsPlayed += m_CurStageStats.vpSongs.size();
}
AddPlayerStatsToProfile( pMachineProfile, m_CurStageStats, pn );