public override List <Ball> SplitBall(Point p) { List <Ball> NewBalls = new List <Ball>(); Ball one = new BlueBall(new Point(p.X + 20, p.Y - 10), this.Width, this.Height); one.InvertDirection(); Ball two = new BlueBall(new Point(p.X + 20, p.Y - 10), this.Width, this.Height); NewBalls.Add(one); NewBalls.Add(two); return(NewBalls); }
//Metod koj generira topcinja za dadenoto nivo public override void GenerateBalls() { Ball ball = new GreenBall(new Point(Width / 2, Height / 12), Width, Height); ball.InvertDirection(); AddBall(ball); ball = new BlueBall(new Point(Width / 2, Height / 12), Width, Height); AddBall(ball); ball = new GreenBall(new Point(Width / 2, Height / 12), Width, Height); AddBall(ball); ball = new BlueBall(new Point(Width / 2, Height / 12), Width, Height); ball.InvertDirection(); AddBall(ball); }