From 5dd27008ccec62bd4f50ca981931745416567c6e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 27 Mar 2003 00:51:57 +0000 Subject: [PATCH] use TimingAssist --- stepmania/src/ScreenGameplay.cpp | 5 +++++ stepmania/src/ScreenGameplay.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 627a7ed1e9..75d1bc4da3 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -219,6 +219,8 @@ ScreenGameplay::ScreenGameplay( bool bDemonstration ) m_Player[p].SetX( fPlayerX ); this->AddChild( &m_Player[p] ); + m_TimingAssist.Load((PlayerNumber)p, &m_Player[p]); + m_ActiveItemList[p].Init( (PlayerNumber)p, &m_Inventory ); /* Position it in LoadNextSong. */ this->AddChild( &m_ActiveItemList[p] ); @@ -230,6 +232,7 @@ ScreenGameplay::ScreenGameplay( bool bDemonstration ) this->AddChild( &m_sprOniGameOver[p] ); } + this->AddChild(&m_TimingAssist); m_OniFade.SetOpened(); this->AddChild( &m_OniFade ); @@ -566,6 +569,8 @@ void ScreenGameplay::LoadNextSong() pStyleDef->GetTransformedNoteDataForStyle( (PlayerNumber)p, &pOriginalNoteData, &pNewNoteData ); m_Player[p].Load( (PlayerNumber)p, &pNewNoteData, m_pLifeMeter[p], m_pScoreDisplay[p], &m_Inventory, m_pScoreKeeper[p] ); + + m_TimingAssist.Reset(); } /* Set up song-specific graphics. */ diff --git a/stepmania/src/ScreenGameplay.h b/stepmania/src/ScreenGameplay.h index 80b1a805c0..852183269e 100644 --- a/stepmania/src/ScreenGameplay.h +++ b/stepmania/src/ScreenGameplay.h @@ -30,6 +30,7 @@ #include "ActiveItemList.h" //#include "BeginnerHelper.h" // uncomment once it's checked in #include "LyricDisplay.h" +#include "TimingAssist.h" // messages sent by Combo @@ -93,6 +94,8 @@ protected: LyricDisplay m_LyricDisplay; + TimingAssist m_TimingAssist; + Background m_Background; TransitionOniFade m_OniFade; // shows between songs in a course