Etterna 0.74.4
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
HighScore Struct Reference

The high score that is earned by a player. More...

#include <HighScore.h>

Inheritance diagram for HighScore:
Inheritance graph
[legend]
Collaboration diagram for HighScore:
Collaboration graph
[legend]

Public Member Functions

auto GetName () const -> const std::string &
 Retrieve the name of the player that set the high score.
 
auto DebugString () const -> std::string
 
auto GetChartKey () const -> const std::string &
 
auto GetSSRCalcVersion () const -> int
 
auto GetGrade () const -> Grade
 Retrieve the grade earned from this score.
 
auto GetScore () const -> unsigned int
 Retrieve the score earned.
 
auto IsEmpty () const -> bool
 Determine if any judgments were tallied during this run.
 
auto IsEmptyNormalized () const -> bool
 
auto GetWifeGrade () const -> Grade
 
auto ConvertDpToWife () -> float
 
auto GetPercentDP () const -> float
 
auto GetWifeScore () const -> float
 
auto GetWifePoints () const -> float
 
auto GetSSRNormPercent () const -> float
 
auto GetMusicRate () const -> float
 
auto GetSongOffset () const -> float
 
auto GetJudgeScale () const -> float
 
auto GetChordCohesion () const -> bool
 
auto GetEtternaValid () const -> bool
 
auto GetDSFlag () const -> bool
 
auto GetStageSeed () const -> int
 
auto IsUploadedToServer (const std::string &s) const -> bool
 
auto GetOffsetVector () -> const std::vector< float > &
 
auto GetNoteRowVector () -> const std::vector< int > &
 
auto GetTrackVector () -> const std::vector< int > &
 
auto GetTapNoteTypeVector () -> const std::vector< TapNoteType > &
 
auto GetHoldReplayDataVector () -> const std::vector< HoldReplayResult > &
 
auto GetMineReplayDataVector () -> const std::vector< MineReplayResult > &
 
auto GetMissReplayDataVector () -> const std::vector< MissReplayResult > &
 
auto GetCopyOfOffsetVector () -> std::vector< float >
 
auto GetCopyOfNoteRowVector () -> std::vector< int >
 
auto GetCopyOfTrackVector () -> std::vector< int >
 
auto GetCopyOfTapNoteTypeVector () -> std::vector< TapNoteType >
 
auto GetCopyOfHoldReplayDataVector () -> std::vector< HoldReplayResult >
 
auto GetCopyOfMineReplayDataVector () -> std::vector< MineReplayResult >
 
auto GetCopyOfMissReplayDataVector () -> std::vector< MissReplayResult >
 
auto GetCopyOfSetOnlineReplayTimestampVector () -> std::vector< float >
 
auto GetInputDataVector () -> const std::vector< InputDataEvent > &
 
auto GetScoreKey () const -> const std::string &
 
auto GetTopScore () const -> int
 
auto GetReplayType () -> ReplayType
 
auto HasColumnData () -> bool
 
auto GetPlayedSeconds () const -> float
 
auto GetMaxCombo () const -> unsigned int
 
auto GetModifiers () const -> const std::string &
 Get the modifiers used for this run.
 
auto GetDateTime () const -> DateTime
 
auto GetPlayerGuid () const -> const std::string &
 
auto GetMachineGuid () const -> const std::string &
 
auto GetCountryCode () const -> const std::string &
 
auto GetProductID () const -> int
 
auto GetTapNoteScore (TapNoteScore tns) const -> int
 
auto GetTNSNormalized (TapNoteScore tns) const -> int
 
auto GetHoldNoteScore (HoldNoteScore hns) const -> int
 
auto GetRadarValues () const -> const RadarValues &
 
auto GetLifeRemainingSeconds () const -> float
 
auto GetDisqualified () const -> bool
 Determine if this score was from a situation that would cause disqualification.
 
void SetName (const std::string &sName)
 Set the name of the Player that earned the score.
 
void SetChartKey (const std::string &ck)
 
void SetSSRCalcVersion (int cv)
 
void SetGrade (Grade g)
 
void SetScore (unsigned int iScore)
 
void SetPercentDP (float f)
 
void SetWifeScore (float f)
 
void SetWifePoints (float f)
 
void SetSSRNormPercent (float f)
 
void SetMusicRate (float f)
 
void SetSongOffset (float f)
 
void SetPlayedSeconds (float f)
 
void SetJudgeScale (float f)
 
void SetChordCohesion (bool b)
 
void SetEtternaValid (bool b)
 
void SetDSFlag (bool b)
 
void SetStageSeed (int i)
 
void AddUploadedServer (const std::string &s)
 
void SetInputDataVector (const std::vector< InputDataEvent > &v)
 
void SetMissDataVector (const std::vector< MissReplayResult > &v)
 
void SetOffsetVector (const std::vector< float > &v)
 
void SetNoteRowVector (const std::vector< int > &v)
 
void SetTrackVector (const std::vector< int > &v)
 
void SetTapNoteTypeVector (const std::vector< TapNoteType > &v)
 
void SetHoldReplayDataVector (const std::vector< HoldReplayResult > &v)
 
void SetMineReplayDataVector (const std::vector< MineReplayResult > &v)
 
void SetOnlineReplayTimestampVector (const std::vector< float > &v)
 
void SetScoreKey (const std::string &sk)
 
void SetRescoreJudgeVector (const std::vector< int > &v)
 
void SetMaxCombo (unsigned int i)
 
void SetModifiers (const std::string &s)
 
void SetDateTime (DateTime d)
 
void SetPlayerGuid (const std::string &s)
 
void SetMachineGuid (const std::string &s)
 
void SetProductID (int i)
 
void SetTapNoteScore (TapNoteScore tns, int i)
 
void SetHoldNoteScore (HoldNoteScore hns, int i)
 
void SetRadarValues (const RadarValues &rv)
 
void SetLifeRemainingSeconds (float f)
 
void SetDisqualified (bool b)
 
auto GetNameMutable () -> std::string *
 
auto GetNameMutable () const -> const std::string *
 
auto operator< (HighScore const &other) const -> bool
 
auto operator> (HighScore const &other) const -> bool
 
auto operator<= (HighScore const &other) const -> bool
 
auto operator>= (HighScore const &other) const -> bool
 
auto operator== (HighScore const &other) const -> bool
 
auto operator!= (HighScore const &other) const -> bool
 
auto operator= (const HighScore &) -> HighScore &
 
auto CreateEttNode () const -> XNode *
 
void LoadFromEttNode (const XNode *pNode)
 
auto WriteReplayData () -> bool
 
auto WriteInputData () -> bool
 
auto LoadReplayData () -> bool
 
auto LoadReplayDataBasic (const std::string &dir) -> bool
 
auto LoadReplayDataFull (const std::string &dir) -> bool
 
virtual auto HasReplayData () -> bool
 
void InitReplay ()
 
void UnloadReplayData ()
 
void ResetSkillsets ()
 
auto GetReplay () -> Replay *
 
auto GetDisplayName () const -> const std::string &
 
auto RescoreToWife2Judge (int x) -> float
 
auto RescoreToWife2TimeScale (float ts) -> float
 
auto RescoreToWife3 (float pmax) -> bool
 
auto RescoreToDPJudge (int x) -> float
 
auto GetSkillsetSSR (Skillset ss) const -> float
 
auto GetWifeVersion () const -> int
 
void SetSkillsetSSR (Skillset ss, float ssr)
 
void SetValidationKey (ValidationKey vk, std::string k)
 
void SetTopScore (int i)
 
void GenerateValidationKeys ()
 
auto GenerateBrittleValidationKey () const -> std::string
 
auto ValidateBrittleValidationKey () const -> bool
 
auto GetValidationKey (ValidationKey vk) const -> const std::string &
 
void SetWifeVersion (int i)
 
auto GetRescoreJudgeVector (int x) -> std::vector< int >
 
auto NormalizeJudgments () -> bool
 
void PushSelf (lua_State *L)
 
void PushReplay (lua_State *L)
 

Public Attributes

std::vector< float > timeStamps
 
std::string scoreid
 
int userid = -1
 
std::string avatar
 
std::string countryCode
 
bool forceuploadedthissession = false
 
int norms = 0
 
int musics = 0
 
int judges = 0
 
Replayreplay = nullptr
 

Detailed Description

The high score that is earned by a player.

This is scoring data that is persisted between sessions.

Member Function Documentation

◆ GetDisqualified()

auto HighScore::GetDisqualified ( ) const -> bool

Determine if this score was from a situation that would cause disqualification.

Returns
true if the score would be disqualified, false otherwise.

◆ GetGrade()

auto HighScore::GetGrade ( ) const -> Grade

Retrieve the grade earned from this score.

Returns
the grade.

◆ GetModifiers()

auto HighScore::GetModifiers ( ) const -> const std::string&

Get the modifiers used for this run.

Returns
the modifiers.

◆ GetName()

auto HighScore::GetName ( ) const -> const std::string&

Retrieve the name of the player that set the high score.

Returns
the name of the player.

◆ GetScore()

auto HighScore::GetScore ( ) const -> unsigned int

Retrieve the score earned.

Returns
the score.

◆ IsEmpty()

auto HighScore::IsEmpty ( ) const -> bool

Determine if any judgments were tallied during this run.

Returns
true if no judgments were recorded, false otherwise.

◆ SetName()

void HighScore::SetName ( const std::string &  sName)

Set the name of the Player that earned the score.

Parameters
sNamethe name of the Player.

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