|
RhythmGame 1.4.3
|
A very generic event that happened during gameplay. More...
#include <HitEvent.h>
Public Types | |
| enum class | Action { None , Press , Release } |
Public Member Functions | |
| HitEvent (int column, std::optional< input::BmsKey > key, std::optional< int > noteIndex, DeltaTime offsetFromStart, std::optional< BmsPoints > points, Action action, bool noteRemoved) | |
| HitEvent (int column, std::optional< int > noteIndex, DeltaTime offsetFromStart, std::optional< BmsPoints > points, Action action, bool noteRemoved) | |
| HitEvent ()=default | |
| auto | getOffsetFromStart () const -> DeltaTime |
| auto | getHitOffset () const -> DeltaTime |
| auto | getJudgement () const -> int |
| auto | getDeviation () const -> DeltaTime |
| auto | getPoints () const -> QVariant |
| auto | getPointsOptional () const -> std::optional< BmsPoints > |
| auto | getColumn () const -> int |
| auto | getKey () const -> int |
| auto | getKeyOptional () const -> std::optional< input::BmsKey > |
| auto | getNoteIndex () const -> int |
| auto | getAction () const -> Action |
| auto | getNoteRemoved () const -> bool |
| void | setAction (Action newAction) |
| void | setPoints (std::optional< BmsPoints > newPoints) |
| void | setNoteRemoved (bool newNoteRemoved) |
| auto | operator> (const HitEvent &other) const |
| auto | operator== (const HitEvent &other) const -> bool |
Properties | |
| DeltaTime | offsetFromStart |
| The offset from the start of the chart when this event happened. | |
| DeltaTime | hitOffset |
| The offset from the note's perfect hit time when this event happened. | |
| int | judgement |
| Judgement awarded for this event, or -1 when none was awarded. | |
| DeltaTime | deviation |
| Signed timing deviation in nanoseconds, or 0 when unavailable. | |
| QVariant | points |
| The points awarded for this hit. | |
| int | column |
| The column where this event happened. | |
| int | key |
| The physical key that caused this event or -1 if not applicable. | |
| int | noteIndex |
| The index of the note that was hit or -1 if no note was hit. | |
| Action | action |
| What the user did to cause this event to happen. | |
| bool | noteRemoved |
| Whether this event removed a note. | |
Friends | |
| auto | operator<< (QDataStream &stream, const HitEvent &tap) -> QDataStream & |
| auto | operator>> (QDataStream &stream, HitEvent &tap) -> QDataStream & |
A very generic event that happened during gameplay.
It represents hits but also misses and note releases. Hits that hit nothing as well.
|
strong |
| gameplay_logic::HitEvent::HitEvent | ( | int | column, |
| std::optional< input::BmsKey > | key, | ||
| std::optional< int > | noteIndex, | ||
| DeltaTime | offsetFromStart, | ||
| std::optional< BmsPoints > | points, | ||
| Action | action, | ||
| bool | noteRemoved | ||
| ) |
|
inline |
|
default |
| auto gameplay_logic::HitEvent::getAction | ( | ) | const -> Action |
| auto gameplay_logic::HitEvent::getColumn | ( | ) | const -> int |
| auto gameplay_logic::HitEvent::getDeviation | ( | ) | const -> DeltaTime |
| auto gameplay_logic::HitEvent::getHitOffset | ( | ) | const -> DeltaTime |
| auto gameplay_logic::HitEvent::getJudgement | ( | ) | const -> int |
| auto gameplay_logic::HitEvent::getKey | ( | ) | const -> int |
| auto gameplay_logic::HitEvent::getKeyOptional | ( | ) | const -> std::optional<input::BmsKey> |
| auto gameplay_logic::HitEvent::getNoteIndex | ( | ) | const -> int |
| auto gameplay_logic::HitEvent::getNoteRemoved | ( | ) | const -> bool |
| auto gameplay_logic::HitEvent::getOffsetFromStart | ( | ) | const -> DeltaTime |
| auto gameplay_logic::HitEvent::getPoints | ( | ) | const -> QVariant |
| auto gameplay_logic::HitEvent::getPointsOptional | ( | ) | const -> std::optional<BmsPoints> |
|
inline |
|
inline |
| void gameplay_logic::HitEvent::setAction | ( | Action | newAction | ) |
| void gameplay_logic::HitEvent::setNoteRemoved | ( | bool | newNoteRemoved | ) |
| void gameplay_logic::HitEvent::setPoints | ( | std::optional< BmsPoints > | newPoints | ) |
|
friend |
|
friend |
|
read |
What the user did to cause this event to happen.
|
read |
The column where this event happened.
|
read |
Signed timing deviation in nanoseconds, or 0 when unavailable.
|
read |
The offset from the note's perfect hit time when this event happened.
Will be 0 for hits that hit nothing.
|
read |
Judgement awarded for this event, or -1 when none was awarded.
|
read |
The physical key that caused this event or -1 if not applicable.
This differs from column for scratch where up/down share one logical lane.
|
read |
The index of the note that was hit or -1 if no note was hit.
This index corresponds to the index in BmsNotes::notes. It will be -1 for hits that hit nothing.
|
read |
Whether this event removed a note.
False for empty poors. The note can still be hit again.
|
read |
The offset from the start of the chart when this event happened.
|
read |