RhythmGame 1.4.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
gameplay_logic::rules::BmsGauge Class Referenceabstract

#include <BmsGauge.h>

Inheritance diagram for gameplay_logic::rules::BmsGauge:
Inheritance graph
[legend]
Collaboration diagram for gameplay_logic::rules::BmsGauge:
Collaboration graph
[legend]

Signals

void gaugeChanged ()
 

Public Member Functions

 BmsGauge (QString name, double gaugeMax, double initialValue, double threshold, bool courseGauge, QObject *parent=nullptr)
 
auto getGauge () const -> double
 
auto getGaugeMax () const -> double
 
auto getThreshold () const -> double
 
auto getGaugeHistory () const -> const QList< GaugeHistoryEntry > &
 
virtual void addHit (std::chrono::nanoseconds offsetFromStart, std::chrono::nanoseconds hitOffset, Judgement judgement)=0
 
virtual void addMineHit (std::chrono::nanoseconds offsetFromStart, double penalty)=0
 
auto getName () const -> QString
 
auto isCourseGauge () const -> bool
 

Protected Member Functions

void addGaugeHistoryEntry (GaugeHistoryEntry entry)
 

Properties

QString name
 The name of the gauge.
 
bool courseGauge
 Whether the gauge is a course gauge.
 
double gauge
 The current value of the gauge.
 
double gaugeMax
 The maximum possible value of the gauge.
 
double threshold = 0
 The threshold value of the gauge.
 
QList< gameplay_logic::rules::GaugeHistoryEntry > gaugeHistory READ getGaugeHistory
 The history of the gauge.
 

Constructor & Destructor Documentation

◆ BmsGauge()

gameplay_logic::rules::BmsGauge::BmsGauge ( QString  name,
double  gaugeMax,
double  initialValue,
double  threshold,
bool  courseGauge,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ addGaugeHistoryEntry()

void gameplay_logic::rules::BmsGauge::addGaugeHistoryEntry ( GaugeHistoryEntry  entry)
protected

◆ addHit()

virtual void gameplay_logic::rules::BmsGauge::addHit ( std::chrono::nanoseconds  offsetFromStart,
std::chrono::nanoseconds  hitOffset,
Judgement  judgement 
)
pure virtual

◆ addMineHit()

virtual void gameplay_logic::rules::BmsGauge::addMineHit ( std::chrono::nanoseconds  offsetFromStart,
double  penalty 
)
pure virtual

◆ gaugeChanged

void gameplay_logic::rules::BmsGauge::gaugeChanged ( )
signal

◆ getGauge()

auto gameplay_logic::rules::BmsGauge::getGauge ( ) const -> double

◆ getGaugeHistory()

auto gameplay_logic::rules::BmsGauge::getGaugeHistory ( ) const -> const QList<GaugeHistoryEntry>&

◆ getGaugeMax()

auto gameplay_logic::rules::BmsGauge::getGaugeMax ( ) const -> double

◆ getName()

auto gameplay_logic::rules::BmsGauge::getName ( ) const -> QString

◆ getThreshold()

auto gameplay_logic::rules::BmsGauge::getThreshold ( ) const -> double

◆ isCourseGauge()

auto gameplay_logic::rules::BmsGauge::isCourseGauge ( ) const -> bool

Property Documentation

◆ courseGauge

bool gameplay_logic::rules::BmsGauge::courseGauge
read

Whether the gauge is a course gauge.

Course gauges are only used in courses and have different behavior. They give NOPLAY clears on the charts that constitute the course.

◆ gauge

double gameplay_logic::rules::BmsGauge::gauge
read

The current value of the gauge.

◆ gaugeMax

double gameplay_logic::rules::BmsGauge::gaugeMax
read

The maximum possible value of the gauge.

◆ getGaugeHistory

QList<gameplay_logic::rules::GaugeHistoryEntry> gaugeHistory READ gameplay_logic::rules::BmsGauge::getGaugeHistory

The history of the gauge.

A list of entries that record the value of the gauge at the timestamps when it changed.

◆ name

QString gameplay_logic::rules::BmsGauge::name
read

The name of the gauge.

◆ threshold

double gameplay_logic::rules::BmsGauge::threshold = 0
read

The threshold value of the gauge.

If the gauge is below this value at the end of the song, the player fails.


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