|
RhythmGame 1.4.3
|
The aggregated info about a score. More...
#include <BmsResult.h>


Classes | |
| struct | DTO |
Signals | |
| void | changed () |
Public Member Functions | |
| BmsResult (double maxPoints, int maxHits, int normalNoteCount, int scratchCount, int lnCount, int bssCount, int mineCount, QString clearType, QList< int > judgementCounts, int mineHits, double points, int maxCombo, int64_t unixTimestamp, int64_t length, QList< qint64 > randomSequence, uint64_t randomSeed, resource_managers::NoteOrderAlgorithm noteOrderAlgorithm, resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2, resource_managers::DpOptions dpOptions, ChartData::Keymode keymode, QString guid, QString sha256, QString md5, uint64_t gameVersion=support::currentVersion, QString owner=QStringLiteral(""), 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 | getMaxCombo () const -> int |
| auto | getJudgementCounts () const -> const QList< int > & |
| auto | getMineHits () const -> int |
| auto | getClearType () const -> const QString & |
| auto | getRandomSequence () const -> const QList< qint64 > & |
| auto | getUnixTimestamp () const -> int64_t |
| auto | getLength () const -> int64_t |
| auto | getGuid () const -> QString |
| auto | getSha256 () const -> QString |
| auto | getMd5 () const -> QString |
| auto | getRandomSeed () const -> uint64_t |
| auto | getNoteOrderAlgorithm () const -> resource_managers::NoteOrderAlgorithm |
| auto | getNoteOrderAlgorithmP2 () const -> resource_managers::NoteOrderAlgorithm |
| auto | getDpOptions () const -> resource_managers::DpOptions |
| auto | getKeymode () const -> ChartData::Keymode |
| auto | getPermutation () const -> const QList< int > & |
| auto | getGameVersion () const -> uint64_t |
| auto | getOwner () const -> const QString & |
| auto | clone () const -> std::unique_ptr< BmsResult > |
| bool | updateFrom (const BmsResult &other) |
| bool | isReplayAvailable () const |
| bool | isGaugeHistoryAvailable () const |
| bool | isImported () const |
| auto | getSourceName () const -> QString |
| void | setStoredData (bool replay, bool gauges, bool fromImport, QString source) |
| void | save (db::SqliteCppDb &db, int source=0, int longNoteMode=0) const |
| auto | serializeRandomSequence () const -> QByteArray |
| void | save (db::SqliteCppDb &db, const QByteArray &randomSequenceCompressed, int source, int longNoteMode) const |
| auto | toJson () const -> QJsonObject |
Static Public Member Functions | |
| static auto | load (const DTO &dto) -> std::unique_ptr< BmsResult > |
| static auto | fromJson (const QJsonObject &obj) -> std::unique_ptr< BmsResult > |
Properties | |
| double | maxPoints |
| The maximum possible points achievable in the score. | |
| int | maxHits |
| The maximum number of possible hits (normal notes + long notes) in the chart. | |
| 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. | |
| double | points |
| The points achieved in the score. | |
| int | maxCombo |
| The best combo achieved in the score. | |
| QList< int > | judgementCounts |
| The counts of each judgement type achieved in the score. | |
| int | mineHits |
| The number of mines hit in the score. | |
| QString | clearType |
| The clear type achieved in the score. | |
| QList< qint64 > | randomSequence |
| The random sequence used for parsing the chart. | |
| int64_t | unixTimestamp |
| The timestamp when the score was achieved, in Unix time. | |
| int64_t | length |
| The length of the chart in nanoseconds. | |
| QString | guid |
| The unique identifier for the score. | |
| QString | sha256 |
| The SHA-256 hash of the chart file, in hexadecimal upper-case format. | |
| QString | md5 |
| The MD5 hash of the chart file, in hexadecimal upper-case format. | |
| uint64_t | randomSeed |
| The random seed used for note order shuffling. | |
| resource_managers::NoteOrderAlgorithm noteOrderAlgorithm READ | getNoteOrderAlgorithm |
| The note order algorithm used for the chart. | |
| resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2 READ | getNoteOrderAlgorithmP2 |
| The note order algorithm used for player 2 side in DP charts. | |
| resource_managers::DpOptions | dpOptions |
| The DP options used for the score. | |
| gameplay_logic::ChartData::Keymode | keymode |
| The keymode of the chart. | |
| QList< int > | permutation |
| The permutation of columns that resulted from NoteOrderAlgorithm. | |
| uint64_t | gameVersion |
| The game version where the score was achieved. | |
| QString | owner |
| The owner of the score. | |
| bool | replayAvailable = false |
| bool | gaugeHistoryAvailable = false |
| bool | imported = false |
| QString | sourceName = QStringLiteral("RhythmGame") |
The aggregated info about a score.
|
explicit |
|
signal |
| auto gameplay_logic::BmsResult::clone | ( | ) | const -> std::unique_ptr<BmsResult> |
|
static |
| auto gameplay_logic::BmsResult::getBssCount | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getClearType | ( | ) | const -> const QString& |
| auto gameplay_logic::BmsResult::getDpOptions | ( | ) | const -> resource_managers::DpOptions |
| auto gameplay_logic::BmsResult::getGameVersion | ( | ) | const -> uint64_t |
| auto gameplay_logic::BmsResult::getGuid | ( | ) | const -> QString |
| auto gameplay_logic::BmsResult::getJudgementCounts | ( | ) | const -> const QList<int>& |
| auto gameplay_logic::BmsResult::getKeymode | ( | ) | const -> ChartData::Keymode |
| auto gameplay_logic::BmsResult::getLength | ( | ) | const -> int64_t |
| auto gameplay_logic::BmsResult::getLnCount | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getMaxCombo | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getMaxHits | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getMaxPoints | ( | ) | const -> double |
| auto gameplay_logic::BmsResult::getMd5 | ( | ) | const -> QString |
| auto gameplay_logic::BmsResult::getMineCount | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getMineHits | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getNormalNoteCount | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getNoteOrderAlgorithm | ( | ) | const -> resource_managers::NoteOrderAlgorithm |
| auto gameplay_logic::BmsResult::getNoteOrderAlgorithmP2 | ( | ) | const -> resource_managers::NoteOrderAlgorithm |
| auto gameplay_logic::BmsResult::getOwner | ( | ) | const -> const QString& |
| auto gameplay_logic::BmsResult::getPermutation | ( | ) | const -> const QList<int>& |
| auto gameplay_logic::BmsResult::getPoints | ( | ) | const -> double |
| auto gameplay_logic::BmsResult::getRandomSeed | ( | ) | const -> uint64_t |
| auto gameplay_logic::BmsResult::getRandomSequence | ( | ) | const -> const QList<qint64>& |
| auto gameplay_logic::BmsResult::getScratchCount | ( | ) | const -> int |
| auto gameplay_logic::BmsResult::getSha256 | ( | ) | const -> QString |
|
inline |
| auto gameplay_logic::BmsResult::getUnixTimestamp | ( | ) | const -> int64_t |
|
inline |
|
inline |
|
inline |
| void gameplay_logic::BmsResult::save | ( | db::SqliteCppDb & | db, |
| const QByteArray & | randomSequenceCompressed, | ||
| int | source, | ||
| int | longNoteMode | ||
| ) | const |
| void gameplay_logic::BmsResult::save | ( | db::SqliteCppDb & | db, |
| int | source = 0, |
||
| int | longNoteMode = 0 |
||
| ) | const |
| auto gameplay_logic::BmsResult::serializeRandomSequence | ( | ) | const -> QByteArray |
|
inline |
| auto gameplay_logic::BmsResult::toJson | ( | ) | const -> QJsonObject |
| bool gameplay_logic::BmsResult::updateFrom | ( | const BmsResult & | other | ) |
Updates cached metadata while keeping existing QML references valid.
|
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 clear type achieved in the score.
This property indicates the type of clear achieved in the score, such as "HARD", "EXHARD", "FC", "FAILED", etc. For charts played with course gauges, it will always be "NOPLAY".
|
read |
The DP options used for the score.
This property indicates the DP options that were active during gameplay.
|
read |
The game version where the score was achieved.
For migrations.
|
read |
| resource_managers::NoteOrderAlgorithm noteOrderAlgorithm READ gameplay_logic::BmsResult::getNoteOrderAlgorithm |
The note order algorithm used for the chart.
This property indicates the algorithm used to modify the arrangement of notes in the chart.
| resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2 READ gameplay_logic::BmsResult::getNoteOrderAlgorithmP2 |
The note order algorithm used for player 2 side in DP charts.
|
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 |
|
read |
The counts of each judgement type achieved in the score.
The order is defined in the Judgement enum.
|
read |
The keymode of the chart.
Can be different from the keymode of chartData when resource_managers::dp_options::DpOptions is battle.
|
read |
The length of the chart in nanoseconds.
This property indicates the total duration of the chart from start to finish, measured in nanoseconds.
|
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 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 MD5 hash of the chart file, in hexadecimal upper-case format.
This can be used to uniquely identify a chart file.
|
read |
The number of mines (landmines) in the chart.
|
read |
The number of mines hit in 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 owner of the score.
Local scores have an empty string as the source. For online scores, this is a link to the profile this score belongs to.
|
read |
The permutation of columns that resulted from NoteOrderAlgorithm.
This is reconstructed from the saved note-order settings and random seed, so stored scores expose the same lane layout that was known during gameplay.
|
read |
The 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 |
Whether the saved run has a recording, independently of whether it is loaded.
|
read |
The number of scratch notes in the chart.
Scratch notes are normal notes on scratch columns.
|
read |
The SHA-256 hash of the chart file, in hexadecimal upper-case format.
This can be used to uniquely identify a chart file.
|
read |
|
read |
The timestamp when the score was achieved, in Unix time.
This property records the time when the score was created, represented as the number of seconds since January 1, 1970 (the Unix epoch).