From fcffe3c80fef84a20d9a1d14ebf2cb4671ae3e3b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 30 Sep 2006 22:15:22 +0000 Subject: [PATCH] add SetCurrentStyle --- stepmania/src/GameState.cpp | 4 ++++ stepmania/src/GameState.h | 1 + 2 files changed, 5 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 43b78bc746..a587a04eb6 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -850,6 +850,10 @@ const Style* GameState::GetCurrentStyle() const return m_pCurStyle; } +void GameState::SetCurrentStyle( const Style *pStyle ) +{ + m_pCurStyle.Set( pStyle ); +} bool GameState::IsPlayerEnabled( PlayerNumber pn ) const { diff --git a/stepmania/src/GameState.h b/stepmania/src/GameState.h index 9299426ec6..4f3b0e6f88 100644 --- a/stepmania/src/GameState.h +++ b/stepmania/src/GameState.h @@ -83,6 +83,7 @@ public: const Game* GetCurrentGame(); const Style* GetCurrentStyle() const; + void SetCurrentStyle( const Style *pStyle ); void GetPlayerInfo( PlayerNumber pn, bool& bIsEnabledOut, bool& bIsHumanOut ); bool IsPlayerEnabled( PlayerNumber pn ) const;