rename m_iNumSingleSongsPlayed -> m_iNumTotalSongsPlayed
replace GetTotalNumSongsPlayed
This commit is contained in:
@@ -102,7 +102,7 @@ void Profile::InitGeneralData()
|
|||||||
m_iNumSongsPlayedByDifficulty[i] = 0;
|
m_iNumSongsPlayedByDifficulty[i] = 0;
|
||||||
for( int i=0; i<MAX_METER+1; i++ )
|
for( int i=0; i<MAX_METER+1; i++ )
|
||||||
m_iNumSongsPlayedByMeter[i] = 0;
|
m_iNumSongsPlayedByMeter[i] = 0;
|
||||||
m_iNumSingleSongsPlayed = 0;
|
m_iNumTotalSongsPlayed = 0;
|
||||||
ZERO( m_iNumStagesPassedByPlayMode );
|
ZERO( m_iNumStagesPassedByPlayMode );
|
||||||
ZERO( m_iNumStagesPassedByGrade );
|
ZERO( m_iNumStagesPassedByGrade );
|
||||||
|
|
||||||
@@ -185,14 +185,6 @@ float Profile::GetCaloriesBurnedToday() const
|
|||||||
return GetCaloriesBurnedForDay(now);
|
return GetCaloriesBurnedForDay(now);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Profile::GetTotalNumSongsPlayed() const
|
|
||||||
{
|
|
||||||
int iTotal = 0;
|
|
||||||
FOREACH_PlayMode( i )
|
|
||||||
iTotal += m_iNumSongsPlayedByPlayMode[i];
|
|
||||||
return iTotal;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Profile::GetTotalNumSongsPassed() const
|
int Profile::GetTotalNumSongsPassed() const
|
||||||
{
|
{
|
||||||
int iTotal = 0;
|
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");
|
XNode* pNumStagesPassedByPlayMode = pGeneralDataNode->AppendChild("NumStagesPassedByPlayMode");
|
||||||
@@ -1056,7 +1048,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
|||||||
pNumSongsPlayedByMeter->GetChildValue( ssprintf("Meter%d",i), m_iNumSongsPlayedByMeter[i] );
|
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");
|
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 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 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 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; }
|
static int IsCodeUnlocked( T* p, lua_State *L ) { lua_pushboolean(L, p->IsCodeUnlocked(IArg(1)) ); return 1; }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ public:
|
|||||||
CString GetDisplayTotalCaloriesBurned() const; // remove me and use Lua instead
|
CString GetDisplayTotalCaloriesBurned() const; // remove me and use Lua instead
|
||||||
CString GetDisplayTotalCaloriesBurnedToday() const; // remove me and use Lua instead
|
CString GetDisplayTotalCaloriesBurnedToday() const; // remove me and use Lua instead
|
||||||
float GetCaloriesBurnedToday() const;
|
float GetCaloriesBurnedToday() const;
|
||||||
int GetTotalNumSongsPlayed() const;
|
|
||||||
int GetTotalNumSongsPassed() const;
|
int GetTotalNumSongsPassed() const;
|
||||||
float GetSongsPossible( StepsType st, Difficulty dc ) const;
|
float GetSongsPossible( StepsType st, Difficulty dc ) const;
|
||||||
float GetCoursesPossible( StepsType st, CourseDifficulty cd ) const;
|
float GetCoursesPossible( StepsType st, CourseDifficulty cd ) const;
|
||||||
@@ -129,7 +128,7 @@ public:
|
|||||||
int m_iNumSongsPlayedByDifficulty[NUM_DIFFICULTIES];
|
int m_iNumSongsPlayedByDifficulty[NUM_DIFFICULTIES];
|
||||||
int m_iNumSongsPlayedByMeter[MAX_METER+1];
|
int m_iNumSongsPlayedByMeter[MAX_METER+1];
|
||||||
/* This stat counts once per song, even if two players are active. */
|
/* 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_iNumStagesPassedByPlayMode[NUM_PLAY_MODES];
|
||||||
int m_iNumStagesPassedByGrade[NUM_GRADES];
|
int m_iNumStagesPassedByGrade[NUM_GRADES];
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ void StatsManager::CommitStatsToProfiles()
|
|||||||
|
|
||||||
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
|
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
|
||||||
pMachineProfile->m_iCurrentCombo = 0;
|
pMachineProfile->m_iCurrentCombo = 0;
|
||||||
pMachineProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
|
pMachineProfile->m_iNumTotalSongsPlayed += m_CurStageStats.vpSongs.size();
|
||||||
|
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
FOREACH_HumanPlayer( pn )
|
FOREACH_HumanPlayer( pn )
|
||||||
@@ -157,7 +157,7 @@ void StatsManager::CommitStatsToProfiles()
|
|||||||
PREFSMAN->m_bComboContinuesBetweenSongs ?
|
PREFSMAN->m_bComboContinuesBetweenSongs ?
|
||||||
m_CurStageStats.m_player[pn].iCurCombo :
|
m_CurStageStats.m_player[pn].iCurCombo :
|
||||||
0;
|
0;
|
||||||
pPlayerProfile->m_iNumSingleSongsPlayed += m_CurStageStats.vpSongs.size();
|
pPlayerProfile->m_iNumTotalSongsPlayed += m_CurStageStats.vpSongs.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
AddPlayerStatsToProfile( pMachineProfile, m_CurStageStats, pn );
|
AddPlayerStatsToProfile( pMachineProfile, m_CurStageStats, pn );
|
||||||
|
|||||||
Reference in New Issue
Block a user