-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmstartgame.h
60 lines (40 loc) · 953 Bytes
/
frmstartgame.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
50
51
52
53
54
55
56
57
58
59
60
#ifndef FRMSTARTGAME_H
#define FRMSTARTGAME_H
#include <QWidget>
#include "frmgamewindow.h"
#include "database.h"
#include "databaseanswer.h"
#include "levelliste.h"
#include "imagecathegorylist.h"
namespace Ui {
class FrmStartGame;
}
class FrmStartGame : public QWidget
{
Q_OBJECT
signals:
void programCut();
void gameStarted();
void gameClosed();
public:
explicit FrmStartGame(QWidget *parent = nullptr);
~FrmStartGame();
void setDB(Database* db);
void setUp(Levelliste* list);
void setUsername(QString username);
private slots:
void closeEvent(QCloseEvent *event);
void on_btnStartGame_clicked();
void on_gameWindow_closed();
private:
Ui::FrmStartGame *ui;
// database
Database* db;
QString username;
// container class levels
Levelliste* level;
ImageCathegoryList* cathegory;
// game field
FrmGameWindow* gameWindow;
};
#endif // FRMSTARTGAME_H