Beispiel #1
0
 public Asteroid(Point pos, Point dir, Size size, eTypeAsteroid typeAsteroid) : base(pos, dir, size)
 {
     ChekBaseObject();
     TypeAsteroid = typeAsteroid;
     Health       = 1;
     rewardPoints = new LabelRewardPoints();
 }
Beispiel #2
0
 public static void WritenInfoRewardPoints(LabelRewardPoints label)
 {
     if (label.lableShow)
     {
         Console.WriteLine($"Награда за уничтожение = {label.rewardPoints}");
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #4
0
 public Asteroid(Point pos, Point dir, Size size) : base(pos, dir, size)
 {
     TypeAsteroid = eTypeAsteroid.Asteroid;
     Health       = 1;
     rewardPoints = new LabelRewardPoints();
 }