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); }
public void GiveBonus(Bonuses profit) { if (profit.Value != -1) { Size += profit.Size; Speed += profit.Speed; Score += profit.Value; ModTime += profit.ModTime; } }
public Apple(Bonuses prop) : this(Element.R.Next(55) + 4, Element.R.Next(40) + 4, prop) { }