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