-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_notefinding.h
49 lines (39 loc) · 950 Bytes
/
game_notefinding.h
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
#ifndef Game_NoteFinding_H
#define Game_NoteFinding_H
#include <QWidget>
#include <QGraphicsScene>
#include <QMap>
#include "usersettings.h"
#include "staffscene.h"
#include "game.h"
#include "mainwindow.h"
namespace Ui {
class Game_NoteFinding;
}
class MainWindow;
class Game_NoteFinding : public Game
{
Q_OBJECT
public:
explicit Game_NoteFinding(QWidget *parent = 0);
~Game_NoteFinding();
void addSelectableLine(int lineIndex);
virtual void startGame();
private slots:
void lineSelected(int line);
void on_playAgain_clicked();
private:
void makeMap();
void correct();
void incorrect();
void nextRound();
void writeUserSettings();
virtual void setSelectableLines();
QMap<int, QString> m_lineToNoteMap;
int m_answer;
QList<int> m_selectableLines;
MainWindow* m_mainWindow;
Ui::Game_NoteFinding *ui;
StaffScene* m_scene;
};
#endif // Game_NoteFinding_H