Class FC1_Bouncer

java.lang.Object
FC1_Bouncer

public class FC1_Bouncer extends Object
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.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Represents FIRST BASE and has a value of 0.
    static Scanner
    User input
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getFC1outcome(Runners br, PositionPlayer batter, Pitcher pitcher, int outs)
    Gets an outcome from the FC1 Bouncer Chart.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FIRST

      public static final int FIRST
      Represents FIRST BASE and has a value of 0.
      See Also:
    • SECOND

      public static final int SECOND
      Represents SECOND BASE and has a value of 1.
      See Also:
    • THIRD

      public static final int THIRD
      Represents THIRD BASE and has a value of 2.
      See Also:
    • seedST

      public static int seedST
      Seed used in the Random Number Generator.
    • rndST

      public static Random rndST
      Random Number Generator use to represent dice.
    • input

      public static Scanner input
      User input
  • Constructor Details

    • FC1_Bouncer

      public FC1_Bouncer()
  • Method Details

    • getFC1outcome

      public static String getFC1outcome(Runners br, PositionPlayer batter, Pitcher pitcher, int outs)
      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.