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

The class that determines which notes get hit or missed. More...

#include <HitRules.h>

Classes

struct  Mine
 
struct  Note
 

Public Types

enum class  NoteType { Normal , LnBegin , LnEnd , Invisible }
 

Public Member Functions

 HitRules (TimingWindows timingWindows, std::function< double(std::chrono::nanoseconds, Judgement judgement)> hitValueFactory)
 
void disableSound ()
 
auto press (std::span< Note > notes, int column, std::chrono::nanoseconds hitOffset, std::optional< input::BmsKey > key=std::nullopt) -> QList< HitEvent >
 
auto processMisses (std::span< Note > notes, int column, std::chrono::nanoseconds offsetFromStart) -> std::vector< HitEvent >
 
auto processMines (std::span< Mine > mines, int column, std::chrono::nanoseconds offsetFromStart, bool pressed, sounds::Sound *mineHitSound) -> std::vector< HitEvent >
 
auto release (std::span< Note > notes, int column, std::chrono::nanoseconds hitOffset, std::optional< input::BmsKey > key=std::nullopt) -> HitEvent
 

Detailed Description

The class that determines which notes get hit or missed.

Beatoraja defines three different "Judge algorithms":

This class implements the "Combo get priority" algorithm.

Note
Define RHYTHMGAME_BOTTOM_NOTES_GET_PRIORITY to use the "Bottom notes get priority" algorithm instead.

Member Enumeration Documentation

◆ NoteType

Enumerator
Normal 
LnBegin 
LnEnd 
Invisible 

Constructor & Destructor Documentation

◆ HitRules()

gameplay_logic::rules::HitRules::HitRules ( TimingWindows  timingWindows,
std::function< double(std::chrono::nanoseconds, Judgement judgement)>  hitValueFactory 
)
explicit

Member Function Documentation

◆ disableSound()

void gameplay_logic::rules::HitRules::disableSound ( )

◆ press()

auto gameplay_logic::rules::HitRules::press ( std::span< Note >  notes,
int  column,
std::chrono::nanoseconds  hitOffset,
std::optional< input::BmsKey >  key = std::nullopt 
) -> QList<HitEvent>

◆ processMines()

auto gameplay_logic::rules::HitRules::processMines ( std::span< Mine >  mines,
int  column,
std::chrono::nanoseconds  offsetFromStart,
bool  pressed,
sounds::Sound *  mineHitSound 
) -> std::vector<HitEvent>

◆ processMisses()

auto gameplay_logic::rules::HitRules::processMisses ( std::span< Note >  notes,
int  column,
std::chrono::nanoseconds  offsetFromStart 
) -> std::vector<HitEvent>

◆ release()

auto gameplay_logic::rules::HitRules::release ( std::span< Note >  notes,
int  column,
std::chrono::nanoseconds  hitOffset,
std::optional< input::BmsKey >  key = std::nullopt 
) -> HitEvent

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