Class GameProgressStatistics

java.lang.Object
com.takenoko.stats.GameProgressStatistics

public class GameProgressStatistics extends Object
  • Field Details

    • gameProgress

      private final GameProgress gameProgress
    • totalNbOfRounds

      private int totalNbOfRounds
    • totalNbOfAction

      private int totalNbOfAction
    • actions

      private final HashMap<String,Float> actions
    • totalNbOfRedeemedObjectives

      private int totalNbOfRedeemedObjectives
    • objectives

      private final HashMap<ObjectiveType,Float> objectives
  • Constructor Details

    • GameProgressStatistics

      public GameProgressStatistics(GameProgress gameProgress)
  • Method Details

    • incrementNbOfRounds

      public void incrementNbOfRounds()
    • updateActions

      public void updateActions(Action action)
    • actionPercentage

      public Float actionPercentage(String action)
    • actionAverage

      public Float actionAverage(String action)
    • updateRedeemedOneObjective

      public void updateRedeemedOneObjective(Objective objective)
    • objectiveAverage

      public Float objectiveAverage(ObjectiveType objectiveTypes)
    • updateRedeemedObjectives

      public void updateRedeemedObjectives(List<Objective> objectiveList)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • update

      public void update(TurnHistory turnHistory)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getActions

      public Map<String,Float> getActions()