Package com.takenoko.bot
Class PriorityBot
- Direct Known Subclasses:
ColletBot
,GeneralTacticBot
,IrrigationMaster
,RushPandaBot
,SmartApplyWeather
,SmartApplyWind
,SmartChooseAndApplyWeather
,SmartDrawImprovement
,SmartDrawIrrigation
,SmartGardener
,SmartObjective
,SmartPanda
,SmartPattern
,SmartPlaceIrrigation
,SmartStoreIrrigation
,WeatherMaster
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(PriorityBot bot) protected void
addActionWithPriority
(Action action, double priority) protected void
addWithAffine
(PriorityBot bot, double multiplier, double offset) This method is used to add a bot with Affine function offsetprotected void
addWithLinear
(PriorityBot bot, double multiplier) This method is used to add a bot with a Linear function offsetprotected void
addWithOffset
(PriorityBot bot, double offset) This method is used to add a bot with an offsetprotected void
addWithSquash
(PriorityBot bot, double min, double max) This method is used to add a bot and squash the priority between two numberschooseAction
(Board board, BotState botState, History history) This method will allow the player to choose an action to execute.protected PriorityBot
boolean
protected abstract void
fillAction
(Board board, BotState botState, History history) int
hashCode()
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
toString
-
Field Details
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY- See Also:
-
consoleUserInterface
-
-
Constructor Details
-
PriorityBot
public PriorityBot()
-
-
Method Details
-
fillAction
-
compute
-
chooseAction
Description copied from interface:Bot
This method will allow the player to choose an action to execute.- Specified by:
chooseAction
in interfaceBot
- Parameters:
board
- The board of the game.botState
- The state of the bot.- Returns:
- The action chosen by the player.
-
addActionWithPriority
-
add
-
addWithOffset
This method is used to add a bot with an offset -
addWithLinear
This method is used to add a bot with a Linear function offset -
addWithAffine
This method is used to add a bot with Affine function offset -
addWithSquash
This method is used to add a bot and squash the priority between two numbers -
equals
-
hashCode
public int hashCode()
-