move NoteUpcoming message playing into ReceptorArrow

This commit is contained in:
Chris Danford
2008-06-07 01:12:39 +00:00
parent 1414ff7c19
commit 059ae3868f
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -61,6 +61,11 @@ void ReceptorArrow::Step( TapNoteScore score )
m_pReceptor->PlayCommand( Capitalize(sJudge) );
}
void ReceptorArrow::SetNoteUpcoming( bool b )
{
m_pReceptor->PlayCommand( b ? "ShowNoteUpcoming" : "HideNoteUpcoming" );
}
/*
* (c) 2001-2004 Ben Nordstrom, Chris Danford
* All rights reserved.
+1
View File
@@ -20,6 +20,7 @@ public:
virtual void Update( float fDeltaTime );
void Step( TapNoteScore score );
void SetPressed() { m_bIsPressed = true; };
void SetNoteUpcoming( bool b );
private:
const PlayerState* m_pPlayerState;
+2 -1
View File
@@ -96,7 +96,8 @@ void ReceptorArrowRow::SetPressed( int iCol )
void ReceptorArrowRow::SetNoteUpcoming( int iCol, bool b )
{
m_ReceptorArrow[iCol]->PlayCommand(b?"ShowNoteUpcoming":"HideNoteUpcoming");
ASSERT( iCol >= 0 && iCol < (int) m_ReceptorArrow.size() );
m_ReceptorArrow[iCol]->SetNoteUpcoming(b);
}