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

#include <BmsResultCourse.h>

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

Classes

struct  DTO
 

Signals

void changed ()
 

Public Member Functions

void save (db::SqliteCppDb &db) const
 
 BmsResultCourse (QString guid, QString identifier, const QList< BmsResult * > &results, QString clearType, int maxCombo, QStringList constraints, uint64_t gameVersion=support::currentVersion, QObject *parent=nullptr)
 
auto clone () const -> std::unique_ptr< BmsResultCourse >
 
bool updateFrom (const BmsResultCourse &other)
 
bool isComplete () const
 
bool isReplayAvailable () const
 
bool isImported () const
 
 BmsResultCourse (QString guid, QString identifier, QList< BmsScore * > scores, QString clearType, int maxCombo, QStringList constraints, uint64_t gameVersion=support::currentVersion, 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 -> QList< int >
 
auto getMineHits () const -> int
 
auto getClearType () const -> const QString &
 
auto getRandomSequence () -> QList< qint64 >
 
auto getUnixTimestamp () const -> int64_t
 
auto getGuid () const -> QString
 
auto getSha256 () const -> QString
 
auto getMd5 () const -> QString
 
auto getNoteOrderAlgorithm () const -> resource_managers::NoteOrderAlgorithm
 
auto getNoteOrderAlgorithmP2 () const -> resource_managers::NoteOrderAlgorithm
 
auto getGameVersion () const -> uint64_t
 
auto getResults () const -> const QList< BmsResult * > &
 
auto getConstraints () const -> QStringList
 
auto getTrophies () const -> QVariantList
 
auto getIdentifier () const -> QString
 
auto getDpOptions () const -> resource_managers::DpOptions
 
auto getLength () const -> int64_t
 
auto getKeymode () const -> ChartData::Keymode
 

Static Public Member Functions

static auto load (const DTO &dto, const QList< BmsResult * > &results) -> std::unique_ptr< BmsResultCourse >
 

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 course.
 
int scratchCount
 The number of scratch notes in the course.
 
int lnCount
 The number of long notes in the course excluding BSS (scratch lns).
 
int bssCount
 The number of BSS (scratch long notes) in the course.
 
int mineCount
 The number of mines (landmines) in the course.
 
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 constituent charts.
 
int64_t unixTimestamp = 0
 The timestamp when the score was achieved, in Unix time.
 
int64_t length
 The length of the course in nanoseconds.
 
QString guid
 The unique identifier of this course score.
 
QString sha256
 The SHA-256 hashes of constituent charts, joined with spaces.
 
QString md5
 The MD5 hashes of constituent charts, joined with spaces.
 
resource_managers::NoteOrderAlgorithm noteOrderAlgorithm READ getNoteOrderAlgorithm
 The note order algorithm used for the course.
 
resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2 READ getNoteOrderAlgorithmP2
 The note order algorithm used for player 2 side in DP charts.
 
QString identifier
 The unique identifier of the course, based on chart identifiers and contraints.
 
resource_managers::DpOptions dpOptions
 The DP options used for the score.
 
uint64_t gameVersion
 The game version where the score was achieved.
 
gameplay_logic::ChartData::Keymode keymode
 The keymode of the chart.
 
QStringList constraints
 The constraints of the course, like "gauge_lr2" or "grade_mirror".
 
QList< BmsResult * > results
 
bool complete
 
bool replayAvailable
 
bool imported
 

Constructor & Destructor Documentation

◆ BmsResultCourse() [1/2]

gameplay_logic::BmsResultCourse::BmsResultCourse ( QString  guid,
QString  identifier,
const QList< BmsResult * > &  results,
QString  clearType,
int  maxCombo,
QStringList  constraints,
uint64_t  gameVersion = support::currentVersion,
QObject *  parent = nullptr 
)

◆ BmsResultCourse() [2/2]

gameplay_logic::BmsResultCourse::BmsResultCourse ( QString  guid,
QString  identifier,
QList< BmsScore * >  scores,
QString  clearType,
int  maxCombo,
QStringList  constraints,
uint64_t  gameVersion = support::currentVersion,
QObject *  parent = nullptr 
)

Member Function Documentation

◆ changed

void gameplay_logic::BmsResultCourse::changed ( )
signal

◆ clone()

auto gameplay_logic::BmsResultCourse::clone ( ) const -> std::unique_ptr<BmsResultCourse>

◆ getBssCount()

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

◆ getClearType()

auto gameplay_logic::BmsResultCourse::getClearType ( ) const -> const QString&

◆ getConstraints()

auto gameplay_logic::BmsResultCourse::getConstraints ( ) const -> QStringList

◆ getDpOptions()

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

◆ getGameVersion()

auto gameplay_logic::BmsResultCourse::getGameVersion ( ) const -> uint64_t

◆ getGuid()

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

◆ getIdentifier()

auto gameplay_logic::BmsResultCourse::getIdentifier ( ) const -> QString

◆ getJudgementCounts()

auto gameplay_logic::BmsResultCourse::getJudgementCounts ( ) const -> QList<int>

◆ getKeymode()

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

◆ getLength()

auto gameplay_logic::BmsResultCourse::getLength ( ) const -> int64_t

◆ getLnCount()

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

◆ getMaxCombo()

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

◆ getMaxHits()

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

◆ getMaxPoints()

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

◆ getMd5()

auto gameplay_logic::BmsResultCourse::getMd5 ( ) const -> QString

◆ getMineCount()

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

◆ getMineHits()

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

◆ getNormalNoteCount()

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

◆ getNoteOrderAlgorithm()

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

◆ getNoteOrderAlgorithmP2()

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

◆ getPoints()

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

◆ getRandomSequence()

auto gameplay_logic::BmsResultCourse::getRandomSequence ( ) -> QList<qint64>

◆ getResults()

auto gameplay_logic::BmsResultCourse::getResults ( ) const -> const QList<BmsResult*>&

◆ getScratchCount()

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

◆ getSha256()

auto gameplay_logic::BmsResultCourse::getSha256 ( ) const -> QString

◆ getTrophies()

auto gameplay_logic::BmsResultCourse::getTrophies ( ) const -> QVariantList

◆ getUnixTimestamp()

auto gameplay_logic::BmsResultCourse::getUnixTimestamp ( ) const -> int64_t

◆ isComplete()

bool gameplay_logic::BmsResultCourse::isComplete ( ) const

◆ isImported()

bool gameplay_logic::BmsResultCourse::isImported ( ) const

◆ isReplayAvailable()

bool gameplay_logic::BmsResultCourse::isReplayAvailable ( ) const

◆ load()

auto gameplay_logic::BmsResultCourse::load ( const DTO &  dto,
const QList< BmsResult * > &  results 
) -> std::unique_ptr<BmsResultCourse>
static

◆ save()

void gameplay_logic::BmsResultCourse::save ( db::SqliteCppDb &  db) const

◆ updateFrom()

bool gameplay_logic::BmsResultCourse::updateFrom ( const BmsResultCourse &  other)

Updates cached metadata while keeping existing QML references valid.

Property Documentation

◆ bssCount

int gameplay_logic::BmsResultCourse::bssCount
read

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

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

◆ clearType

QString gameplay_logic::BmsResultCourse::clearType
read

The clear type achieved in the score.

This property indicates the type of clear achieved in the score, such as "DAN", "EXDAN", "EXHARDDAN", "FAILED", etc.

◆ complete

bool gameplay_logic::BmsResultCourse::complete
read

Whether every referenced stage record is available, even for an unfinished course.

◆ constraints

QStringList gameplay_logic::BmsResultCourse::constraints
read

The constraints of the course, like "gauge_lr2" or "grade_mirror".

◆ dpOptions

resource_managers::DpOptions gameplay_logic::BmsResultCourse::dpOptions
read

The DP options used for the score.

This property indicates the DP options that were active during gameplay.

See also
resource_managers::DpOptions

◆ gameVersion

uint64_t gameplay_logic::BmsResultCourse::gameVersion
read

The game version where the score was achieved.

For migrations.

◆ getNoteOrderAlgorithm

resource_managers::NoteOrderAlgorithm noteOrderAlgorithm READ gameplay_logic::BmsResultCourse::getNoteOrderAlgorithm

The note order algorithm used for the course.

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

See also
resource_managers::note_order_algorithm::NoteOrderAlgorithm

◆ getNoteOrderAlgorithmP2

resource_managers::NoteOrderAlgorithm noteOrderAlgorithmP2 READ gameplay_logic::BmsResultCourse::getNoteOrderAlgorithmP2

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

See also
noteOrderAlgorithm

◆ guid

QString gameplay_logic::BmsResultCourse::guid
read

The unique identifier of this course score.

◆ identifier

QString gameplay_logic::BmsResultCourse::identifier
read

The unique identifier of the course, based on chart identifiers and contraints.

◆ imported

bool gameplay_logic::BmsResultCourse::imported
read

Whether any stage was imported from another game.

◆ judgementCounts

QList<int> gameplay_logic::BmsResultCourse::judgementCounts
read

The counts of each judgement type achieved in the score.

The order is defined in the Judgement enum.

See also
Judgement

◆ keymode

gameplay_logic::ChartData::Keymode gameplay_logic::BmsResultCourse::keymode
read

The keymode of the chart.

Can be different from the keymode of chartData when resource_managers::dp_options::DpOptions is battle.

Note
This is the property used to determine which gampley screen to load.

◆ length

int64_t gameplay_logic::BmsResultCourse::length
read

The length of the course in nanoseconds.

This property indicates the total duration of the course from start to finish, measured in nanoseconds.

Note
This is based on the timestamp of the last visible note in each chart.

◆ lnCount

int gameplay_logic::BmsResultCourse::lnCount
read

The number of long notes in the course 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::BmsResultCourse::maxCombo
read

The best combo achieved in the score.

◆ maxHits

int gameplay_logic::BmsResultCourse::maxHits
read

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

◆ maxPoints

double gameplay_logic::BmsResultCourse::maxPoints
read

The maximum possible points achievable in the score.

◆ md5

QString gameplay_logic::BmsResultCourse::md5
read

The MD5 hashes of constituent charts, joined with spaces.

See also
BmsResult::md5

◆ mineCount

int gameplay_logic::BmsResultCourse::mineCount
read

The number of mines (landmines) in the course.

◆ mineHits

int gameplay_logic::BmsResultCourse::mineHits
read

The number of mines hit in the score.

◆ normalNoteCount

int gameplay_logic::BmsResultCourse::normalNoteCount
read

The number of normal notes in the course.

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

◆ points

double gameplay_logic::BmsResultCourse::points
read

The points achieved in the score.

◆ randomSequence

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

The random sequence used for parsing the constituent charts.

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

◆ replayAvailable

bool gameplay_logic::BmsResultCourse::replayAvailable
read

Whether every referenced stage has a recording.

◆ results

QList< BmsResult * > gameplay_logic::BmsResultCourse::results
read

Ordered saved stage results. A missing record keeps its null slot.

◆ scratchCount

int gameplay_logic::BmsResultCourse::scratchCount
read

The number of scratch notes in the course.

Scratch notes are normal notes on scratch columns.

◆ sha256

QString gameplay_logic::BmsResultCourse::sha256
read

The SHA-256 hashes of constituent charts, joined with spaces.

See also
BmsResult::sha256

◆ unixTimestamp

int64_t gameplay_logic::BmsResultCourse::unixTimestamp = 0
read

The timestamp when the score was achieved, in Unix time.

This property records the time when the score on the last chart of the course was created, represented as the number of seconds since January 1, 1970 (the Unix epoch).


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