Class FC2_FlyBall

java.lang.Object
FC2_FlyBall

public class FC2_FlyBall extends Object
FC2 Fly Ball 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 FC2 Fly Ball.

  • Roll 0-3 Out, 3rd tags
  • Roll 4 Out eveyone holds
  • Roll 5 Out DP option

    Baseball Project

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Represents FIRST BASE and has a value of 0.
    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
    getFC2outcome(Runners br, PositionPlayer batter, Pitcher pitcher, int outs)
    Gets an outcome from the FC2 Fly Ball 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.
  • Constructor Details

    • FC2_FlyBall

      public FC2_FlyBall()
  • Method Details

    • getFC2outcome

      public static String getFC2outcome(Runners br, PositionPlayer batter, Pitcher pitcher, int outs)
      Gets an outcome from the FC2 Fly Ball 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.