-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrille.h
More file actions
executable file
·51 lines (37 loc) · 855 Bytes
/
grille.h
File metadata and controls
executable file
·51 lines (37 loc) · 855 Bytes
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
#ifndef GRILLE
#define GRILLE
#include <QObject>
#include <QPushButton>
#include <QLabel>
#define N 10
#define NUM_COOKIE 4
#define WIDTH col*50 + 50
#define HEIGHT row*50 + 50
class Grille : public QObject
{
Q_OBJECT
public:
explicit Grille (QWidget *parent, int Row, int Col);
~Grille();
QTimer * time;
QPushButton * button;
void setNumber(); //setRandomNumber
void setCandy(); //setBottomPicture
void operator -(Grille * grille);
void operator |(Grille * grille);
int tile;
const int row;
const int col;
signals:
void Click(int row,int col);
void moveDone();
public slots:
void click();
void moveRight();
void moveLeft();
void moveDown();
void moveUp();
private:
int deplacer;
};
#endif // GRILLE