C# Class FourthTry.Frame

Show file Open project: cuipengfei/Spikes Class Usage Examples

Public Methods

Method Description
Frame ( int firstBall, int secondBall ) : System

Protected Methods

Method Description
CalculateScore ( ) : int
CheckExtra ( ) : void
CheckSingleBall ( int ball, string name ) : void

Private Methods

Method Description
Bonus ( ) : int
CheckBallLimit ( ) : void
Next1Ball ( ) : int
Next2Ball ( ) : int

Method Details

CalculateScore() protected method

protected CalculateScore ( ) : int
return int

CheckExtra() protected method

protected CheckExtra ( ) : void
return void

CheckSingleBall() protected method

protected CheckSingleBall ( int ball, string name ) : void
ball int
name string
return void

Frame() public method

public Frame ( int firstBall, int secondBall ) : System
firstBall int
secondBall int
return System