示例#1
0
 public Cannon_Set(Planet parent, double turnaroundperiod, double bulletspeed, double fireperiod, double damage, double endurance, int count, double interval)
     : base(null, null, default(Point), default(ImagePasteMode))
 {
     CANNONS = new Cannon[count];
     for (int i = 0; i < count; i++)
     {
         CANNONS[i] = new Cannon(parent, turnaroundperiod, bulletspeed, fireperiod, damage, endurance, interval * (i - 0.5 * (count - 1)));
     }
 }
示例#2
0
        public CannonBall(Planet planet, Cannon parent)
            : base(planet, parent, BITMAP.FromFile(@"Picture\Sky\Weapon\Cannon Ball.png"), 2, 0.5)
        {

        }