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 booleanDefaultAction.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 booleanMoveGardenerAction.canBePlayed(Board board) static booleanMovePandaAction.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 booleanApplyImprovementFromInventoryAction.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 booleanDrawIrrigationAction.canBePlayed(Board board) static booleanPlaceIrrigationFromInventoryAction.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 booleanDrawObjectiveAction.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 booleanDrawTileAction.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 booleanActor.isMovePossible(PositionVector vector, Board board) Check if the move is possible.protected booleanPanda.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 PriorityBotprotected voidColletBot.fillAction(Board board, BotState botState, History history) protected voidGeneralTacticBot.fillAction(Board board, BotState botState, History history) protected voidIrrigationMaster.fillAction(Board board, BotState botState, History history) protected abstract voidPriorityBot.fillAction(Board board, BotState botState, History history) protected voidRushPandaBot.fillAction(Board board, BotState botState, History history) protected voidWeatherMaster.fillAction(Board board, BotState botState, History history) private ActionFullRandomBot.getRandomApplyImprovementAction(Board board) private ActionFullRandomBot.getRandomApplyImprovementFromInventoryAction(Board board, BotState botState) private ActionFullRandomBot.getRandomDrawAction(Board board) private ActionFullRandomBot.getRandomDrawObjectiveAction(Board board) FullRandomBot.getRandomForcedMovePandaAction(Board board) private ActionFullRandomBot.getRandomGrowBambooAction(Board board) private ActionFullRandomBot.getRandomMoveGardenerAction(Board board) FullRandomBot.getRandomMovePandaAction(Board board) private ActionFullRandomBot.getRandomPlaceIrrigationAction(Board board) private ActionFullRandomBot.getRandomPlaceIrrigationFromInventoryAction(Board board) private ActionFullRandomBot.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) voidSmartPlaceIrrigation.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 voidSmartApplyWeather.fillAction(Board board, BotState botState, History history) protected voidSmartApplyWind.fillAction(Board board, BotState botState, History history) protected voidSmartChooseAndApplyWeather.fillAction(Board board, BotState botState, History history) protected voidSmartDrawImprovement.fillAction(Board board, BotState botState, History history) protected voidSmartDrawIrrigation.fillAction(Board board, BotState botState, History history) protected voidSmartGardener.fillAction(Board board, BotState botState, History history) protected voidSmartObjective.fillAction(Board board, BotState botState, History history) protected voidSmartPanda.fillAction(Board board, BotState botState, History history) protected voidSmartPattern.fillAction(Board board, BotState botState, History history) protected voidSmartPlaceIrrigation.fillAction(Board board, BotState botState, History history) protected voidSmartStoreIrrigation.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 BoardNode.boardThe field for theboardrecord 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 intIrrigationPathFinding.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 aNoderecord 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 TypeMethodDescriptionvoidAsk for the bot to choose an action based on his algorithm and then execute the returned action.voidActionManager.resetAvailableActions(Board board, BotState botState) reset the available actionsvoidBotState.resetAvailableActions(Board board) reset the available actionsvoidupdate the objectivesvoidActionManager.updateDefaultActions(Board board, BotState botState) update to the defaults actionsvoidObjectiveManager.updateObjectives(Board board, BotState botState) update the objectivesvoidBotState.verifyObjectives(Board board) for each objective, check if it is achievedvoidObjectiveManager.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 TypeMethodDescriptionvoidBambooLayer.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.booleanBambooLayer.isEatableAt(PositionVector positionVector, Board board) booleanBambooLayer.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 TypeMethodDescriptionvoidIrrigationLayer.placeIrrigation(EdgePosition edgePosition, Board board) private voidIrrigationLayer.updateAvailableIrrigationChannelPositions(EdgePosition edgePosition, Board board) voidIrrigationLayer.updateAvailableIrrigationChannelPositions(PositionVector positionOfTilePlaced, Board board) private voidIrrigationLayer.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 TypeMethodDescriptionvoidTileLayer.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 TypeMethodDescriptionfloatEmperorObjective.getCompletion(Board board, BotState botState) floatMultipleGardenerObjective.getCompletion(Board board, BotState botState) abstract floatObjective.getCompletion(Board board, BotState botState) floatPandaObjective.getCompletion(Board board, BotState botState) floatPatternObjective.getCompletion(Board board, BotState botState) floatSingleGardenerObjective.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 booleanSingleGardenerObjective.match(Board board, PositionVector positionVector, Tile tile) voidvoidabstract voidVerify state of the objective.voidvoidvoid -
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) voidCloudy.revert(Board board, BotManager botManager) voidQuestionMark.revert(Board board, BotManager botManager) voidRainy.revert(Board board, BotManager botManager) voidStormy.revert(Board board, BotManager botManager) voidSunny.revert(Board board, BotManager botManager) abstract voidWeather.revert(Board board, BotManager botManager) voidWindy.revert(Board board, BotManager botManager)