pull function out of header

const
This commit is contained in:
Glenn Maynard
2005-08-12 01:29:40 +00:00
parent 09b7bb96bc
commit 4f7da83726
2 changed files with 20 additions and 18 deletions
+18
View File
@@ -21,6 +21,24 @@ HighScore::HighScore()
Unset(); Unset();
} }
void HighScore::Unset()
{
sName = "";
grade = GRADE_NO_DATA;
iScore = 0;
fPercentDP = 0;
fSurviveSeconds = 0;
sModifiers = "";
dateTime.Init();
sPlayerGuid = "";
sMachineGuid = "";
iProductID = 0;
ZERO( iTapNoteScores );
ZERO( iHoldNoteScores );
radarValues.MakeUnknown();
fLifeRemainingSeconds = 0;
}
bool HighScore::operator>=( const HighScore& other ) const bool HighScore::operator>=( const HighScore& other ) const
{ {
/* Make sure we treat AAAA as higher than AAA, even though the score /* Make sure we treat AAAA as higher than AAA, even though the score
+2 -18
View File
@@ -31,28 +31,12 @@ struct HighScore
HighScore(); HighScore();
void Unset() void Unset();
{
sName = "";
grade = GRADE_NO_DATA;
iScore = 0;
fPercentDP = 0;
fSurviveSeconds = 0;
sModifiers = "";
dateTime.Init();
sPlayerGuid = "";
sMachineGuid = "";
iProductID = 0;
ZERO( iTapNoteScores );
ZERO( iHoldNoteScores );
radarValues.MakeUnknown();
fLifeRemainingSeconds = 0;
}
bool operator>=( const HighScore& other ) const; bool operator>=( const HighScore& other ) const;
bool operator==( const HighScore& other ) const; bool operator==( const HighScore& other ) const;
float GetSurvivalSeconds() { return fSurviveSeconds + fLifeRemainingSeconds; } float GetSurvivalSeconds() const { return fSurviveSeconds + fLifeRemainingSeconds; }
XNode* CreateNode() const; XNode* CreateNode() const;
void LoadFromNode( const XNode* pNode ); void LoadFromNode( const XNode* pNode );