5#ifndef RHYTHMGAME_HITEVENT_H
6#define RHYTHMGAME_HITEVENT_H
31 using DeltaTime = int64_t;
120 auto
getKey() const ->
int;
133 auto otherHitOffset =
134 other.points.has_value() ? other.points->getDeviation() : 0;
136 other.offsetFromStart + otherHitOffset;
142 column == other.column &&
key == other.key &&
Definition BmsPoints.h:11
A very generic event that happened during gameplay.
Definition HitEvent.h:19
bool noteRemoved
Whether this event removed a note.
Definition HitEvent.h:77
int key
The physical key that caused this event or -1 if not applicable.
Definition HitEvent.h:62
friend auto operator>>(QDataStream &stream, HitEvent &tap) -> QDataStream &
Definition HitEvent.cpp:104
auto getColumn() const -> int
Definition HitEvent.cpp:29
DeltaTime deviation
Signed timing deviation in nanoseconds, or 0 when unavailable.
Definition HitEvent.h:46
void setNoteRemoved(bool newNoteRemoved)
Definition HitEvent.cpp:85
auto getJudgement() const -> int
Definition HitEvent.cpp:13
void setPoints(std::optional< BmsPoints > newPoints)
Definition HitEvent.cpp:80
friend auto operator<<(QDataStream &stream, const HitEvent &tap) -> QDataStream &
Definition HitEvent.cpp:95
auto getNoteRemoved() const -> bool
Definition HitEvent.cpp:70
auto getPoints() const -> QVariant
Definition HitEvent.cpp:23
auto getDeviation() const -> DeltaTime
Definition HitEvent.cpp:18
Action
Definition HitEvent.h:23
auto getOffsetFromStart() const -> DeltaTime
Definition HitEvent.cpp:8
void setAction(Action newAction)
Definition HitEvent.cpp:75
Action action
What the user did to cause this event to happen.
Definition HitEvent.h:72
int column
The column where this event happened.
Definition HitEvent.h:56
DeltaTime offsetFromStart
The offset from the start of the chart when this event happened.
Definition HitEvent.h:35
auto getHitOffset() const -> DeltaTime
Definition HitEvent.cpp:128
DeltaTime hitOffset
The offset from the note's perfect hit time when this event happened.
Definition HitEvent.h:42
auto getKeyOptional() const -> std::optional< input::BmsKey >
Definition HitEvent.cpp:55
int noteIndex
The index of the note that was hit or -1 if no note was hit.
Definition HitEvent.h:68
auto getKey() const -> int
Definition HitEvent.cpp:50
auto getPointsOptional() const -> std::optional< BmsPoints >
Definition HitEvent.cpp:90
auto operator==(const HitEvent &other) const -> bool
Definition HitEvent.h:138
QVariant points
The points awarded for this hit.
Definition HitEvent.h:52
auto getNoteIndex() const -> int
Definition HitEvent.cpp:60
int judgement
Judgement awarded for this event, or -1 when none was awarded.
Definition HitEvent.h:44
auto getAction() const -> Action
Definition HitEvent.cpp:65
Classes and functions mostly related to gameplay.
Definition ArenaGameplaySource.h:10