RhythmGame 1.4.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
gameplay_logic::BmsLiveScore Class Referencefinal

The score that gets updated during gameplay. More...

#include <BmsLiveScore.h>

Inheritance diagram for gameplay_logic::BmsLiveScore:
Inheritance graph
[legend]
Collaboration diagram for gameplay_logic::BmsLiveScore:
Collaboration graph
[legend]

Signals

void pointsChanged ()
 
void comboChanged ()
 
void comboDropped ()
 
void comboIncreased ()
 
void maxComboChanged ()
 
void mineHitsChanged ()
 
void maxPointsNowChanged ()
 
void hit (HitEvent hit)
 

Public Member Functions

void addHit (const HitEvent &tap)
 
 BmsLiveScore (int normalNoteCount, int scratchCount, int lnCount, int bssCount, int mineCount, int maxHits, double maxHitValue, QList< rules::BmsGauge * > gauges, QList< qint64 > randomSequence, resource_managers::NoteOrderAlgorithm noteOrderAlgorithm, resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2, resource_managers::DpOptions dpOptions, QList< int > permutation, uint64_t seed, int64_t length, QString sha256, QString md5, ChartData::Keymode keymode, int64_t savedTimestamp, QString guid=QUuid::createUuid().toString(), BmsScore::SubmissionState submissionState=BmsScore::SubmissionState::NotSubmitted, QObject *parent=nullptr)
 
auto getMaxPoints () const -> double
 
auto getMaxHits () const -> int
 
auto getNormalNoteCount () const -> int
 
auto getScratchCount () const -> int
 
auto getLnCount () const -> int
 
auto getBssCount () const -> int
 
auto getMineCount () const -> int
 
auto getPoints () const -> double
 
auto getMaxPointsNow () const -> double
 
auto getJudgementCounts () -> JudgementCounts *
 
auto getJudgementCounts () const -> const JudgementCounts *
 
Q_INVOKABLE int judgementCount (int judgement) const
 
void sendVisualOnlyTap (HitEvent tap)
 
void sendVisualOnlyRelease (const HitEvent &release)
 
auto getCombo () const -> int
 
auto getMaxCombo () const -> int
 
auto getMineHits () const -> int
 
auto getGauges () const -> QList< rules::BmsGauge * >
 
auto getRandomSequence () const -> const QList< qint64 > &
 
auto getNoteOrderAlgorithm () const -> resource_managers::NoteOrderAlgorithm
 
auto getNoteOrderAlgorithmP2 () const -> resource_managers::NoteOrderAlgorithm
 
auto getDpOptions () const -> resource_managers::DpOptions
 
auto getPermutation () const -> const QList< int > &
 
auto getRandomSeed () const -> uint64_t
 
auto getGuid () const -> QString
 
auto getKeymode () const -> ChartData::Keymode
 
auto getResult () const -> std::unique_ptr< BmsResult >
 
auto getReplayData () const -> std::unique_ptr< BmsReplayData >
 
auto getGaugeHistory () const -> std::unique_ptr< BmsGaugeHistory >
 

Properties

double maxPoints
 The maximum possible points achievable in the score.
 
double maxPointsNow = 0
 The number of points the player would have if they played perfectly till now.
 
int normalNoteCount
 The number of normal notes in the chart.
 
int scratchCount
 The number of scratch notes in the chart.
 
int lnCount
 The number of long notes in the chart excluding BSS (scratch lns).
 
int bssCount
 The number of BSS (scratch long notes) in the chart.
 
int mineCount
 The number of mines (landmines) in the chart.
 
int maxHits
 The maximum number of possible hits (normal notes + long notes) in the chart.
 
double points = 0
 The current points achieved in the score.
 
int combo = 0
 The current combo count.
 
int maxCombo = 0
 The best combo achieved so far in the score.
 
JudgementCounts * judgementCounts
 The counts of each judgement type achieved in the score.
 
int mineHits = 0
 The number of mines hit during the score.
 
QList< rules::BmsGauge * > gauges
 The gauges used in the score.
 
QList< qint64 > randomSequence
 The random sequence used for parsing the chart.
 
resource_managers::note_order_algorithm::NoteOrderAlgorithm noteOrderAlgorithm
 The note order algorithm used for the chart.
 
resource_managers::note_order_algorithm::NoteOrderAlgorithm noteOrderAlgorithmP2
 The note order algorithm used for player 2 side in DP charts.
 
QList< int > permutation
 The permutation of columns that resulted from NoteOrderAlgorithm.
 
uint64_t randomSeed
 The random seed used for note order shuffling.
 
QString guid
 The unique identifier for the score.
 
gameplay_logic::ChartData::Keymode keymode
 The keymode of the chart, i.e. how many keys/columns it has. If the DP option "Battle" is enabled, an SP chart will have 14 keys regardless, so pay attention to that.
 

Detailed Description

The score that gets updated during gameplay.

The BmsLiveScore class keeps track of the current score, combo, gauge and judgement counts during gameplay. It provides methods to add hits and retrieve the current score state.

Constructor & Destructor Documentation

◆ BmsLiveScore()

gameplay_logic::BmsLiveScore::BmsLiveScore ( int  normalNoteCount,
int  scratchCount,
int  lnCount,
int  bssCount,
int  mineCount,
int  maxHits,
double  maxHitValue,
QList< rules::BmsGauge * >  gauges,
QList< qint64 >  randomSequence,
resource_managers::NoteOrderAlgorithm  noteOrderAlgorithm,
resource_managers::NoteOrderAlgorithm  noteOrderAlgorithmP2,
resource_managers::DpOptions  dpOptions,
QList< int >  permutation,
uint64_t  seed,
int64_t  length,
QString  sha256,
QString  md5,
ChartData::Keymode  keymode,
int64_t  savedTimestamp,
QString  guid = QUuid::createUuid().toString(),
BmsScore::SubmissionState  submissionState = BmsScore::SubmissionState::NotSubmitted,
QObject *  parent = nullptr 
)

Member Function Documentation

◆ addHit()

void gameplay_logic::BmsLiveScore::addHit ( const HitEvent &  tap)

◆ comboChanged

void gameplay_logic::BmsLiveScore::comboChanged ( )
signal

◆ comboDropped

void gameplay_logic::BmsLiveScore::comboDropped ( )
signal

◆ comboIncreased

void gameplay_logic::BmsLiveScore::comboIncreased ( )
signal

◆ getBssCount()

auto gameplay_logic::BmsLiveScore::getBssCount ( ) const -> int

◆ getCombo()

auto gameplay_logic::BmsLiveScore::getCombo ( ) const -> int

◆ getDpOptions()

auto gameplay_logic::BmsLiveScore::getDpOptions ( ) const -> resource_managers::DpOptions

◆ getGaugeHistory()

auto gameplay_logic::BmsLiveScore::getGaugeHistory ( ) const -> std::unique_ptr<BmsGaugeHistory>

◆ getGauges()

auto gameplay_logic::BmsLiveScore::getGauges ( ) const -> QList<rules::BmsGauge*>

◆ getGuid()

auto gameplay_logic::BmsLiveScore::getGuid ( ) const -> QString

◆ getJudgementCounts() [1/2]

auto gameplay_logic::BmsLiveScore::getJudgementCounts ( ) -> JudgementCounts*

◆ getJudgementCounts() [2/2]

auto gameplay_logic::BmsLiveScore::getJudgementCounts ( ) const -> const JudgementCounts*

◆ getKeymode()

auto gameplay_logic::BmsLiveScore::getKeymode ( ) const -> ChartData::Keymode

◆ getLnCount()

auto gameplay_logic::BmsLiveScore::getLnCount ( ) const -> int

◆ getMaxCombo()

auto gameplay_logic::BmsLiveScore::getMaxCombo ( ) const -> int

◆ getMaxHits()

auto gameplay_logic::BmsLiveScore::getMaxHits ( ) const -> int

◆ getMaxPoints()

auto gameplay_logic::BmsLiveScore::getMaxPoints ( ) const -> double

◆ getMaxPointsNow()

auto gameplay_logic::BmsLiveScore::getMaxPointsNow ( ) const -> double

◆ getMineCount()

auto gameplay_logic::BmsLiveScore::getMineCount ( ) const -> int

◆ getMineHits()

auto gameplay_logic::BmsLiveScore::getMineHits ( ) const -> int

◆ getNormalNoteCount()

auto gameplay_logic::BmsLiveScore::getNormalNoteCount ( ) const -> int

◆ getNoteOrderAlgorithm()

auto gameplay_logic::BmsLiveScore::getNoteOrderAlgorithm ( ) const -> resource_managers::NoteOrderAlgorithm

◆ getNoteOrderAlgorithmP2()

auto gameplay_logic::BmsLiveScore::getNoteOrderAlgorithmP2 ( ) const -> resource_managers::NoteOrderAlgorithm

◆ getPermutation()

auto gameplay_logic::BmsLiveScore::getPermutation ( ) const -> const QList<int>&

◆ getPoints()

auto gameplay_logic::BmsLiveScore::getPoints ( ) const -> double

◆ getRandomSeed()

auto gameplay_logic::BmsLiveScore::getRandomSeed ( ) const -> uint64_t

◆ getRandomSequence()

auto gameplay_logic::BmsLiveScore::getRandomSequence ( ) const -> const QList<qint64>&

◆ getReplayData()

auto gameplay_logic::BmsLiveScore::getReplayData ( ) const -> std::unique_ptr<BmsReplayData>

◆ getResult()

auto gameplay_logic::BmsLiveScore::getResult ( ) const -> std::unique_ptr<BmsResult>

◆ getScratchCount()

auto gameplay_logic::BmsLiveScore::getScratchCount ( ) const -> int

◆ hit

void gameplay_logic::BmsLiveScore::hit ( HitEvent  hit)
signal

◆ judgementCount()

int gameplay_logic::BmsLiveScore::judgementCount ( int  judgement) const

◆ maxComboChanged

void gameplay_logic::BmsLiveScore::maxComboChanged ( )
signal

◆ maxPointsNowChanged

void gameplay_logic::BmsLiveScore::maxPointsNowChanged ( )
signal

◆ mineHitsChanged

void gameplay_logic::BmsLiveScore::mineHitsChanged ( )
signal

◆ pointsChanged

void gameplay_logic::BmsLiveScore::pointsChanged ( )
signal

◆ sendVisualOnlyRelease()

void gameplay_logic::BmsLiveScore::sendVisualOnlyRelease ( const HitEvent &  release)

◆ sendVisualOnlyTap()

void gameplay_logic::BmsLiveScore::sendVisualOnlyTap ( HitEvent  tap)

Property Documentation

◆ bssCount

int gameplay_logic::BmsLiveScore::bssCount
read

The number of BSS (scratch long notes) in the chart.

A BSS consists of an ln start and ln end. Such a pair counts as one BSS.

◆ combo

int gameplay_logic::BmsLiveScore::combo = 0
read

The current combo count.

◆ gauges

QList< rules::BmsGauge * > gameplay_logic::BmsLiveScore::gauges
read

The gauges used in the score.

This property provides access to the list of gauges (e.g., NORMAL, HARD, EXHARD, etc.) used in the score. Each gauge can be queried for its current value and history.

Note
The gameplay theme should display the first gauge that's above its threshold, or the last gauge if none are above the threshold.
See also
rules::BmsGauge
rules::Lr2Gauge

◆ guid

QString gameplay_logic::BmsLiveScore::guid
read

The unique identifier for the score.

This GUID is generated when the BmsLiveScore instance is created and can be used to uniquely identify the score instance.

◆ judgementCounts

JudgementCounts* gameplay_logic::BmsLiveScore::judgementCounts
read

The counts of each judgement type achieved in the score.

This property provides access to a model that contains the counts of each judgement type (e.g., Perfect, Great, Good, etc.). It can be used in QML to display the judgement counts.

See also
JudgementCounts
Judgement

◆ keymode

gameplay_logic::ChartData::Keymode gameplay_logic::BmsLiveScore::keymode
read

The keymode of the chart, i.e. how many keys/columns it has. If the DP option "Battle" is enabled, an SP chart will have 14 keys regardless, so pay attention to that.

See also
Keymode

◆ lnCount

int gameplay_logic::BmsLiveScore::lnCount
read

The number of long notes in the chart excluding BSS (scratch lns).

A long note consists of an LN start and LN end. Such a pair counts as one long note.

◆ maxCombo

int gameplay_logic::BmsLiveScore::maxCombo = 0
read

The best combo achieved so far in the score.

◆ maxHits

int gameplay_logic::BmsLiveScore::maxHits
read

The maximum number of possible hits (normal notes + long notes) in the chart.

◆ maxPoints

double gameplay_logic::BmsLiveScore::maxPoints
read

The maximum possible points achievable in the score.

◆ maxPointsNow

double gameplay_logic::BmsLiveScore::maxPointsNow = 0
read

The number of points the player would have if they played perfectly till now.

◆ mineCount

int gameplay_logic::BmsLiveScore::mineCount
read

The number of mines (landmines) in the chart.

◆ mineHits

int gameplay_logic::BmsLiveScore::mineHits = 0
read

The number of mines hit during the score.

◆ normalNoteCount

int gameplay_logic::BmsLiveScore::normalNoteCount
read

The number of normal notes in the chart.

Normal means not long notes, not mines, not invisible notes, not scratches

◆ noteOrderAlgorithm

resource_managers::note_order_algorithm::NoteOrderAlgorithm gameplay_logic::BmsLiveScore::noteOrderAlgorithm
read

The note order algorithm used for the chart.

This property indicates the algorithm used to modify the arrangement of notes in the chart.

See also
resource_managers::note_order_algorithm::NoteOrderAlgorithm

◆ noteOrderAlgorithmP2

resource_managers::note_order_algorithm::NoteOrderAlgorithm gameplay_logic::BmsLiveScore::noteOrderAlgorithmP2
read

The note order algorithm used for player 2 side in DP charts.

See also
noteOrderAlgorithm

◆ permutation

QList< int > gameplay_logic::BmsLiveScore::permutation
read

The permutation of columns that resulted from NoteOrderAlgorithm.

It will contain the default iota for resource_managers::NoteOrderAlgorithm::SRandom and resource_managers::NoteOrderAlgorithm::SRandomPlus.

◆ points

double gameplay_logic::BmsLiveScore::points = 0
read

The current points achieved in the score.

◆ randomSeed

uint64_t gameplay_logic::BmsLiveScore::randomSeed
read

The random seed used for note order shuffling.

This seed is used to initialize the mt19937 random number generator for shuffling notes according to the selected note order algorithm.

Note
This seed is not used for #RANDOM parsing. Use randomSequence for that.
See also
resource_managers::NoteOrderAlgorithm
noteOrderAlgorithm

◆ randomSequence

QList< qint64 > gameplay_logic::BmsLiveScore::randomSequence
read

The random sequence used for parsing the chart.

If the chart uses #RANDOM, this property provides the sequence of random values used to determine the contents of the chart. If the chart does not use randomization, this list will be empty.

◆ scratchCount

int gameplay_logic::BmsLiveScore::scratchCount
read

The number of scratch notes in the chart.

Scratch notes are normal notes on scratch columns.


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