protected virtual void OnScored(Paddle.Side side, Ball ball) { EventHandler<ScoreEventArgs> handler = Scored; if (handler != null) { handler(this, new ScoreEventArgs(side, ball)); } }
public void AddPaddle(Paddle.Side _side, bool isComputerControlled, int kinectUserId) { var x = new Paddle(_side, isComputerControlled, kinectUserId); Paddles.Add(x); }
public ScoreEventArgs(Paddle.Side side, Ball ball) { Side = side; Ball = ball; }