From 055a5ca7ce16d69f9c9549b79f1c7725849c1ba9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Oct 2003 04:20:24 +0000 Subject: [PATCH] Add GetAllStageTexts. --- stepmania/src/GameState.cpp | 15 +++++++++++++++ stepmania/src/GameState.h | 1 + 2 files changed, 16 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index a9513ec1e7..af513ee408 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -294,6 +294,21 @@ CString GameState::GetStageText() else return ssprintf("%d",m_iCurrentStageIndex+1); } +void GameState::GetAllStageTexts( CStringArray &out ) +{ + out.clear(); + out.push_back( "demo" ); + out.push_back( "oni" ); + out.push_back( "nonstop" ); + out.push_back( "endless" ); + out.push_back( "event" ); + out.push_back( "final" ); + out.push_back( "extra1" ); + out.push_back( "extra2" ); + for( int stage = 0; stage < PREFSMAN->m_iNumArcadeStages; ++stage ) + out.push_back( ssprintf("%d",stage+1) ); +} + int GameState::GetCourseSongIndex() { int iSongIndex = 0; diff --git a/stepmania/src/GameState.h b/stepmania/src/GameState.h index 2c300cfd01..607041039e 100644 --- a/stepmania/src/GameState.h +++ b/stepmania/src/GameState.h @@ -126,6 +126,7 @@ public: bool IsExtraStage(); bool IsExtraStage2(); CString GetStageText(); + void GetAllStageTexts( CStringArray &out ); int GetCourseSongIndex();