move NoteUpcoming message playing into ReceptorArrow
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user