-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbullet.h
More file actions
121 lines (100 loc) · 2.18 KB
/
bullet.h
File metadata and controls
121 lines (100 loc) · 2.18 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifndef BULLET_H
#define BULLET_H
#include<fly.h>
#include<cmath>
class bullet:public Fly
{
public:
bullet();
int xspeed;
int yspeed;//这两项是暂时处理直线运动用的
int attack;//攻击力
virtual void move();
void move(int xx,int yy);
//有极大的改动空间!!!还需研究更一般的轨迹运动
};
class plane_bullet:public bullet{
public:
plane_bullet();
};
class bomb:public plane_bullet{
public:
bomb(int x_,int y_);
};
class RM_main_bullet:public plane_bullet
{
public:
RM_main_bullet();
RM_main_bullet(int x_,int y_);
};
class RM_assist_bullet:public plane_bullet{
public:
RM_assist_bullet();
RM_assist_bullet(int x_,int y_);
};
class MRS_main_bullet:public plane_bullet{
public:
MRS_main_bullet();
MRS_main_bullet(int x_,int y_);
};
class MRS_assist_bullet:public plane_bullet{
public:
MRS_assist_bullet();
MRS_assist_bullet(int x_,int y_);
};
class enemy_bullet:public bullet{
public:
enemy_bullet();
enemy_bullet(int x_,int y_);
};
class red_small_bullet:public enemy_bullet{
public:
red_small_bullet();
red_small_bullet(int x_,int y_);
};
class blue_small_bullet:public enemy_bullet{
public:
blue_small_bullet();
blue_small_bullet(int x_,int y_);
};
class blue_middle_bullet:public enemy_bullet{
public:
blue_middle_bullet();
blue_middle_bullet(int x_,int y_);
};
class red_big_bullet:public enemy_bullet{
public:
red_big_bullet();
red_big_bullet(int x_,int y_);
};
class yellow_star_bullet:public enemy_bullet{
public:
yellow_star_bullet();
yellow_star_bullet(int x_,int y_);
};
class yellow_ellipse_bullet:public enemy_bullet{
public:
yellow_ellipse_bullet();
yellow_ellipse_bullet(int x_,int y_);
};
class orange_tri_bullet:public enemy_bullet{
public:
orange_tri_bullet();
orange_tri_bullet(int x_,int y_);
};
class green_sword_bullet:public enemy_bullet{
public:
green_sword_bullet();
green_sword_bullet(int x_,int y_);
};
class white_mi_bullet:public enemy_bullet{
public:
white_mi_bullet();
white_mi_bullet(int x_,int y_);
};
class Power:public bullet{
public:
Power();
Power(int x_,int y_);
};
#endif // BULLET_H