C# Class Kinect.Pong.Models.PongGame

Datei anzeigen Open project: atosorigin/Kinect

Public Methods

Method Description
AddBall ( ) : void
AddPaddle ( Paddle _side, bool isComputerControlled, int kinectUserId ) : void
Reset ( ) : void
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
OnScored ( Paddle side, Ball ball ) : void
OnUpdated ( ) : void

Private Methods

Method Description
Initialize ( ) : void
PongGame ( ) : System
_gameLoop_Process ( object sender, EventArgs e ) : void
ball_Scored ( object sender, ScoreEventArgs e ) : void

Method Details

AddBall() public method

public AddBall ( ) : void
return void

AddPaddle() public method

public AddPaddle ( Paddle _side, bool isComputerControlled, int kinectUserId ) : void
_side Paddle
isComputerControlled bool
kinectUserId int
return void

OnScored() protected method

protected OnScored ( Paddle side, Ball ball ) : void
side Paddle
ball Ball
return void

OnUpdated() protected method

protected OnUpdated ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void