Package com.takenoko.stats
Class BoardStatistics
java.lang.Object
com.takenoko.stats.BoardStatistics
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoardStatistics
(BoardStatistics boardStatistics) BoardStatistics
(Map<TileColor, Integer> tilesPlaced, Map<ImprovementType, Integer> improvements, float percentageOfIrrigation, float totalNbOfTiles) -
Method Summary
Modifier and TypeMethodDescriptionvoid
analyzeBoard
(Board board) copy()
boolean
float
float
int
hashCode()
toString()
void
updateImprovements
(ImprovementType improvementType) void
updateTilesPlaced
(TileColor tileColor)
-
Field Details
-
tilesPlaced
-
improvements
-
percentageOfIrrigation
public float percentageOfIrrigation -
totalNbOfTiles
public float totalNbOfTiles
-
-
Constructor Details
-
BoardStatistics
-
BoardStatistics
-
BoardStatistics
public BoardStatistics()
-
-
Method Details
-
updateImprovements
-
updateTilesPlaced
-
analyzeBoard
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
getImprovements
-
getPercentageOfIrrigation
public float getPercentageOfIrrigation() -
getTotalNbOfTiles
public float getTotalNbOfTiles()
-