hidden HighScore::sName

This commit is contained in:
Glenn Maynard
2005-08-12 01:52:01 +00:00
parent 4f7da83726
commit 2307fa23d9
9 changed files with 86 additions and 40 deletions
+5 -1
View File
@@ -14,7 +14,11 @@ struct XNode;
struct HighScoreImpl;
struct HighScore
{
CString sName; // name that shows in the machine's ranking screen
CString GetName() const;
void SetName( const CString &sName );
CString *GetNameMutable();
const CString *GetNameMutable() const { return const_cast<CString *> (const_cast<HighScore *>(this)->GetNameMutable()); }
Grade grade;
int iScore;
float fPercentDP;