-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote.h
More file actions
55 lines (49 loc) · 1.04 KB
/
note.h
File metadata and controls
55 lines (49 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef NOTE_H
#define NOTE_H
#include <QObject>
#include <QtDebug>
#include <QGraphicsOpacityEffect>
#include <QSoundEffect>
#include <QTimer>
#include "item.h"
class UI;
class Note : public QObject
{
Q_OBJECT
public:
UI *_UI;
qint32 _Num;
qint32 _ColourNum;
qint32 _Colourstyle;
qint32 _CurrentComboNum;
qint32 x,y;
qint32 _Error;
qreal _TimeN;
qreal _TimeL;
qreal _NoteScale;
qreal _LightScale;
qreal _NoteSize;
qreal _LightSize;
qreal _NoteAlpha;
qreal _LightAlpha;
qreal _RainbowLightScale;
qreal _RainbowLightAlpha;
qreal _InitialLightScale;
bool _isPlay;
bool _isJudge;
QSoundEffect _HitSound;
Item _Note;
Item _Light;
Item _RainbowLight;
Item _CurrentCombo;
Note(UI *__UI, QString _ColourStyle, qint32 __Num, qint32 _Colour, qint32 _x, qint32 _y);
~Note();
void play();
void vanish();
void judge(const qint32 & _Colourtype, const Note* _Dealtnote);
inline void clear()
{
delete this;
}
};
#endif // NOTE_H