Пример #1
0
 public Apple(double x, double y, Bonuses prop) : base(x, y)
 {
     this.Size  = 4;
     this._prop = prop;
     this.NewRect();
     Rect.Fill = prop.Brush;
     //Debug.WriteLine("new Point | "+this.id+" | " + X + " : " + Y);
 }
Пример #2
0
 public void GiveBonus(Bonuses profit)
 {
     if (profit.Value != -1)
     {
         Size    += profit.Size;
         Speed   += profit.Speed;
         Score   += profit.Value;
         ModTime += profit.ModTime;
     }
 }
Пример #3
0
 public Apple(Bonuses prop) : this(Element.R.Next(55) + 4, Element.R.Next(40) + 4, prop)
 {
 }