add GetAllTrails

This commit is contained in:
Chris Danford
2005-03-22 10:33:47 +00:00
parent e80357cfc1
commit 98aeb3d50f
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -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 )
+1
View File
@@ -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;