add MusicWheel::IsSettled

This commit is contained in:
Glenn Maynard
2004-09-04 21:32:36 +00:00
parent d3c9b381bf
commit 10793fdc50
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -886,6 +886,19 @@ void MusicWheel::UpdateScrollbar()
} }
} }
bool MusicWheel::IsSettled() const
{
if( m_Moving )
return false;
if( m_WheelState != STATE_SELECTING_MUSIC && m_WheelState != STATE_LOCKED )
return false;
if( m_fPositionOffsetFromSelection != 0 )
return false;
return true;
}
void MusicWheel::Update( float fDeltaTime ) void MusicWheel::Update( float fDeltaTime )
{ {
ActorFrame::Update( fDeltaTime ); ActorFrame::Update( fDeltaTime );
+1
View File
@@ -53,6 +53,7 @@ public:
bool IsRouletting() const; bool IsRouletting() const;
/* Return true if we're moving fast automatically. */ /* Return true if we're moving fast automatically. */
int IsMoving() const; int IsMoving() const;
bool IsSettled() const;
void NotesOrTrailChanged( PlayerNumber pn ); // update grade graphics and top score void NotesOrTrailChanged( PlayerNumber pn ); // update grade graphics and top score