示例#1
0
 public Asteroid(Point pos, Point dir, Size size, eTypeAsteroid typeAsteroid) : base(pos, dir, size)
 {
     ChekBaseObject();
     TypeAsteroid = typeAsteroid;
     Health       = 1;
     rewardPoints = new LabelRewardPoints();
 }
示例#2
0
 public static void WritenInfoRewardPoints(LabelRewardPoints label)
 {
     if (label.lableShow)
     {
         Console.WriteLine($"Награда за уничтожение = {label.rewardPoints}");
     }
 }
示例#3
0
 public void CreateLabelRewardPoints(LabelRewardPoints labelRewardPoints)
 {
     if (labelRewardPoints.lableShow)
     {
         rewardPoints += labelRewardPoints.rewardPoints;
         this.Controls.Add(labelRewardPoints.label);
         rewardPointsLabel.Text = rewardPoints.ToString();
     }
     else
     {
         if (this.Controls.Contains(labelRewardPoints.label))
         {
             this.Controls.Remove(labelRewardPoints.label);
         }
     }
 }
示例#4
0
 public Asteroid(Point pos, Point dir, Size size) : base(pos, dir, size)
 {
     TypeAsteroid = eTypeAsteroid.Asteroid;
     Health       = 1;
     rewardPoints = new LabelRewardPoints();
 }