Uses of Class
com.takenoko.vector.PositionVector
Packages that use PositionVector
Package
Description
-
Uses of PositionVector in com.takenoko.actions.actors
Fields in com.takenoko.actions.actors declared as PositionVectorModifier and TypeFieldDescriptionprivate final PositionVectorMoveGardenerAction.relativePositionVectorprivate final PositionVectorMovePandaAction.relativePositionVectorConstructors in com.takenoko.actions.actors with parameters of type PositionVectorModifierConstructorDescriptionForcedMovePandaAction(PositionVector relativePositionVector) Constructor for the MovePandaAction class.MoveGardenerAction(PositionVector relativePositionVector) Constructor for the MoveGardenerAction class.MovePandaAction(PositionVector relativePositionVector) Constructor for the MovePandaAction class. -
Uses of PositionVector in com.takenoko.actions.bamboo
Fields in com.takenoko.actions.bamboo declared as PositionVectorModifier and TypeFieldDescription(package private) final PositionVectorGrowBambooAction.positionConstructors in com.takenoko.actions.bamboo with parameters of type PositionVector -
Uses of PositionVector in com.takenoko.actions.improvement
Fields in com.takenoko.actions.improvement declared as PositionVectorModifier and TypeFieldDescriptionprotected final PositionVectorApplyImprovementAction.positionVectorConstructors in com.takenoko.actions.improvement with parameters of type PositionVectorModifierConstructorDescriptionApplyImprovementAction(PositionVector positionVector) ApplyImprovementFromInventoryAction(ImprovementType improvementType, PositionVector positionVector) -
Uses of PositionVector in com.takenoko.actions.tile
Fields in com.takenoko.actions.tile declared as PositionVectorConstructors in com.takenoko.actions.tile with parameters of type PositionVectorModifierConstructorDescriptionPlaceTileAction(Tile tile, PositionVector positionVector) Constructor for the PlaceTileAction class.PlaceTileWithImprovementAction(Tile tile, PositionVector positionVector, ImprovementType improvementType) -
Uses of PositionVector in com.takenoko.actors
Fields in com.takenoko.actors declared as PositionVectorMethods in com.takenoko.actors that return PositionVectorMethods in com.takenoko.actors that return types with arguments of type PositionVectorModifier 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.Actor.move(PositionVector vector, Board board) Move the panda with a vector and try to eat bamboo.Methods in com.takenoko.actors with parameters of type PositionVectorModifier and TypeMethodDescriptionprotected 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.Constructors in com.takenoko.actors with parameters of type PositionVectorModifierConstructorDescriptionprotectedActor(PositionVector position) Gardener(PositionVector position) Constructor for the Gardener class.Panda(PositionVector position) Constructor for the Panda class. -
Uses of PositionVector in com.takenoko.bot.utils.pathfinding.gardener
Methods in com.takenoko.bot.utils.pathfinding.gardener that return types with arguments of type PositionVectorModifier and TypeMethodDescriptionstatic @NotNull Map<Objective,List<PositionVector>> GardenerPathfinding.getGardenerMoves(Board board, BotState botState) -
Uses of PositionVector in com.takenoko.bot.utils.pathfinding.irrigation
Method parameters in com.takenoko.bot.utils.pathfinding.irrigation with type arguments of type PositionVectorModifier and TypeMethodDescriptionprivate static intIrrigationPathFinding.calculateHCost(Board board, List<PositionVector> tilesToIrrigate, EdgePosition placedEdgePosition) static List<EdgePosition>IrrigationPathFinding.getShortestIrrigationPath(List<PositionVector> tilesToIrrigate, Board board) -
Uses of PositionVector in com.takenoko.bot.utils.pathfinding.panda
Methods in com.takenoko.bot.utils.pathfinding.panda that return types with arguments of type PositionVectorModifier and TypeMethodDescriptionstatic Map<PandaObjective,List<PositionVector>> PandaPathfinding.getPandaMoves(Board board, BotState botState) static List<PositionVector>PandaPathfinding.getPandaMovesThatEatBamboo(Board board) -
Uses of PositionVector in com.takenoko.engine
Methods in com.takenoko.engine that return PositionVectorModifier and TypeMethodDescriptionBoard.getGardenerPosition()Get the Position of the GardenerBoard.getPandaPosition()Get the Position of the PandaMethods in com.takenoko.engine that return types with arguments of type PositionVectorModifier and TypeMethodDescriptionBoard.getAvailableImprovementPositions()Board.getAvailableTilePositions()Returns the available tile positions.Board.getGardenerPossibleMoves()Returns possible moves for the gardener.Board.getGrowablePositions()Board.getPandaPossibleMoves()Returns possible moves for the panda.Board.getTiles()Returns a copy of the hashmap of tiles.Board.getTilesWithoutPond()Returns a copy of the hashmap of tiles without the pond.Board.moveGardener(PositionVector vector) Move the gardener with a vector.Board.movePanda(PositionVector vector) Move the panda with a vector.Methods in com.takenoko.engine with parameters of type PositionVectorModifier and TypeMethodDescriptionvoidBoard.applyImprovement(ImprovementType improvementType, PositionVector positionVector) voidBoard.eatBamboo(PositionVector positionVector) Eat a bamboo from a tile.Board.getBambooAt(PositionVector positionVector) Get the bamboo stack at the position.Board.getTileAt(PositionVector positionVector) Returns the tile at the position.Board.growBamboo(PositionVector positionVector) Grow bamboo on a tile.booleanBoard.isBambooEatableAt(PositionVector positionVector) Check if the bamboo at the position is eatable.booleanBoard.isBambooGrowableAt(PositionVector positionVector) booleanBoard.isIrrigatedAt(PositionVector position) booleanBoard.isTile(PositionVector positionVector) Returns if the position is a tile.Board.moveGardener(PositionVector vector) Move the gardener with a vector.Board.movePanda(PositionVector vector) Move the panda with a vector.Board.placeTile(Tile tile, PositionVector position) Place a tile on the board.voidBoard.updateAvailableIrrigationChannelPositions(PositionVector position) -
Uses of PositionVector in com.takenoko.layers.bamboo
Fields in com.takenoko.layers.bamboo with type parameters of type PositionVectorModifier and TypeFieldDescriptionprivate final HashMap<PositionVector,LayerBambooStack> BambooLayer.bambooMethods in com.takenoko.layers.bamboo that return types with arguments of type PositionVectorMethods in com.takenoko.layers.bamboo with parameters of type PositionVectorModifier 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.growBamboo(PositionVector positionVector, Board board) Grow bamboo on a tile.booleanBambooLayer.isEatableAt(PositionVector positionVector, Board board) booleanBambooLayer.isGrowableAt(PositionVector positionVector, Board board) -
Uses of PositionVector in com.takenoko.layers.irrigation
Fields in com.takenoko.layers.irrigation declared as PositionVectorModifier and TypeFieldDescriptionprivate final @NotNull PositionVectorIrrigationChannelPosition.leftTilePositionThe field for theleftTilePositionrecord component.private final @NotNull PositionVectorIrrigationChannelPosition.rightTilePositionThe field for therightTilePositionrecord component.Fields in com.takenoko.layers.irrigation with type parameters of type PositionVectorModifier and TypeFieldDescriptionprivate Map<PositionVector,Boolean> IrrigationLayer.irrigationprivate final Set<PositionVector>EdgePosition.positionsMethods in com.takenoko.layers.irrigation that return PositionVectorModifier and TypeMethodDescriptionEdgePosition.getLeftTilePosition()EdgePosition.getRightTilePosition()@NotNull PositionVectorIrrigationChannelPosition.leftTilePosition()Returns the value of theleftTilePositionrecord component.@NotNull PositionVectorIrrigationChannelPosition.rightTilePosition()Returns the value of therightTilePositionrecord component.Methods in com.takenoko.layers.irrigation with parameters of type PositionVectorModifier and TypeMethodDescriptionstatic List<EdgePosition>EdgePosition.getEdgePositions(PositionVector positionVector) booleanIrrigationLayer.isIrrigatedAt(PositionVector positionVector) voidIrrigationLayer.updateAvailableIrrigationChannelPositions(PositionVector positionOfTilePlaced, Board board) Constructors in com.takenoko.layers.irrigation with parameters of type PositionVectorModifierConstructorDescriptionEdgePosition(@NotNull PositionVector leftTilePosition, @NotNull PositionVector rightTilePosition) IrrigationChannelPosition(@NotNull PositionVector leftTilePosition, @NotNull PositionVector rightTilePosition) Creates an instance of aIrrigationChannelPositionrecord class.Constructor parameters in com.takenoko.layers.irrigation with type arguments of type PositionVector -
Uses of PositionVector in com.takenoko.layers.tile
Fields in com.takenoko.layers.tile with type parameters of type PositionVectorModifier and TypeFieldDescription(package private) final HashSet<PositionVector>TileLayer.availableTilePositions(package private) final HashMap<PositionVector,Tile> TileLayer.tilesMethods in com.takenoko.layers.tile that return types with arguments of type PositionVectorModifier and TypeMethodDescriptionTileLayer.getAvailableImprovementPositions(Board board) Get the positions where an improvement can be placed.TileLayer.getAvailableTilePositions()Get the available tiles.TileLayer.getTiles()Get the tiles on the board.TileLayer.getTilesWithoutPond()Get the tile placed on the board but without the pond.Methods in com.takenoko.layers.tile with parameters of type PositionVectorModifier and TypeMethodDescriptionvoidTileLayer.applyImprovement(ImprovementType improvementType, PositionVector positionVector, Board board) TileLayer.getTileAt(PositionVector positionVector) Return the tile at the given position.private booleanTileLayer.isPositionAvailable(PositionVector position) Check if a position is available.booleanTileLayer.isTile(PositionVector position) Check if there is a tile at the given position.TileLayer.placeTile(Tile tile, PositionVector position, Board board) Place a tile on the board.private voidTileLayer.updateAvailableTilePositions(PositionVector position) Update the available tile positions after placing a tile. -
Uses of PositionVector in com.takenoko.objective
Methods in com.takenoko.objective that return types with arguments of type PositionVectorModifier and TypeMethodDescriptionSingleGardenerObjective.getEligiblePositions(Board board) SingleGardenerObjective.getMatchingPositions(Board board) MultipleGardenerObjective.getPositionsToComplete(Board board) SingleGardenerObjective.getPositionsToComplete(Board board) PandaObjective.getWhereToEatToComplete(Board board, BotState botState) Methods in com.takenoko.objective with parameters of type PositionVectorModifier and TypeMethodDescriptionprivate booleanSingleGardenerObjective.match(Board board, PositionVector positionVector, Tile tile) -
Uses of PositionVector in com.takenoko.shape
Fields in com.takenoko.shape declared as PositionVectorFields in com.takenoko.shape with type parameters of type PositionVectorModifier and TypeFieldDescription(package private) final HashMap<PositionVector,Set<Shape>> Pattern.cacheprivate final Map<PositionVector,Tile> Shape.elementsMethods in com.takenoko.shape that return PositionVectorModifier and TypeMethodDescriptionprivate static PositionVectorShape.findOrigin(Map<PositionVector, Tile> shape) Find the rotation origin of the shape.Methods in com.takenoko.shape that return types with arguments of type PositionVectorMethods in com.takenoko.shape with parameters of type PositionVectorModifier and TypeMethodDescriptionShape.rotate60(PositionVector rotationOrigin) Returns a new shape with the same pattern but rotated 60 degrees around the given rotation rotationOrigin.Shape.translate(PositionVector vector) Returns a new shape with the same pattern but translated by the given vector.Method parameters in com.takenoko.shape with type arguments of type PositionVectorModifier and TypeMethodDescriptionprivate static PositionVectorShape.findOrigin(Map<PositionVector, Tile> shape) Find the rotation origin of the shape.Constructors in com.takenoko.shape with parameters of type PositionVectorModifierConstructorDescriptionShape(PositionVector... vectors) Constructor of the Shape class.Shape(Map<PositionVector, Tile> shape, PositionVector defaultRotationOrigin) Constructor for the Shape class.Constructor parameters in com.takenoko.shape with type arguments of type PositionVectorModifierConstructorDescriptionPattern(List<Map.Entry<PositionVector, Tile>> toList) Shape(Map<PositionVector, Tile> shape) Constructor for the Shape class.Shape(Map<PositionVector, Tile> shape, PositionVector defaultRotationOrigin) Constructor for the Shape class. -
Uses of PositionVector in com.takenoko.vector
Methods in com.takenoko.vector that return PositionVector