Example #1
0
 public Missile(Planet planet, Missile_Launcher parent)
     : base(planet, parent, BITMAP.FromFile(@"Picture\Sky\Weapon\Missile.png"), 5, 1.0)
 {
     SPEED.X = parent.BULLET_SPEED;
     SPEED.Y = parent.ANGLE;
     TURN_PERIOD = parent.MISSILE_TURN_PERIOD;
 }
 public Missile_Launcher_Set(Planet parent, double turnaroundperiod, double bulletspeed, double fireperiod, double damage, double endurance, double gyrationradius, int count, double interval)
     : base(null, null, default(Point), default(ImagePasteMode))
 {
     MISSILE_LAUNCHERS = new Missile_Launcher[count];
     for (int i = 0; i < count; i++)
     {
         MISSILE_LAUNCHERS[i] = new Missile_Launcher(parent, turnaroundperiod, bulletspeed, fireperiod, damage, endurance,gyrationradius, interval * (i - 0.5 * (count - 1)));
     }
 }