forked from WuYufeng233/Tank3000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.h
65 lines (53 loc) · 1.18 KB
/
data.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
#ifndef DATA_H
#define DATA_H
#define Row 13//13行13列
#define Col 13
#define PixWidth 60//图片尺寸
#define PixHeight 60
#define SegWidth 60//地图分块尺寸
#define SegHeight 60
#define Width 60*13//全地图尺寸
#define Height 60*13
#define MissileWidth 17
#define MissileHeight 17
class fullMap;
class Tank;
class Base;
class Missile;
class Boss;
#include<QList>
#include<QImage>
struct Glb
{
fullMap *map;
Tank *player;
Boss *boss;
//npc坦克
QList<Tank*>enemytanks;
QList<Missile*>playerMissiles;
//地图块图片
QImage images[5];
//坦克图片上下左右的图片
QImage playerTank[4];
QImage enemyTank1[4];
QImage enemyTank2[4];
QImage enemyTank3[4];
QImage missile;
QImage bossPix;
//玩家总得分
int score;
//三个点的坦克数
int enemy1TanksNum;
int enemy2TanksNum;
int enemy3TanksNum;
//已击毁敌方坦克总数
int enemyTanksDestroyed;
//玩家坦克生命数
int playerTanksNum;
//当前关卡数
int stage;
//总关卡数
int stagesNum;
};
extern Glb glb;
#endif // DATA_H