Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
StageStats Class Reference

Contains statistics for one stage of play. More...

#include <StageStats.h>

Collaboration diagram for StageStats:
Collaboration graph
[legend]

Public Member Functions

void Init ()
 
void AssertValid (PlayerNumber pn) const
 Ensure that the Player is valid.
 
void AssertValid (MultiPlayer pn) const
 Ensure that the Player is valid.
 
void AddStats (const StageStats &other)
 
auto Failed () const -> bool
 
auto GetAverageMeter (PlayerNumber pn) const -> int
 
auto GetTotalPossibleStepsSeconds () const -> float
 
void FinalizeScores ()
 
auto GetMinimumMissCombo () const -> unsigned int
 
void PushSelf (lua_State *L)
 

Public Attributes

Stage m_Stage
 
int m_iStageIndex
 
std::vector< Song * > m_vpPlayedSongs
 
std::vector< Song * > m_vpPossibleSongs
 
bool m_bGaveUp
 Was the gameplay exited by the Player giving up?
 
bool m_bUsedAutoplay
 Did the Player use Autoplay at any point during gameplay?
 
float m_fMusicRate
 How fast was the music going compared to normal?
 
PlayerStageStats m_player
 
PlayerStageStats m_multiPlayer [NUM_MultiPlayer]
 
std::string mostrecentscorekey
 
bool m_bLivePlay = false
 

Detailed Description

Contains statistics for one stage of play.

This is either one song, or a whole course.

Member Function Documentation

◆ AssertValid() [1/2]

void StageStats::AssertValid ( MultiPlayer  pn) const

Ensure that the Player is valid.

Parameters
mpthe Multiplayer to check.

◆ AssertValid() [2/2]

void StageStats::AssertValid ( PlayerNumber  pn) const

Ensure that the Player is valid.

Parameters
pnthe PlayerNumber to check.

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