track calories in StageStats
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user