RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
gameplay_logic::rules::Lr2Gauge Class Reference

#include <Lr2Gauge.h>

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

Public Member Functions

 Lr2Gauge (QString gaugeName, double gaugeMax, double initialValue, double threshold, bool permanentDeath, bool courseGauge, std::function< double(double, Judgement)> judgementValueFactory, QObject *parent=nullptr)
 
void addHit (std::chrono::nanoseconds offsetFromStart, std::chrono::nanoseconds hitOffset, Judgement judgement) override
 
void addMineHit (std::chrono::nanoseconds offsetFromStart, double penalty) override
 
- Public Member Functions inherited from gameplay_logic::rules::BmsGauge
 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 > &
 
auto getName () const -> QString
 
auto isCourseGauge () const -> bool
 

Static Public Member Functions

static auto getGauges (double total, int noteCount) -> std::vector< std::unique_ptr< BmsGauge > >
 
static auto getDanGauges (const QHash< QString, double > &initialValues) -> std::vector< std::unique_ptr< BmsGauge > >
 

Additional Inherited Members

- Signals inherited from gameplay_logic::rules::BmsGauge
void gaugeChanged ()
 
- Protected Member Functions inherited from gameplay_logic::rules::BmsGauge
void addGaugeHistoryEntry (GaugeHistoryEntry entry)
 
- Properties inherited from gameplay_logic::rules::BmsGauge
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

◆ Lr2Gauge()

gameplay_logic::rules::Lr2Gauge::Lr2Gauge ( QString  gaugeName,
double  gaugeMax,
double  initialValue,
double  threshold,
bool  permanentDeath,
bool  courseGauge,
std::function< double(double, Judgement)>  judgementValueFactory,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ addHit()

void gameplay_logic::rules::Lr2Gauge::addHit ( std::chrono::nanoseconds  offsetFromStart,
std::chrono::nanoseconds  hitOffset,
Judgement  judgement 
)
overridevirtual

◆ addMineHit()

void gameplay_logic::rules::Lr2Gauge::addMineHit ( std::chrono::nanoseconds  offsetFromStart,
double  penalty 
)
overridevirtual

◆ getDanGauges()

auto gameplay_logic::rules::Lr2Gauge::getDanGauges ( const QHash< QString, double > &  initialValues) -> std::vector<std::unique_ptr<BmsGauge>>
static

◆ getGauges()

auto gameplay_logic::rules::Lr2Gauge::getGauges ( double  total,
int  noteCount 
) -> std::vector<std::unique_ptr<BmsGauge>>
static

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