Uses of Class
com.takenoko.engine.Board
Packages that use Board
Package
Description
-
Uses of Board in com.takenoko.actions
Methods in com.takenoko.actions with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
DefaultAction.canBePlayed
(Board board, BotState botState, Class<? extends DefaultAction> actionClass) Action.execute
(Board board, BotManager botManager) Executes the action on the board and the bot manager. -
Uses of Board in com.takenoko.actions.actors
Methods in com.takenoko.actions.actors with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
MoveGardenerAction.canBePlayed
(Board board) static boolean
MovePandaAction.canBePlayed
(Board board) MoveGardenerAction.execute
(Board board, BotManager botManager) Move the Gardener with a vector on the board and display a message.MovePandaAction.execute
(Board board, BotManager botManager) Move the panda with a vector on the board and display a message. -
Uses of Board in com.takenoko.actions.bamboo
Methods in com.takenoko.actions.bamboo with parameters of type Board -
Uses of Board in com.takenoko.actions.improvement
Methods in com.takenoko.actions.improvement with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
ApplyImprovementFromInventoryAction.canBePlayed
(Board board, BotState botState) ApplyImprovementAction.execute
(Board board, BotManager botManager) ApplyImprovementFromInventoryAction.execute
(Board board, BotManager botManager) DrawImprovementAction.execute
(Board board, BotManager botManager) StoreImprovementAction.execute
(Board board, BotManager botManager) -
Uses of Board in com.takenoko.actions.irrigation
Methods in com.takenoko.actions.irrigation with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
DrawIrrigationAction.canBePlayed
(Board board) static boolean
PlaceIrrigationFromInventoryAction.canBePlayed
(Board board, BotState botState) DrawIrrigationAction.execute
(Board board, BotManager botManager) PlaceIrrigationAction.execute
(Board board, BotManager botManager) PlaceIrrigationFromInventoryAction.execute
(Board board, BotManager botManager) StoreIrrigationInInventoryAction.execute
(Board board, BotManager botManager) -
Uses of Board in com.takenoko.actions.objective
Methods in com.takenoko.actions.objective with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
DrawObjectiveAction.canBePlayed
(Board board, BotState botState) DrawObjectiveAction.execute
(Board board, BotManager botManager) RedeemObjectiveAction.execute
(Board board, BotManager botManager) -
Uses of Board in com.takenoko.actions.tile
Methods in com.takenoko.actions.tile with parameters of type BoardModifier and TypeMethodDescriptionstatic boolean
DrawTileAction.canBePlayed
(Board board) DrawTileAction.execute
(Board board, BotManager botManager) PlaceTileAction.execute
(Board board, BotManager botManager) Place the tile on the board and display a message.PlaceTileWithImprovementAction.execute
(Board board, BotManager botManager) Apply the improvement on tile then place the tile on the board and display a message. -
Uses of Board in com.takenoko.actions.weather
Methods in com.takenoko.actions.weather with parameters of type BoardModifier and TypeMethodDescriptionChooseAndApplyWeatherAction.execute
(Board board, BotManager botManager) ChooseIfApplyWeatherAction.execute
(Board board, BotManager botManager) -
Uses of Board in com.takenoko.actors
Methods in com.takenoko.actors with parameters of type BoardModifier and TypeMethodDescriptionabstract Map<PositionVector,
LayerBambooStack> After the panda moves, he can eat bamboo if there is bamboo on the tile he moved to.Actor.getPossibleMoves
(Board board) Returns possible moves for the actor.protected boolean
Actor.isMovePossible
(PositionVector vector, Board board) Check if the move is possible.protected boolean
Panda.isMovePossible
(PositionVector vector, Board board) If the weather is a storm, the panda can move wherever he wants.Actor.move
(PositionVector vector, Board board) Move the panda with a vector and try to eat bamboo. -
Uses of Board in com.takenoko.bot
Methods in com.takenoko.bot with parameters of type BoardModifier and TypeMethodDescriptionBot.chooseAction
(Board board, BotState botState, History history) This method will allow the player to choose an action to execute.FullRandomBot.chooseAction
(Board board, BotState botState, History history) PriorityBot.chooseAction
(Board board, BotState botState, History history) protected PriorityBot
protected void
ColletBot.fillAction
(Board board, BotState botState, History history) protected void
GeneralTacticBot.fillAction
(Board board, BotState botState, History history) protected void
IrrigationMaster.fillAction
(Board board, BotState botState, History history) protected abstract void
PriorityBot.fillAction
(Board board, BotState botState, History history) protected void
RushPandaBot.fillAction
(Board board, BotState botState, History history) protected void
WeatherMaster.fillAction
(Board board, BotState botState, History history) private Action
FullRandomBot.getRandomApplyImprovementAction
(Board board) private Action
FullRandomBot.getRandomApplyImprovementFromInventoryAction
(Board board, BotState botState) private Action
FullRandomBot.getRandomDrawAction
(Board board) private Action
FullRandomBot.getRandomDrawObjectiveAction
(Board board) FullRandomBot.getRandomForcedMovePandaAction
(Board board) private Action
FullRandomBot.getRandomGrowBambooAction
(Board board) private Action
FullRandomBot.getRandomMoveGardenerAction
(Board board) FullRandomBot.getRandomMovePandaAction
(Board board) private Action
FullRandomBot.getRandomPlaceIrrigationAction
(Board board) private Action
FullRandomBot.getRandomPlaceIrrigationFromInventoryAction
(Board board) private Action
FullRandomBot.getRandomPlaceTileAction
(Board board) -
Uses of Board in com.takenoko.bot.unitary
Methods in com.takenoko.bot.unitary with parameters of type BoardModifier and TypeMethodDescriptionSmartPattern.analyzeBoardToFindPlaceToCompleteShapeOfPatternObjective
(Board board, BotState botState) void
SmartPlaceIrrigation.analyzeIrrigationToPlaceToCompletePatternObjective
(Board board, BotState botState) This method will add the edge position to the irrigationToPlace list so that the bot knows that he has to place them in order to complete is pattern objectivprotected void
SmartApplyWeather.fillAction
(Board board, BotState botState, History history) protected void
SmartApplyWind.fillAction
(Board board, BotState botState, History history) protected void
SmartChooseAndApplyWeather.fillAction
(Board board, BotState botState, History history) protected void
SmartDrawImprovement.fillAction
(Board board, BotState botState, History history) protected void
SmartDrawIrrigation.fillAction
(Board board, BotState botState, History history) protected void
SmartGardener.fillAction
(Board board, BotState botState, History history) protected void
SmartObjective.fillAction
(Board board, BotState botState, History history) protected void
SmartPanda.fillAction
(Board board, BotState botState, History history) protected void
SmartPattern.fillAction
(Board board, BotState botState, History history) protected void
SmartPlaceIrrigation.fillAction
(Board board, BotState botState, History history) protected void
SmartStoreIrrigation.fillAction
(Board board, BotState botState, History history) SmartPlaceIrrigation.getCandidateShapes
(Board board, BotState botState) Get all the shape matching the patterns on the current pattern objectives -
Uses of Board in com.takenoko.bot.utils.pathfinding.gardener
Methods in com.takenoko.bot.utils.pathfinding.gardener with parameters of type BoardModifier and TypeMethodDescriptionstatic @NotNull Map<Objective,
List<PositionVector>> GardenerPathfinding.getGardenerMoves
(Board board, BotState botState) -
Uses of Board in com.takenoko.bot.utils.pathfinding.irrigation
Fields in com.takenoko.bot.utils.pathfinding.irrigation declared as BoardModifier and TypeFieldDescriptionprivate final Board
Node.board
The field for theboard
record component.Methods in com.takenoko.bot.utils.pathfinding.irrigation that return BoardMethods in com.takenoko.bot.utils.pathfinding.irrigation with parameters of type BoardModifier and TypeMethodDescriptionprivate static int
IrrigationPathFinding.calculateHCost
(Board board, List<PositionVector> tilesToIrrigate, EdgePosition placedEdgePosition) static List<EdgePosition>
IrrigationPathFinding.getShortestIrrigationPath
(List<PositionVector> tilesToIrrigate, Board board) Constructors in com.takenoko.bot.utils.pathfinding.irrigation with parameters of type BoardModifierConstructorDescription(package private)
Node
(Board board, int gCost, int hCost, Node parent, EdgePosition edgePosition) Creates an instance of aNode
record class. -
Uses of Board in com.takenoko.bot.utils.pathfinding.panda
Methods in com.takenoko.bot.utils.pathfinding.panda with parameters of type BoardModifier and TypeMethodDescriptionstatic Map<PandaObjective,
List<PositionVector>> PandaPathfinding.getPandaMoves
(Board board, BotState botState) static List<PositionVector>
PandaPathfinding.getPandaMovesThatEatBamboo
(Board board) -
Uses of Board in com.takenoko.engine
Fields in com.takenoko.engine declared as BoardMethods in com.takenoko.engine that return BoardMethods in com.takenoko.engine with parameters of type BoardModifier and TypeMethodDescriptionvoid
Ask for the bot to choose an action based on his algorithm and then execute the returned action.void
ActionManager.resetAvailableActions
(Board board, BotState botState) reset the available actionsvoid
BotState.resetAvailableActions
(Board board) reset the available actionsvoid
update the objectivesvoid
ActionManager.updateDefaultActions
(Board board, BotState botState) update to the defaults actionsvoid
ObjectiveManager.updateObjectives
(Board board, BotState botState) update the objectivesvoid
BotState.verifyObjectives
(Board board) for each objective, check if it is achievedvoid
ObjectiveManager.verifyObjectives
(Board board, BotState botState) for each objective, check if it is achievedConstructors in com.takenoko.engine with parameters of type BoardModifierConstructorDescriptionGameEngine
(int numberOfRounds, Board board, ConsoleUserInterface consoleUserInterface, GameState gameState, List<BotManager> botManagerList, Scoreboard scoreboard, BotStatistics botStatistics, History history) -
Uses of Board in com.takenoko.layers.bamboo
Methods in com.takenoko.layers.bamboo with parameters of type BoardModifier and TypeMethodDescriptionvoid
BambooLayer.eatBamboo
(PositionVector positionVector, Board board) Eat a bamboo from a tile.BambooLayer.getBambooAt
(PositionVector positionVector, Board board) Get the number of bamboo on a tile.BambooLayer.getGrowablePositions
(Board board) BambooLayer.growBamboo
(PositionVector positionVector, Board board) Grow bamboo on a tile.boolean
BambooLayer.isEatableAt
(PositionVector positionVector, Board board) boolean
BambooLayer.isGrowableAt
(PositionVector positionVector, Board board) -
Uses of Board in com.takenoko.layers.irrigation
Methods in com.takenoko.layers.irrigation with parameters of type BoardModifier and TypeMethodDescriptionvoid
IrrigationLayer.placeIrrigation
(EdgePosition edgePosition, Board board) private void
IrrigationLayer.updateAvailableIrrigationChannelPositions
(EdgePosition edgePosition, Board board) void
IrrigationLayer.updateAvailableIrrigationChannelPositions
(PositionVector positionOfTilePlaced, Board board) private void
IrrigationLayer.updateAvailableIrrigationChannelPositions
(Stream<EdgePosition> edgePositionStream, Board board) -
Uses of Board in com.takenoko.layers.tile
Methods in com.takenoko.layers.tile with parameters of type BoardModifier and TypeMethodDescriptionvoid
TileLayer.applyImprovement
(ImprovementType improvementType, PositionVector positionVector, Board board) TileLayer.getAvailableImprovementPositions
(Board board) Get the positions where an improvement can be placed.TileLayer.placeTile
(Tile tile, PositionVector position, Board board) Place a tile on the board. -
Uses of Board in com.takenoko.objective
Methods in com.takenoko.objective with parameters of type BoardModifier and TypeMethodDescriptionfloat
EmperorObjective.getCompletion
(Board board, BotState botState) float
MultipleGardenerObjective.getCompletion
(Board board, BotState botState) abstract float
Objective.getCompletion
(Board board, BotState botState) float
PandaObjective.getCompletion
(Board board, BotState botState) float
PatternObjective.getCompletion
(Board board, BotState botState) float
SingleGardenerObjective.getCompletion
(Board board, BotState botState) SingleGardenerObjective.getEligiblePositions
(Board board) SingleGardenerObjective.getMatchingPositions
(Board board) MultipleGardenerObjective.getPositionsToComplete
(Board board) SingleGardenerObjective.getPositionsToComplete
(Board board) PatternObjective.getShapeToCompletePatternObjective
(Board board) PandaObjective.getWhereToEatToComplete
(Board board, BotState botState) private boolean
SingleGardenerObjective.match
(Board board, PositionVector positionVector, Tile tile) void
void
abstract void
Verify state of the objective.void
void
void
-
Uses of Board in com.takenoko.shape
Methods in com.takenoko.shape with parameters of type BoardModifier and TypeMethodDescriptionPattern.getShapesToCompletePatternObjective
(Board board) Pattern.getSubsetMatchPattern
(Board board, int startingSize, boolean ignoreIrrigation) Method to match a shape on the board. -
Uses of Board in com.takenoko.stats
Methods in com.takenoko.stats with parameters of type Board -
Uses of Board in com.takenoko.weather
Methods in com.takenoko.weather with parameters of type BoardModifier and TypeMethodDescriptionCloudy.apply
(Board board, BotManager botManager) QuestionMark.apply
(Board board, BotManager botManager) Rainy.apply
(Board board, BotManager botManager) Stormy.apply
(Board board, BotManager botManager) Sunny.apply
(Board board, BotManager botManager) Weather.apply
(Board board, BotManager botManager) Code to be executed when the weather is rolled and modifiers applied.Windy.apply
(Board board, BotManager botManager) void
Cloudy.revert
(Board board, BotManager botManager) void
QuestionMark.revert
(Board board, BotManager botManager) void
Rainy.revert
(Board board, BotManager botManager) void
Stormy.revert
(Board board, BotManager botManager) void
Sunny.revert
(Board board, BotManager botManager) abstract void
Weather.revert
(Board board, BotManager botManager) void
Windy.revert
(Board board, BotManager botManager)