-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplane.h
More file actions
47 lines (40 loc) · 910 Bytes
/
plane.h
File metadata and controls
47 lines (40 loc) · 910 Bytes
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 PLANE_H
#define PLANE_H
#include<QPixmap>
#include<bullet.h>
//自机
class Plane:public Fly{
public:
Plane();
QPixmap slow_pic;//低速贴图
bool shooting;
virtual void shoot();
int CD;
int nowCD;//与射击频率有关
bool shifted;//shift切换低速并显示判定点
bool spell;
int spellCD;
int nowspellCD;
bomb* spellcard;
void move(int dx,int dy);
int t_h;
int t_w;//自机的判定点只占贴图小部分,这里单独记录贴图高、宽
plane_bullet* main_bullet[MAX_SHOOT];
plane_bullet* assist_bullet[MAX_SHOOT]={};
int deathCD;//与子弹碰撞间隔
int nowdeathCD;
int movespeed;//控制移速
int power;
};
class Plane0:public Plane{
public:
Plane0();
virtual void shoot();
};
class Plane1:public Plane{
public:
Plane1();
virtual void shoot();
};
//2位自机
#endif // PLANE_H