-
Notifications
You must be signed in to change notification settings - Fork 0
/
playsurface.h
48 lines (46 loc) · 1.03 KB
/
playsurface.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
#ifndef PLAYSURFACE_H
#define PLAYSURFACE_H
#include "QKeyEvent"
#include <QMainWindow>
#include <primmaze.h>
#include "QPainter"
#include "QMenuBar"
#include "QLabel"
#include "mypushbotton.h"
#include "QTimer"
#include "QTime"
#include "QMediaPlayer"
class PlaySurface : public QMainWindow
{
Q_OBJECT
public:
PlaySurface(int mazelength);
int **QTmaze, mazelength;
void paintEvent(QPaintEvent *);
void choose();
void openpath();
QLabel *timelabel;
QLabel *steplabel;
point* bfspathnode;
PlaySurface *chooseContinue;
int widthlength, heigthlength;
int peopleX = 1, peopleY = 1, endx, endy;
int stepconut = 0;
int temp;
QTimer *timer;
QTime baseTime;
void swap(int &x, int &y);
bool canGo(int x, int y);
bool start = false;
void move();
void keyPressEvent(QKeyEvent * QKevent);
void timecount();
QString mytitle;
QMediaPlayer *victory;
QMediaPlayer *stepmusic;
signals:
void backchoose();
void bgmstop();
public slots:
};
#endif // PLAYSURFACE_H