-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.h
More file actions
55 lines (50 loc) · 1.04 KB
/
Game.h
File metadata and controls
55 lines (50 loc) · 1.04 KB
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
#ifndef GAME_H
#define GAME_H
#include <iostream>
#include <QThread>
#include <QProgressDialog>
#include "Status.h"
#include <stack>
#include <QDebug>
using namespace std;
class Game : public QThread
{
Q_OBJECT
private:
Status startStatus;
bool **wall;
bool **isAim;
Status player;
public:
int zpt;
int **mp;
static const int WALL;
static const int AIM;
static const int MAN;
static const int BOX;
static const int RIGHT;
static const int LEFT;
static const int DOWN;
static const int UP;
static const int mx[];
static const int my[];
static const char mv[];
int minGH;
const int n;
const int m;
vector<Point> aim;
stack<Status> oldStatus;
Game(int N,int M,string s);
~Game();
vector<int> ans;
const vector<int>& solve();
void restart();
int getH();
bool isWin();
void move(int k);
void goBack();
vector<int> move(int x,int y);
void run();
int getStep();
};
#endif // GAME_H