Class FieldingChart

java.lang.Object
FieldingChart

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

    Fields
    Modifier and Type
    Field
    Description
    (package private) static Random
     
    (package private) static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getFieldingResult(String s, int roll)
     
    static void
    updateStatsRuns(int r, String type, int out)
    Type 1 - runs scored on a HIT Type 2 - run scored on a WALK type 3 - run scored on an ERROR type 4 - run scored on an OUT type 5 - run scored on a DP type 6 - run that is UNEARNED type 7 - run on HOME RUN type 8 - STRIKE OUT type 9 - DOUBLE type 10 - TRIPLE type 11 - FC Fielder's Choice

    Methods inherited from class java.lang.Object

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

    • tOuts

      static int tOuts
    • rnd

      static Random rnd
  • Constructor Details

    • FieldingChart

      public FieldingChart()
  • Method Details

    • updateStatsRuns

      public static void updateStatsRuns(int r, String type, int out)
      Type 1 - runs scored on a HIT Type 2 - run scored on a WALK type 3 - run scored on an ERROR type 4 - run scored on an OUT type 5 - run scored on a DP type 6 - run that is UNEARNED type 7 - run on HOME RUN type 8 - STRIKE OUT type 9 - DOUBLE type 10 - TRIPLE type 11 - FC Fielder's Choice
    • getFieldingResult

      public static String getFieldingResult(String s, int roll)