Use accessor functions instead of direct calls.

This commit is contained in:
Jason Felds
2011-06-30 02:19:37 -04:00
parent df14721d0f
commit 57e3c2fc80
6 changed files with 49 additions and 17 deletions
+25
View File
@@ -120,6 +120,31 @@ float Song::GetLastBeat() const
return this->m_SongTiming.GetBeatFromElapsedTime(this->lastSecond);
}
float Song::GetSpecifiedLastSecond() const
{
return this->specifiedLastSecond;
}
float Song::GetSpecifiedLastBeat() const
{
return this->m_SongTiming.GetBeatFromElapsedTime(this->specifiedLastSecond);
}
void Song::SetFirstSecond(const float f)
{
this->firstSecond = f;
}
void Song::SetLastSecond(const float f)
{
this->lastSecond = f;
}
void Song::SetSpecifiedLastSecond(const float f)
{
this->specifiedLastSecond = f;
}
// Reset to an empty song.
void Song::Reset()
{