Interface GameStatistic<T>

Type Parameters:
T - statistic type. We usually work with integers.
All Superinterfaces:
Comparable<GameStatistic<T>>

public interface GameStatistic<T> extends Comparable<GameStatistic<T>>
Game statistic.
  • Method Details

    • getValue

      T getValue()
      Current value.
    • getDisplayValue

      String getDisplayValue(@Nullable @Nullable Language language)
      Value displayed in tops etc.
      Parameters:
      language - - message receiver.
    • compareTo

      int compareTo(@NotNull @NotNull GameStatistic<T> o)
      Comparison for tops.
      Specified by:
      compareTo in interface Comparable<T>
      Parameters:
      o - the object to be compared.