Ejemplo n.º 1
0
 public EnemyBullet(PlaneEnemy eb, int speed, int power, double angle, int BulletType, int dx, int dy) : base(eb, SetImage(BulletType), speed, power, angle, dx, dy)//指定在飞机的哪个位置发射
 {
 }
Ejemplo n.º 2
0
 public EnemyBullet(PlaneEnemy eb, int speed, int power, double angle, int BulletType) : base(eb, SetImage(BulletType), speed, power, angle)
 {
 }
Ejemplo n.º 3
0
        //存放敌人子弹图片
        //private static Image imgEB;

        public EnemyBullet(PlaneEnemy eb, int speed, int power, Direction direction) : base(eb, SetImage(eb.EnemyType), speed, power, direction)
        {
        }
Ejemplo n.º 4
0
 public Bullet(PlaneEnemy eb, Image img, int speed, int power, double angle, int dx, int dy) : base(img.Width, img.Height, eb.X + dx, eb.Y + dy, 0, speed, Direction.Up)
 {
     this.imageBullet = img;
     this.Power       = power;
     this.angle       = angle;
 }
Ejemplo n.º 5
0
 public Bullet(PlaneEnemy eb, Image img, int speed, int power, double angle) : base(img.Width, img.Height, eb.X + eb.Width * 40 / 100, eb.Y + eb.Heigth * 35 / 100, 0, speed, Direction.Up)
 {
     this.imageBullet = img;
     this.Power       = power;
     this.angle       = angle;
 }
Ejemplo n.º 6
0
 //
 //敌机子弹构造函数
 public Bullet(PlaneEnemy eb, Image img, int speed, int power, Direction direction) : base(img.Width, img.Height, eb.X + eb.Width * 40 / 100, eb.Y + eb.Heigth * 35 / 100, 0, speed, direction)
 {
     this.imageBullet = img;
     this.Power       = power;
 }