track calories in StageStats

This commit is contained in:
Chris Danford
2005-02-15 00:54:24 +00:00
parent cf15266d69
commit 9702bca914
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -22,6 +22,7 @@ void PlayerStageStats::Init()
fSecondsBeforeFail = 0;
iSongsPassed = iSongsPlayed = 0;
iTotalError = 0;
fCaloriesBurned = 0;
ZERO( iTapNoteScores );
ZERO( iHoldNoteScores );
@@ -58,6 +59,7 @@ void PlayerStageStats::AddStats( const PlayerStageStats& other )
iSongsPassed += other.iSongsPassed;
iSongsPlayed += other.iSongsPlayed;
iTotalError += other.iTotalError;
fCaloriesBurned += other.fCaloriesBurned;
const float fOtherFirstSecond = other.fFirstSecond + fLastSecond;
const float fOtherLastSecond = other.fLastSecond + fLastSecond;
+3
View File
@@ -51,6 +51,9 @@ struct PlayerStageStats
int iSongsPlayed;
int iTotalError;
// workout
float fCaloriesBurned;
map<float,float> fLifeRecord;
void SetLifeRecordAt( float fLife, float fSecond );
void GetLifeRecord( float *fLifeOut, int iNumSamples ) const;