From f1e412e961679c0e58e25981c79192f76090097c Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 30 Nov 2011 00:44:27 -0600 Subject: [PATCH] [PlayerState] Added GetSuperMeterLevel() Lua binding. --- Docs/Changelog_sm5.txt | 1 + src/PlayerState.cpp | 2 ++ src/PlayerState.h | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 0dff34f132..451d6b9628 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -12,6 +12,7 @@ StepMania 5.0 $next | 20111xxx ---------- * [PlayerOptions] Added IsEasierForSongAndSteps(Song,Steps,PlayerNumber) and IsEasierForCourseAndTrail(Course, Trail) Lua bindings. [AJ] +* [PlayerState] Added GetSuperMeterLevel() Lua binding. [AJ] 2011/11/28 ---------- diff --git a/src/PlayerState.cpp b/src/PlayerState.cpp index 3631e14f6d..18194cdc59 100644 --- a/src/PlayerState.cpp +++ b/src/PlayerState.cpp @@ -257,6 +257,7 @@ public: return 1; } DEFINE_METHOD( GetHealthState, m_HealthState ); + DEFINE_METHOD( GetSuperMeterLevel, m_fSuperMeter ); LunaPlayerState() { @@ -269,6 +270,7 @@ public: ADD_METHOD( GetCurrentPlayerOptions ); ADD_METHOD( GetSongPosition ); ADD_METHOD( GetHealthState ); + ADD_METHOD( GetSuperMeterLevel ); } }; diff --git a/src/PlayerState.h b/src/PlayerState.h index c8c059b66e..9f3181d41c 100644 --- a/src/PlayerState.h +++ b/src/PlayerState.h @@ -53,10 +53,10 @@ public: // Music statistics: SongPosition m_Position; - + const SongPosition &GetDisplayedPosition() const; const TimingData &GetDisplayedTiming() const; - + /** * @brief Holds a vector sorted by real beat, the beat that would be displayed * in the NoteField (because they are affected by scroll segments), and