//重写构造函数,计算飞机的子弹的在图片的位置
 public HeroZiDan(PlaneFather pf, int power, int speed) : base(pf, pf.X + pf.Width / 4 - 4, pf.Y, img, speed, power)
 {
 }
예제 #2
0
 //重写构造函数,计算飞机的子弹的在图片的位置
 public EnemyZiDan(PlaneFather pf, int type) : base(pf, pf.X + pf.Width / 2, pf.Y + pf.Height, img, GetSpeedWithType(type), GetPwoerWithType(type))
 {
     this.Type = Type;
 }
예제 #3
0
 //构造函数重写
 public ZiDan(PlaneFather pf, int x, int y, Image img, int speed, int power) : base(x, y, img.Width, img.Height, speed, 0, pf.Dir)
 {
     this.imgZiDan = img;
     this.Power    = power;
 }