Class BoardStatistics

java.lang.Object
com.takenoko.stats.BoardStatistics

public class BoardStatistics extends Object
  • Field Details

    • tilesPlaced

      public final Map<TileColor,Integer> tilesPlaced
    • improvements

      public final Map<ImprovementType,Integer> improvements
    • percentageOfIrrigation

      public float percentageOfIrrigation
    • totalNbOfTiles

      public float totalNbOfTiles
  • Constructor Details

  • Method Details

    • updateImprovements

      public void updateImprovements(ImprovementType improvementType)
    • updateTilesPlaced

      public void updateTilesPlaced(TileColor tileColor)
    • analyzeBoard

      public void analyzeBoard(Board board)
    • toString

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

      public BoardStatistics copy()
    • equals

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

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

      public Map<ImprovementType,Integer> getImprovements()
    • getPercentageOfIrrigation

      public float getPercentageOfIrrigation()
    • getTotalNbOfTiles

      public float getTotalNbOfTiles()