Class FC1_Bouncer
java.lang.Object
FC1_Bouncer
FC1 Bouncer Class contains a single static method. The method returns an outcome from the chart. Only the
y
charts are used on all Fielding Charts.
Fielding Chart FC1 Bouncer.
- Roll 0 Error
- Roll 1-2 Out NO DP
- Roll 3-5 Out DP option
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Represents FIRST BASE and has a value of 0.static Scanner
User inputstatic Random
Random Number Generator use to represent dice.static final int
Represents SECOND BASE and has a value of 1.static int
Seed used in the Random Number Generator.static final int
Represents THIRD BASE and has a value of 2. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFC1outcome
(Runners br, PositionPlayer batter, Pitcher pitcher, int outs) Gets an outcome from the FC1 Bouncer Chart.
-
Field Details
-
FIRST
public static final int FIRSTRepresents FIRST BASE and has a value of 0.- See Also:
-
SECOND
public static final int SECONDRepresents SECOND BASE and has a value of 1.- See Also:
-
THIRD
public static final int THIRDRepresents THIRD BASE and has a value of 2.- See Also:
-
seedST
public static int seedSTSeed used in the Random Number Generator. -
rndST
Random Number Generator use to represent dice. -
input
User input
-
-
Constructor Details
-
FC1_Bouncer
public FC1_Bouncer()
-
-
Method Details
-
getFC1outcome
Gets an outcome from the FC1 Bouncer Chart.- Parameters:
br
- Represents the three potential runners on a baseball diamond.batter
- The current PositionPlayer at bat.pitcher
- The current pitcher.outs
- Current number of outs when the batter bats.
-