-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
47 lines (34 loc) · 767 Bytes
/
game.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
#ifndef GAME_H
#define GAME_H
#include "user.h"
#include "card.h"
#include "ui_mainwindow.h"
#include <QObject>
class Game : public QObject
{
Q_OBJECT
public:
Game(QObject *parent = nullptr);
signals:
void inform(int);
void informVisibility(int, int);
void informPicture1();
void informPicture2();
void informPicture3();
void informPicture4();
void informPicture5();
void informPicture6();
void informButtonOn(int);
void informButtonOff(int);
void setPoints(int);
void setLifes(int);
public slots:
void newGame();
void changeVisibility(int index, int index2);
void doSomething(int index);
private:
User* m_user;
Card* m_cards[6];
Ui::MainWindow* ui;
};
#endif // GAME_H