RhythmGame 1.4.3
Loading...
Searching...
No Matches
BmsPoints.h
Go to the documentation of this file.
1//
2// Created by bobini on 23.06.23.
3//
4
5#ifndef RHYTHMGAME_BMSPOINTS_H
6#define RHYTHMGAME_BMSPOINTS_H
7#include <QObject>
8#include "Judgement.h"
9namespace gameplay_logic {
11{
12 Q_GADGET
13 Q_PROPERTY(double value READ getValue CONSTANT)
14 Q_PROPERTY(Judgement judgement READ getJudgement CONSTANT)
15 Q_PROPERTY(int64_t deviation READ getDeviation CONSTANT)
16 double value;
18 int64_t deviation;
19
20 public:
22 BmsPoints() = default;
23 auto getValue() const -> double;
24 auto getJudgement() const -> Judgement;
25 auto getDeviation() const -> int64_t;
26
27 friend auto operator<<(QDataStream& stream, const BmsPoints& points)
28 -> QDataStream&;
29 friend auto operator>>(QDataStream& stream, BmsPoints& points)
30 -> QDataStream&;
31 auto operator==(const BmsPoints& other) const -> bool;
32};
33QDataStream&
34operator<<(QDataStream& stream, const BmsPoints& points);
35QDataStream&
36operator>>(QDataStream& stream, BmsPoints& points);
37} // namespace gameplay_logic
38
39Q_DECLARE_METATYPE(gameplay_logic::BmsPoints)
40
41#endif // RHYTHMGAME_BMSPOINTS_H
std::optional< BmsPoints > points
Definition BmsReplayData.cpp:39
Definition BmsPoints.h:11
auto getDeviation() const -> int64_t
Definition BmsPoints.cpp:26
auto getJudgement() const -> Judgement
Definition BmsPoints.cpp:21
double value
Definition BmsPoints.h:13
auto getValue() const -> double
Definition BmsPoints.cpp:16
int64_t deviation
Definition BmsPoints.h:15
Judgement judgement
Definition BmsPoints.h:14
Judgement
The possible judgements for note hits.
Definition Judgement.h:18
Classes and functions mostly related to gameplay.
Definition ArenaGameplaySource.h:10