const fix. Good OOP almost always demands private instance variables

This commit is contained in:
Steve Checkoway
2004-08-28 11:31:16 +00:00
parent cf58bf3ef8
commit d9e00567e9
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ const ScreenMessage SM_ChangeSong = ScreenMessage(SM_User+5);
const CString AllGroups = "[ALL MUSIC]"; const CString AllGroups = "[ALL MUSIC]";
ScreenNetSelectMusic::ScreenNetSelectMusic( CString sName ) : ScreenWithMenuElements( sName ) ScreenNetSelectMusic::ScreenNetSelectMusic( const CString& sName ) : ScreenWithMenuElements( sName )
{ {
/* Finish any previous stage. It's OK to call this when we havn't played a stage yet. */ /* Finish any previous stage. It's OK to call this when we havn't played a stage yet. */
GAMESTATE->FinishStage(); GAMESTATE->FinishStage();
+3 -1
View File
@@ -16,7 +16,7 @@
class ScreenNetSelectMusic : public ScreenWithMenuElements class ScreenNetSelectMusic : public ScreenWithMenuElements
{ {
public: public:
ScreenNetSelectMusic( CString sName ); ScreenNetSelectMusic( const CString& sName );
virtual void DrawPrimitives(); virtual void DrawPrimitives();
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
@@ -30,6 +30,7 @@ public:
void StartSelectedSong(); void StartSelectedSong();
private:
int m_iSongNum; int m_iSongNum;
int m_iShowSongs; //The number of songs to display to each side int m_iShowSongs; //The number of songs to display to each side
int m_iGroupNum; int m_iGroupNum;
@@ -57,6 +58,7 @@ protected:
void TweenOffScreen(); void TweenOffScreen();
private:
//Chatting //Chatting
BitmapText m_textChatInput; BitmapText m_textChatInput;
BitmapText m_textChatOutput; BitmapText m_textChatOutput;