-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
77 lines (68 loc) · 1.71 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "view.h"
#include "cheat.h"
#include "phone.h"
#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QMenuBar>
#include <QString>
#include <QSound>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void Welcome();
void Clear();
void CreateActions();
void CreateMenus();
void CreateInform();
void CreateDate(int num);
void AddMapItem(int x, int y, int num);
void AddPictureItem(int x, int y, QString str);
void AddPlayerItem(int x, int y, int toward, int sex);
void AddTextItem(int x, int y, QString str, int size, QColor color);
QString GetExpectedImpv(int num);
public slots:
void slotDrawScene();
void slotNewGame();
void slotSaveGame();
void slotLoadGame();
void slotMovePlayerItem(int x, int y);
void slotShop();
void slotPhone(); // create phone menus, like Shop menus
//void slotBook();
void slotDate(int num);
void slotEvent(QString str);
private:
View *view;
QGraphicsScene *scene;
QGraphicsPixmapItem *playerItem;
QAction *clear;
QAction *newGame;
QAction *loadGame;
QAction *saveGame;
QAction *exitGame;
QAction *cheatEnergy;
QAction *cheatIQ;
QAction *cheatEQ;
QAction *cheatMode;
QAction *cheatMoney;
QAction *cheatGrade;
QAction *cheatItem1;
QAction *cheatItem2;
QAction *cheatItem3;
QAction *cheatItem4;
QAction *cheatItem5;
QAction *cheatItem6;
QAction *cheatLike;
QAction *cheatGodMode;
Cheat *cheats;
QAction *ToGo; //外卖
QAction *Chat;
QAction *Game;
};
#endif // MAINWINDOW_H