add GetAllTrails
This commit is contained in:
@@ -1028,6 +1028,16 @@ void Course::GetTrails( vector<Trail*> &AddTo, StepsType st ) const
|
||||
}
|
||||
}
|
||||
|
||||
void Course::GetAllTrails( vector<Trail*> &AddTo ) const
|
||||
{
|
||||
vector<StepsType> vStepsTypesToShow;
|
||||
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vStepsTypesToShow );
|
||||
FOREACH( StepsType, vStepsTypesToShow, st )
|
||||
{
|
||||
GetTrails( AddTo, *st );
|
||||
}
|
||||
}
|
||||
|
||||
bool Course::HasMods() const
|
||||
{
|
||||
FOREACH_CONST( CourseEntry, m_entries, e )
|
||||
|
||||
@@ -111,6 +111,7 @@ public:
|
||||
// Dereferences course_entries and returns only the playable Songs and Steps
|
||||
Trail* GetTrail( StepsType st, CourseDifficulty cd=DIFFICULTY_MEDIUM ) const;
|
||||
void GetTrails( vector<Trail*> &AddTo, StepsType st ) const;
|
||||
void GetAllTrails( vector<Trail*> &AddTo ) const;
|
||||
float GetMeter( StepsType st, CourseDifficulty cd=DIFFICULTY_MEDIUM ) const;
|
||||
bool HasMods() const;
|
||||
bool AllSongsAreFixed() const;
|
||||
|
||||
Reference in New Issue
Block a user