name cleanup
This commit is contained in:
@@ -35,7 +35,7 @@ void DifficultyDisplay::SetDifficulties( const Song* pSong, StepsType curType )
|
||||
{
|
||||
for( int diff = DIFFICULTY_BEGINNER; diff <= DIFFICULTY_CHALLENGE; ++diff )
|
||||
{
|
||||
if( pSong->SongHasNotesTypeAndDifficulty( curType, Difficulty(diff) ) )
|
||||
if( pSong->HasStepsTypeAndDifficulty( curType, Difficulty(diff) ) )
|
||||
m_difficulty[diff].Command( ICONONCOMMAND );
|
||||
else
|
||||
m_difficulty[diff].Command( ICONOFFCOMMAND );
|
||||
|
||||
@@ -1527,7 +1527,7 @@ Song* MusicWheel::GetSelectedSong()
|
||||
{
|
||||
Song* pSong = m_CurWheelItemData[iSelection]->m_pSong;
|
||||
FOREACH( Difficulty, vDifficultiesToRequire, d )
|
||||
if( !pSong->SongHasNotesTypeAndDifficulty(st,*d) )
|
||||
if( !pSong->HasStepsTypeAndDifficulty(st,*d) )
|
||||
goto skip_song;
|
||||
return pSong;
|
||||
}
|
||||
|
||||
@@ -960,17 +960,17 @@ Steps* Song::GetClosestNotes( StepsType st, Difficulty dc ) const
|
||||
/* Return whether the song is playable in the given style. */
|
||||
bool Song::SongCompleteForStyle( const StyleDef *st ) const
|
||||
{
|
||||
return SongHasNotesType( st->m_StepsType );
|
||||
return HasStepsType( st->m_StepsType );
|
||||
}
|
||||
|
||||
bool Song::SongHasNotesType( StepsType st ) const
|
||||
bool Song::HasStepsType( StepsType st ) const
|
||||
{
|
||||
vector<Steps*> add;
|
||||
GetSteps( add, st, DIFFICULTY_INVALID, -1, -1, "", true, 1 );
|
||||
return !add.empty();
|
||||
}
|
||||
|
||||
bool Song::SongHasNotesTypeAndDifficulty( StepsType st, Difficulty dc ) const
|
||||
bool Song::HasStepsTypeAndDifficulty( StepsType st, Difficulty dc ) const
|
||||
{
|
||||
vector<Steps*> add;
|
||||
GetSteps( add, st, dc, -1, -1, "", true, 1 );
|
||||
|
||||
@@ -175,8 +175,8 @@ public:
|
||||
vector<Steps*> m_vpSteps;
|
||||
|
||||
bool SongCompleteForStyle( const StyleDef *st ) const;
|
||||
bool SongHasNotesType( StepsType st ) const;
|
||||
bool SongHasNotesTypeAndDifficulty( StepsType st, Difficulty dc ) const;
|
||||
bool HasStepsType( StepsType st ) const;
|
||||
bool HasStepsTypeAndDifficulty( StepsType st, Difficulty dc ) const;
|
||||
const vector<Steps*>& GetAllSteps() const { return m_vpSteps; }
|
||||
void GetSteps( vector<Steps*>& arrayAddTo, StepsType st = STEPS_TYPE_INVALID, Difficulty dc = DIFFICULTY_INVALID, int iMeterLow = -1, int iMeterHigh = -1, const CString &sDescription = "", bool bIncludeAutoGen = true, int Max = -1 ) const;
|
||||
Steps* GetStepsByDifficulty( StepsType st, Difficulty dc, bool bIncludeAutoGen = true ) const;
|
||||
|
||||
Reference in New Issue
Block a user