Class FieldingChartBAD

java.lang.Object
FieldingChartBAD

public class FieldingChartBAD extends Object
Final chartResult of a ball put in play
Version:
3-14-24
Author:
L Kedigh
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static Random
     
    static final int
     
    static int
     
    static int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    updatePlayerStats(Runners br, PositionPlayer batter, Pitcher pitcher, int runsScored, String type, int numOfOuts)
    Type 1 - runs scored on a HIT case "FC1": //Bouncer Type 2 - run scored on a WALK case "FC2": //Fly Bal type 3 - run scored on an ERROR case "FC3": //Pop Foul, all hold type 4 - run scored on an OUT case "FC4": //Slow Roller Base Hit type 5 - run scored on a DP case "FC5": //Looping Fly type 6 - run that is UNEARNED case "FC6": //grasscutter type 7 - run on HOME RUN case "FC7": //Liner type 8 - STRIKE OUT case "FC8": //Drilled down the line type 9 - DOUBLE case "FC9": //Towering Fly type 10 - TRIPLE case "FC10"://Deep blas type 11 - FC fielder's choice case "FC11"://DP Results type 12 - STRIKE OUT case "FC12"://Stike Out type 13 - FOUL no out.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • FieldingChartBAD

      public FieldingChartBAD()
  • Method Details

    • updatePlayerStats

      public static void updatePlayerStats(Runners br, PositionPlayer batter, Pitcher pitcher, int runsScored, String type, int numOfOuts)
      Type 1 - runs scored on a HIT case "FC1": //Bouncer Type 2 - run scored on a WALK case "FC2": //Fly Bal type 3 - run scored on an ERROR case "FC3": //Pop Foul, all hold type 4 - run scored on an OUT case "FC4": //Slow Roller Base Hit type 5 - run scored on a DP case "FC5": //Looping Fly type 6 - run that is UNEARNED case "FC6": //grasscutter type 7 - run on HOME RUN case "FC7": //Liner type 8 - STRIKE OUT case "FC8": //Drilled down the line type 9 - DOUBLE case "FC9": //Towering Fly type 10 - TRIPLE case "FC10"://Deep blas type 11 - FC fielder's choice case "FC11"://DP Results type 12 - STRIKE OUT case "FC12"://Stike Out type 13 - FOUL no out. case "FC13"://foul type 14 - POP OUT case "FC14"://Pop out type 15 - HOMERUN all the way! case "FC15"://Homerun all the way type 16 - LINER DP option case "FC16"://Liner DP Option type 17 - WALK case "FC17"://Walk FC17