const fix. Good OOP almost always demands private instance variables
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user