Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ScoreManager Class Reference
Collaboration diagram for ScoreManager:
Collaboration graph
[legend]

Public Member Functions

auto GetAllPBPtrs (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> const std::vector< vector< HighScore * > >
 
auto GetAllPBsPreferringReplays (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> std::vector< HighScore * >
 
auto GetChartPBAt (const std::string &ck, float rate, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> HighScore *
 
auto GetChartPBUpTo (const std::string &ck, float rate, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> HighScore *
 
auto GetBestGradeFor (const std::string &ck, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) const -> Grade
 
auto GetBestWifeScoreFor (const std::string &ck, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) const -> float
 
auto AddScore (const HighScore &hs_, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> int
 
void ImportScore (const HighScore &hs_, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
std::vector< float > SortTopSSRPtrs (Skillset ss, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID, bool getSSRs=false)
 
std::map< DateTime, std::vector< float > > GetPlayerRatingOverTime (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void SortTopSSRPtrsForGame (Skillset ss, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void RecalculateSSRs (LoadingWindow *ld)
 
void RecalculateSSRs (const std::string &profileID)
 
void UnInvalidateAllScores (const std::string &profileID)
 
void CalcPlayerRating (float &prating, float *pskillsets, const std::string &profileID)
 
auto GetTopSSRValue (unsigned int rank, int ss) -> float
 
auto GetTopSSRHighScore (unsigned int rank, int ss) -> HighScore *
 
auto GetTopSSRHighScoreForGame (unsigned int rank, int ss) -> HighScore *
 
auto GetRecentScore (int rank) -> HighScore *
 
auto GetRecentScoreForGame (int rank) -> HighScore *
 
void SortRecentScores (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void SortRecentScoresForGame (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
auto KeyHasScores (const std::string &ck, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) const -> bool
 
auto HasAnyScores () const -> bool
 
auto CreateNode (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) const -> XNode *
 
void LoadFromNode (const XNode *node, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
auto GetScoresForChart (const std::string &ck, const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> ScoresForChart *
 
auto GetSortedKeys () -> const std::vector< std::string >
 
void PushSelf (lua_State *L)
 
auto GetMostRecentScore () -> HighScore *
 
void PutScoreAtTheTop (const std::string &scorekey)
 
auto GetAllScores () -> const std::vector< HighScore * > &
 
auto GetScoresByKey () -> const std::unordered_map< std::string, HighScore * > &
 
auto GetAllProfileScores (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> const std::vector< HighScore * > &
 
void RegisterScore (HighScore *hs)
 
void AddToKeyedIndex (HighScore *hs)
 
void RegisterScoreInProfile (HighScore *hs_, const std::string &profileID)
 
std::vector< Skillset > GetTopPlayedSkillsets (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
std::vector< int > GetPlaycountPerSkillset (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void SetAllTopScores (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void PurgeScores ()
 
auto GetProfileScores (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID) -> std::unordered_map< std::string, ScoresForChart > *
 
void PurgeProfileScores (const std::string &profileID=PROFILEMAN->GetProfile(PLAYER_1) ->m_sProfileID)
 
void UnloadAllReplayData ()
 
auto GetNumScoresThisSession () -> int
 
auto GetScoresThisSession () -> std::vector< HighScore * >
 
void RegisterScoreThisSession (HighScore *hs)
 

Public Attributes

const float minpercent = PREFSMAN->m_fMinPercentToSaveScores
 
bool camefromreplay = false
 
HighScoretempscoreforonlinereplayviewing
 
std::vector< HighScore * > scorestorecalc
 
std::set< HighScore * > rescores
 

The documentation for this class was generated from the following files: