From d4a46a214dc32f7e5d94c25085bcc7994443c5c0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 25 Jan 2005 18:29:42 +0000 Subject: [PATCH] deps cleanup --- stepmania/src/Player.cpp | 9 ++++++++- stepmania/src/Player.h | 9 +++++---- stepmania/src/ScreenEdit.h | 2 +- stepmania/src/ScreenHowToPlay.h | 1 + 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 4b906ced30..71e2b3612c 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -2,6 +2,7 @@ #include "Player.h" #include "GameConstantsAndTypes.h" #include "RageUtil.h" +#include "RageTimer.h" #include "PrefsManager.h" #include "GameConstantsAndTypes.h" #include "GameManager.h" @@ -18,6 +19,7 @@ #include "LifeMeter.h" #include "CombinedLifeMeter.h" #include "PlayerAI.h" +#include "NoteField.h" #include "NoteFieldPositioning.h" #include "NoteDataUtil.h" #include "ScreenGameplay.h" /* for SM_ComboStopped */ @@ -658,7 +660,7 @@ int Player::GetClosestNote( int col, float fBeat, float fMaxBeatsAhead, float fM } -void Player::Step( int col, RageTimer tm ) +void Player::Step( int col, const RageTimer &tm ) { bool bOniDead = GAMESTATE->m_SongOptions.m_LifeType == SongOptions::LIFE_BATTERY && @@ -1392,6 +1394,11 @@ float Player::GetMaxStepDistanceSeconds() return GAMESTATE->m_SongOptions.m_fMusicRate * ADJUSTED_WINDOW(Boo); } +void Player::CacheAllUsedNoteSkins( bool bDeleteUnused ) +{ + m_pNoteField->CacheAllUsedNoteSkins( bDeleteUnused ); +} + void Player::FadeToFail() { if( m_pNoteField ) diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index aad9895f9e..3a2de43f85 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -8,16 +8,17 @@ #include "HoldJudgment.h" #include "Combo.h" #include "NoteDataWithScoring.h" -#include "RageTimer.h" #include "RageSound.h" #include "AttackDisplay.h" -#include "NoteField.h" +#include "NoteData.h" class ScoreDisplay; class LifeMeter; class CombinedLifeMeter; class ScoreKeeper; class Inventory; +class RageTimer; +class NoteField; struct PlayerStageStats; #define SAMPLE_COUNT 16 @@ -44,7 +45,7 @@ public: void Load( const NoteData& noteData ); void CrossedRow( int iNoteRow ); void CrossedMineRow( int iNoteRow ); - void Step( int col, RageTimer tm ); + void Step( int col, const RageTimer &tm ); void RandomizeNotes( int iNoteRow ); void FadeToFail(); int GetDancingCharacterState() const { return m_iDCState; }; @@ -53,7 +54,7 @@ public: static float GetMaxStepDistanceSeconds(); - void CacheAllUsedNoteSkins( bool bDeleteUnused ) { m_pNoteField->CacheAllUsedNoteSkins(bDeleteUnused); } + void CacheAllUsedNoteSkins( bool bDeleteUnused ); NoteData m_NoteData; diff --git a/stepmania/src/ScreenEdit.h b/stepmania/src/ScreenEdit.h index 3e2209e2e5..181f445af6 100644 --- a/stepmania/src/ScreenEdit.h +++ b/stepmania/src/ScreenEdit.h @@ -13,7 +13,7 @@ #include "Background.h" #include "Foreground.h" #include "Course.h" - +#include "NoteField.h" const int NUM_ACTION_MENU_ITEMS = 23; const int NUM_NAMING_MENU_ITEMS = 6; diff --git a/stepmania/src/ScreenHowToPlay.h b/stepmania/src/ScreenHowToPlay.h index 7f3fe392d2..296482c5ec 100644 --- a/stepmania/src/ScreenHowToPlay.h +++ b/stepmania/src/ScreenHowToPlay.h @@ -6,6 +6,7 @@ #include "LifeMeterBar.h" #include "Character.h" #include "BGAnimation.h" +#include "Model.h" class ScreenHowToPlay : public ScreenAttract