Inheritance: INotifyPropertyChanged
Example #1
0
        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);
        }
Example #3
0
 public ScoreEventArgs(Paddle.Side side, Ball ball)
 {
     Side = side;
     Ball = ball;
 }
Example #4
0
 public void AddPaddle(Paddle.Side _side, bool isComputerControlled, int kinectUserId)
 {
     var x = new Paddle(_side, isComputerControlled, kinectUserId);
     Paddles.Add(x);
 }