|
RhythmGame 1.4.3
|
The score that gets updated during gameplay. More...
#include <BmsLiveScore.h>


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. | |
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.
| 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 |
||
| ) |
| void gameplay_logic::BmsLiveScore::addHit | ( | const HitEvent & | tap | ) |
|
signal |
|
signal |
|
signal |
| auto gameplay_logic::BmsLiveScore::getBssCount | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getCombo | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getDpOptions | ( | ) | const -> resource_managers::DpOptions |
| auto gameplay_logic::BmsLiveScore::getGaugeHistory | ( | ) | const -> std::unique_ptr<BmsGaugeHistory> |
| auto gameplay_logic::BmsLiveScore::getGauges | ( | ) | const -> QList<rules::BmsGauge*> |
| auto gameplay_logic::BmsLiveScore::getGuid | ( | ) | const -> QString |
| auto gameplay_logic::BmsLiveScore::getJudgementCounts | ( | ) | -> JudgementCounts* |
| auto gameplay_logic::BmsLiveScore::getJudgementCounts | ( | ) | const -> const JudgementCounts* |
| auto gameplay_logic::BmsLiveScore::getKeymode | ( | ) | const -> ChartData::Keymode |
| auto gameplay_logic::BmsLiveScore::getLnCount | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getMaxCombo | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getMaxHits | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getMaxPoints | ( | ) | const -> double |
| auto gameplay_logic::BmsLiveScore::getMaxPointsNow | ( | ) | const -> double |
| auto gameplay_logic::BmsLiveScore::getMineCount | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getMineHits | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getNormalNoteCount | ( | ) | const -> int |
| auto gameplay_logic::BmsLiveScore::getNoteOrderAlgorithm | ( | ) | const -> resource_managers::NoteOrderAlgorithm |
| auto gameplay_logic::BmsLiveScore::getNoteOrderAlgorithmP2 | ( | ) | const -> resource_managers::NoteOrderAlgorithm |
| auto gameplay_logic::BmsLiveScore::getPermutation | ( | ) | const -> const QList<int>& |
| auto gameplay_logic::BmsLiveScore::getPoints | ( | ) | const -> double |
| auto gameplay_logic::BmsLiveScore::getRandomSeed | ( | ) | const -> uint64_t |
| auto gameplay_logic::BmsLiveScore::getRandomSequence | ( | ) | const -> const QList<qint64>& |
| auto gameplay_logic::BmsLiveScore::getReplayData | ( | ) | const -> std::unique_ptr<BmsReplayData> |
| auto gameplay_logic::BmsLiveScore::getResult | ( | ) | const -> std::unique_ptr<BmsResult> |
| auto gameplay_logic::BmsLiveScore::getScratchCount | ( | ) | const -> int |
|
signal |
| int gameplay_logic::BmsLiveScore::judgementCount | ( | int | judgement | ) | const |
|
signal |
|
signal |
|
signal |
|
signal |
| void gameplay_logic::BmsLiveScore::sendVisualOnlyRelease | ( | const HitEvent & | release | ) |
| void gameplay_logic::BmsLiveScore::sendVisualOnlyTap | ( | HitEvent | tap | ) |
|
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.
|
read |
The current combo count.
|
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.
|
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.
|
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.
|
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.
|
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.
|
read |
The best combo achieved so far in the score.
|
read |
The maximum number of possible hits (normal notes + long notes) in the chart.
|
read |
The maximum possible points achievable in the score.
|
read |
The number of points the player would have if they played perfectly till now.
|
read |
The number of mines (landmines) in the chart.
|
read |
The number of mines hit during the score.
|
read |
The number of normal notes in the chart.
Normal means not long notes, not mines, not invisible notes, not scratches
|
read |
The note order algorithm used for the chart.
This property indicates the algorithm used to modify the arrangement of notes in the chart.
|
read |
The note order algorithm used for player 2 side in DP charts.
|
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.
|
read |
The current points achieved in the score.
|
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.
|
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.
|
read |
The number of scratch notes in the chart.
Scratch notes are normal notes on scratch columns.