title accessors like Song

This commit is contained in:
Glenn Maynard
2004-05-25 03:44:47 +00:00
parent c70ca6eb35
commit eba469f05d
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -550,6 +550,13 @@ struct SortTrailEntry
bool operator< ( const SortTrailEntry &rhs ) const { return SortMeter < rhs.SortMeter; }
};
CString Course::GetDisplayName() const
{
if( !PREFSMAN->m_bShowNative )
return GetTranslitName();
return m_sName;
}
/* This is called by many simple functions, like Course::GetTotalSeconds, and may
* be called on all songs to sort. It can take time to execute, so we cache the
* results. */
+3
View File
@@ -98,6 +98,9 @@ public:
vector<CourseEntry> m_entries;
/* If PREFSMAN->m_bShowNative is off, this are the same as GetTranslit* below. */
CString GetDisplayName() const;
CString GetTranslitName() const { return m_sNameTranslit.size()? m_sNameTranslit: m_sName; }
// Dereferences course_entries and returns only the playable Songs and Steps
Trail* GetTrail( StepsType st, CourseDifficulty cd ) const;