From 98aeb3d50f2a0457cd1568c29b847df366ab5364 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 22 Mar 2005 10:33:47 +0000 Subject: [PATCH] add GetAllTrails --- stepmania/src/Course.cpp | 10 ++++++++++ stepmania/src/Course.h | 1 + 2 files changed, 11 insertions(+) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index ac04ee1d0a..42cc403c78 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -1028,6 +1028,16 @@ void Course::GetTrails( vector &AddTo, StepsType st ) const } } +void Course::GetAllTrails( vector &AddTo ) const +{ + vector vStepsTypesToShow; + GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vStepsTypesToShow ); + FOREACH( StepsType, vStepsTypesToShow, st ) + { + GetTrails( AddTo, *st ); + } +} + bool Course::HasMods() const { FOREACH_CONST( CourseEntry, m_entries, e ) diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index 24e1bbe1af..76f231a779 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -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 &AddTo, StepsType st ) const; + void GetAllTrails( vector &AddTo ) const; float GetMeter( StepsType st, CourseDifficulty cd=DIFFICULTY_MEDIUM ) const; bool HasMods() const; bool AllSongsAreFixed() const;