Yeah, BPM segments, big one :D

This commit is contained in:
Thai Pangsakulyanont
2011-05-31 23:41:39 +07:00
parent 714427f154
commit 1d2dd19ab1
14 changed files with 150 additions and 135 deletions
+42
View File
@@ -53,6 +53,9 @@ bool FakeSegment::operator<( const FakeSegment &other ) const
return false;
}
float WarpSegment::GetLength() const
{
return this->lengthBeats;
@@ -72,6 +75,7 @@ bool WarpSegment::operator<( const WarpSegment &other ) const
int TickcountSegment::GetTicks() const
{
return this->ticks;
@@ -89,6 +93,9 @@ bool TickcountSegment::operator<( const TickcountSegment &other ) const
return false;
}
int ComboSegment::GetCombo() const
{
return this->combo;
@@ -106,6 +113,9 @@ bool ComboSegment::operator<( const ComboSegment &other ) const
return false;
}
RString LabelSegment::GetLabel() const
{
return this->label;
@@ -123,6 +133,38 @@ bool LabelSegment::operator<( const LabelSegment &other ) const
return false;
}
float BPMSegment::GetBPM() const
{
return this->bps * 60.0f;
}
void BPMSegment::SetBPM(const float bpm)
{
this->bps = bpm / 60.0f;
}
float BPMSegment::GetBPS() const
{
return this->bps;
}
void BPMSegment::SetBPS(const float newBPS)
{
this->bps = newBPS;
}
bool BPMSegment::operator<( const BPMSegment &other ) const
{
LTCOMPARE(GetRow());
LTCOMPARE(GetBPM());
return false;
}
/**
* @file
* @author Jason Felds (c) 2011