Stops (and Delays) now templated.
This is all of them at this present time. At some point in the future, we should make DelaySegments separate from StopSegments.
This commit is contained in:
@@ -251,6 +251,35 @@ bool ScrollSegment::operator<( const ScrollSegment &other ) const
|
||||
return false;
|
||||
}
|
||||
|
||||
float StopSegment::GetPause() const
|
||||
{
|
||||
return this->pauseSeconds;
|
||||
}
|
||||
|
||||
void StopSegment::SetPause(const float i)
|
||||
{
|
||||
this->pauseSeconds = i;
|
||||
}
|
||||
|
||||
bool StopSegment::GetDelay() const
|
||||
{
|
||||
return this->isDelay;
|
||||
}
|
||||
|
||||
void StopSegment::SetDelay(const bool i)
|
||||
{
|
||||
this->isDelay = i;
|
||||
}
|
||||
|
||||
bool StopSegment::operator<( const StopSegment &other ) const
|
||||
{
|
||||
LTCOMPARE(GetRow());
|
||||
if (this->GetDelay() && !other.GetDelay()) return true;
|
||||
if (!this->GetDelay() && other.GetDelay()) return false;
|
||||
LTCOMPARE(GetPause());
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @author Jason Felds (c) 2011
|
||||
|
||||
Reference in New Issue
Block a user