track calories in StageStats
This commit is contained in:
@@ -22,6 +22,7 @@ void PlayerStageStats::Init()
|
|||||||
fSecondsBeforeFail = 0;
|
fSecondsBeforeFail = 0;
|
||||||
iSongsPassed = iSongsPlayed = 0;
|
iSongsPassed = iSongsPlayed = 0;
|
||||||
iTotalError = 0;
|
iTotalError = 0;
|
||||||
|
fCaloriesBurned = 0;
|
||||||
|
|
||||||
ZERO( iTapNoteScores );
|
ZERO( iTapNoteScores );
|
||||||
ZERO( iHoldNoteScores );
|
ZERO( iHoldNoteScores );
|
||||||
@@ -58,6 +59,7 @@ void PlayerStageStats::AddStats( const PlayerStageStats& other )
|
|||||||
iSongsPassed += other.iSongsPassed;
|
iSongsPassed += other.iSongsPassed;
|
||||||
iSongsPlayed += other.iSongsPlayed;
|
iSongsPlayed += other.iSongsPlayed;
|
||||||
iTotalError += other.iTotalError;
|
iTotalError += other.iTotalError;
|
||||||
|
fCaloriesBurned += other.fCaloriesBurned;
|
||||||
|
|
||||||
const float fOtherFirstSecond = other.fFirstSecond + fLastSecond;
|
const float fOtherFirstSecond = other.fFirstSecond + fLastSecond;
|
||||||
const float fOtherLastSecond = other.fLastSecond + fLastSecond;
|
const float fOtherLastSecond = other.fLastSecond + fLastSecond;
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ struct PlayerStageStats
|
|||||||
int iSongsPlayed;
|
int iSongsPlayed;
|
||||||
int iTotalError;
|
int iTotalError;
|
||||||
|
|
||||||
|
// workout
|
||||||
|
float fCaloriesBurned;
|
||||||
|
|
||||||
map<float,float> fLifeRecord;
|
map<float,float> fLifeRecord;
|
||||||
void SetLifeRecordAt( float fLife, float fSecond );
|
void SetLifeRecordAt( float fLife, float fSecond );
|
||||||
void GetLifeRecord( float *fLifeOut, int iNumSamples ) const;
|
void GetLifeRecord( float *fLifeOut, int iNumSamples ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user