-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdragonmover.h
49 lines (44 loc) · 875 Bytes
/
dragonmover.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 DRAGONMOVER_H
#define DRAGONMOVER_H
#include <vector>
#include <algorithm>
#include <QDialog>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QMessageBox>
#include <QPixmap>
#include <QScrollArea>
#include <QLabel>
#include <QString>
#include "table.h"
#include "piece.h"
using namespace std;
class DragonMover : public QDialog {
Q_OBJECT
private:
QVBoxLayout *layout;
QGridLayout *buttonLayout;
QPushButton *north;
QPushButton *east;
QPushButton *south;
QPushButton *west;
QLabel *label;
QScrollArea *scroll;
Table *table;
Piece *dragon;
int players;
int currentPlayer;
int moves;
int size;
int x;
int y;
vector<Tile*> dragonHistory;
void update();
public:
DragonMover(QWidget *parent, Table *t, Piece *d, QScrollArea *a, int ps, int p, int s);
~DragonMover();
private slots:
void buttonClicked();
};
#endif