Package com.takenoko.stats
Class SingleBotStatistics
java.lang.Object
com.takenoko.stats.SingleBotStatistics
This class represents an extended list of statistics for a specific BotManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleBotStatistics(int wins, int losses, int finalScore) SingleBotStatistics(SingleBotStatistics singleBotStatistics) SingleBotStatistics(Map<String, Integer> numericStats, Map<ObjectiveType, Integer> objectivesRedeemed, Map<TileColor, org.apache.commons.lang3.tuple.MutablePair<Integer, Integer>> bambooCounter, Map<TileColor, Integer> tilesPlaced, Map<String, org.apache.commons.lang3.tuple.MutablePair<Integer, Integer>> weathers, Map<String, Integer> actions, int totalNbOfAction) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatistics(SingleBotStatistics value) copy()booleanintintintintgetWins()inthashCode()voidvoidvoidvoidreset()toString()voidupdateActions(String action) voidupdateEatenBambooCounter(TileColor tileColor) voidupdateObjectivesRedeemed(Objective objective) voidupdatePlantedBambooCounter(TileColor tileColor, int count) voidupdateScore(int toAdd) voidupdateTilesPlacedCounter(TileColor tileColor) voidupdateWeathersApplied(String weather) voidupdateWeathersRolled(String weather)
-
Field Details
-
WINS
- See Also:
-
LOSSES
- See Also:
-
IRRIGATIONS_PLACED
- See Also:
-
FINAL_SCORE
- See Also:
-
totalNbOfAction
private int totalNbOfAction -
numericStats
-
objectivesRedeemed
-
bambooCounter
-
tilesPlaced
-
weathers
-
actions
-
-
Constructor Details
-
SingleBotStatistics
public SingleBotStatistics(Map<String, Integer> numericStats, Map<ObjectiveType, Integer> objectivesRedeemed, Map<TileColor, org.apache.commons.lang3.tuple.MutablePair<Integer, Integer>> bambooCounter, Map<TileColor, Integer> tilesPlaced, Map<String, org.apache.commons.lang3.tuple.MutablePair<Integer, Integer>> weathers, Map<String, Integer> actions, int totalNbOfAction) -
SingleBotStatistics
-
SingleBotStatistics
public SingleBotStatistics(int wins, int losses, int finalScore) -
SingleBotStatistics
public SingleBotStatistics()
-
-
Method Details
-
incrementWins
public void incrementWins() -
incrementLosses
public void incrementLosses() -
incrementIrrigationsPlaced
public void incrementIrrigationsPlaced() -
updateScore
public void updateScore(int toAdd) -
updateObjectivesRedeemed
-
updateEatenBambooCounter
-
updatePlantedBambooCounter
-
updateTilesPlacedCounter
-
updateWeathersRolled
-
updateWeathersApplied
-
updateActions
-
copy
-
reset
public void reset() -
toString
-
equals
-
hashCode
public int hashCode() -
getNumericStats
-
getTotalNbOfAction
public int getTotalNbOfAction() -
getObjectivesRedeemed
-
getBambooCounter
-
getTilesPlaced
-
getWeathers
-
getActions
-
addStatistics
-
getWins
public int getWins() -
getLosses
public int getLosses() -
getFinalScore
public int getFinalScore()
-