From 71a67fd0f7980dbf3c0ce4206bf8daf8c5fd81dc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 1 Aug 2005 05:12:40 +0000 Subject: [PATCH] add "virtual" to methods for clarity --- stepmania/src/ScreenOptions.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenOptions.h b/stepmania/src/ScreenOptions.h index 0faf6e5af5..ce5270a2df 100644 --- a/stepmania/src/ScreenOptions.h +++ b/stepmania/src/ScreenOptions.h @@ -74,12 +74,12 @@ protected: virtual void AfterChangeRow( PlayerNumber pn ); // override this to detect when the row has changed virtual void AfterChangeValueOrRow( PlayerNumber pn ); - void MenuLeft( PlayerNumber pn, const InputEventType type ) { ChangeValueInRowRelative(m_iCurrentRow[pn],pn,-1,type != IET_FIRST_PRESS); } - void MenuRight( PlayerNumber pn, const InputEventType type ) { ChangeValueInRowRelative(m_iCurrentRow[pn],pn,+1,type != IET_FIRST_PRESS); } - void MenuUp( PlayerNumber pn, const InputEventType type ); - void MenuDown( PlayerNumber pn, const InputEventType type ); - void MenuSelect( PlayerNumber pn, const InputEventType type ); - void MenuUpDown( PlayerNumber pn, const InputEventType type, int iDir ); // iDir == -1 or iDir == +1 + virtual void MenuLeft( PlayerNumber pn, const InputEventType type ) { ChangeValueInRowRelative(m_iCurrentRow[pn],pn,-1,type != IET_FIRST_PRESS); } + virtual void MenuRight( PlayerNumber pn, const InputEventType type ) { ChangeValueInRowRelative(m_iCurrentRow[pn],pn,+1,type != IET_FIRST_PRESS); } + virtual void MenuUp( PlayerNumber pn, const InputEventType type ); + virtual void MenuDown( PlayerNumber pn, const InputEventType type ); + virtual void MenuSelect( PlayerNumber pn, const InputEventType type ); + virtual void MenuUpDown( PlayerNumber pn, const InputEventType type, int iDir ); // iDir == -1 or iDir == +1 /* Returns -1 if on a row with no OptionRowDefinition (eg. EXIT). */ int GetCurrentRow(PlayerNumber pn = PLAYER_1) const;