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 TypeMethodDescriptionvoid
addStatistics
(SingleBotStatistics value) copy()
boolean
int
int
int
int
getWins()
int
hashCode()
void
void
void
void
reset()
toString()
void
updateActions
(String action) void
updateEatenBambooCounter
(TileColor tileColor) void
updateObjectivesRedeemed
(Objective objective) void
updatePlantedBambooCounter
(TileColor tileColor, int count) void
updateScore
(int toAdd) void
updateTilesPlacedCounter
(TileColor tileColor) void
updateWeathersApplied
(String weather) void
updateWeathersRolled
(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()
-