transitioning to accessing these directly

This commit is contained in:
Glenn Maynard
2005-09-11 01:50:12 +00:00
parent 32af6a3b30
commit 4edd0c6eb1
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -603,6 +603,10 @@ public:
static int GetGrade( T* p, lua_State *L ) { lua_pushnumber(L, p->GetGrade()); return 1; }
static int GetLessonScoreActual( T* p, lua_State *L ) { lua_pushnumber(L, p->GetLessonScoreActual()); return 1; }
static int GetLessonScorePossible( T* p, lua_State *L ) { lua_pushnumber(L, p->GetLessonScorePossible()); return 1; }
static int GetPersonalHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->m_iPersonalHighScoreIndex ); return 1; }
static int GetMachineHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->m_iMachineHighScoreIndex ); return 1; }
static int GetPerDifficultyAward( T* p, lua_State *L ) { lua_pushnumber( L, p->m_pdaToShow ); return 1; }
static int GetPeakComboAward( T* p, lua_State *L ) { lua_pushnumber( L, p->m_pcaToShow ); return 1; }
static void Register(lua_State *L)
{
@@ -614,6 +618,10 @@ public:
ADD_METHOD( GetGrade );
ADD_METHOD( GetLessonScoreActual );
ADD_METHOD( GetLessonScorePossible );
ADD_METHOD( GetPersonalHighScoreIndex );
ADD_METHOD( GetMachineHighScoreIndex );
ADD_METHOD( GetPerDifficultyAward );
ADD_METHOD( GetPeakComboAward );
Luna<T>::Register( L );
}
+1
View File
@@ -1024,6 +1024,7 @@ class LunaScreenEvaluation: public Luna<ScreenEvaluation>
{
public:
LunaScreenEvaluation() { LUA->Register( Register ); }
// all deprecated
static int GetEvalStageStats( T* p, lua_State *L ) { STATSMAN->m_CurStageStats.PushSelf( L ); return 1; }
static int GetPersonalHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, STATSMAN->m_CurStageStats.m_player[IArg(1)].m_iPersonalHighScoreIndex ); return 1; }
static int GetMachineHighScoreIndex( T* p, lua_State *L ) { lua_pushnumber( L, STATSMAN->m_CurStageStats.m_player[IArg(1)].m_iMachineHighScoreIndex ); return 1; }