simplify
This commit is contained in:
@@ -26,7 +26,7 @@ struct HighScoreImpl
|
|||||||
RadarValues radarValues;
|
RadarValues radarValues;
|
||||||
float fLifeRemainingSeconds;
|
float fLifeRemainingSeconds;
|
||||||
|
|
||||||
void Unset();
|
HighScoreImpl();
|
||||||
XNode *CreateNode() const;
|
XNode *CreateNode() const;
|
||||||
void LoadFromNode( const XNode *pNode );
|
void LoadFromNode( const XNode *pNode );
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ bool HighScoreImpl::operator==( const HighScoreImpl& other ) const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void HighScoreImpl::Unset()
|
HighScoreImpl::HighScoreImpl()
|
||||||
{
|
{
|
||||||
sName = "";
|
sName = "";
|
||||||
grade = GRADE_NO_DATA;
|
grade = GRADE_NO_DATA;
|
||||||
@@ -145,12 +145,11 @@ REGISTER_CLASS_TRAITS( HighScoreImpl, new HighScoreImpl(*pCopy) )
|
|||||||
HighScore::HighScore()
|
HighScore::HighScore()
|
||||||
{
|
{
|
||||||
m_Impl = new HighScoreImpl;
|
m_Impl = new HighScoreImpl;
|
||||||
Unset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HighScore::Unset()
|
void HighScore::Unset()
|
||||||
{
|
{
|
||||||
m_Impl->Unset();
|
m_Impl = new HighScoreImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
CString HighScore::GetName() const { return m_Impl->sName; }
|
CString HighScore::GetName() const { return m_Impl->sName; }
|
||||||
|
|||||||
Reference in New Issue
Block a user