-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
47 lines (40 loc) · 954 Bytes
/
mainwindow.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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtGlobal>
#include <QTime>
#include <QTimer>
#include<QString>
#include<algorithm>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class Node
{
public:
Node(int number,bool type,int *data);
int number,data[15][3];
//1 = hua 2 = write 3 =blake;
bool type;
//if type true,blake is in it pig juan
Node *F,*N;
};
extern Node *head,*tail,*p;
extern int day;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void new_game(Node *head);
void grow(Node *head);
QString goout(Node *head);
QString findpig(int findmode);
void savefile_zhuangtai(QString a);
//void savefile_gouru(QString a);
void savefile_chulan(QString a);
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H