Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Bonus"/> class.
 /// </summary>
 /// <param name="posX">The x position of the bonus.</param>
 /// <param name="posY">The y position of the bonus.</param>
 /// <param name="width">The width of the bonus.</param>
 /// <param name="height">The height of the bonus.</param>
 /// <param name="bonusType">The type of the bonus.</param>
 /// <param name="imagePath">The image of the bonus.</param>
 public Bonus(double posX, double posY, double width, double height, string imagePath, BonusesType bonusType)
     : base(posX, posY, width, height, imagePath)
 {
     try
     {
         BonusType = bonusType;
     }
     catch
     { }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Bonus"/> class.
 /// </summary>
 /// <param name="posX">The x position of the bonus.</param>
 /// <param name="posY">The y position of the bonus.</param>
 /// <param name="width">The width of the bonus.</param>
 /// <param name="height">The height of the bonus.</param>
 /// <param name="bonusType">The type of the bonus.</param>
 /// <param name="imagePath">The image of the bonus.</param>
 public Bonus(double posX, double posY, double width, double height, string imagePath, BonusesType bonusType)
     : base(posX, posY, width, height, imagePath)
 {
     try
     {
         BonusType = bonusType;
     }
     catch
     { }
 }