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 PositionVector
MoveGardenerAction.relativePositionVector
private final PositionVector
MovePandaAction.relativePositionVector
Constructors 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 PositionVector
GrowBambooAction.position
Constructors 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 PositionVector
ApplyImprovementAction.positionVector
Constructors 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 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.Constructors in com.takenoko.actors with parameters of type PositionVectorModifierConstructorDescriptionprotected
Actor
(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 int
IrrigationPathFinding.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 TypeMethodDescriptionvoid
Board.applyImprovement
(ImprovementType improvementType, PositionVector positionVector) void
Board.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.boolean
Board.isBambooEatableAt
(PositionVector positionVector) Check if the bamboo at the position is eatable.boolean
Board.isBambooGrowableAt
(PositionVector positionVector) boolean
Board.isIrrigatedAt
(PositionVector position) boolean
Board.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.void
Board.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.bamboo
Methods in com.takenoko.layers.bamboo that return types with arguments of type PositionVectorMethods in com.takenoko.layers.bamboo with parameters of type PositionVectorModifier 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.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 PositionVector in com.takenoko.layers.irrigation
Fields in com.takenoko.layers.irrigation declared as PositionVectorModifier and TypeFieldDescriptionprivate final @NotNull PositionVector
IrrigationChannelPosition.leftTilePosition
The field for theleftTilePosition
record component.private final @NotNull PositionVector
IrrigationChannelPosition.rightTilePosition
The field for therightTilePosition
record component.Fields in com.takenoko.layers.irrigation with type parameters of type PositionVectorModifier and TypeFieldDescriptionprivate Map<PositionVector,
Boolean> IrrigationLayer.irrigation
private final Set<PositionVector>
EdgePosition.positions
Methods in com.takenoko.layers.irrigation that return PositionVectorModifier and TypeMethodDescriptionEdgePosition.getLeftTilePosition()
EdgePosition.getRightTilePosition()
@NotNull PositionVector
IrrigationChannelPosition.leftTilePosition()
Returns the value of theleftTilePosition
record component.@NotNull PositionVector
IrrigationChannelPosition.rightTilePosition()
Returns the value of therightTilePosition
record component.Methods in com.takenoko.layers.irrigation with parameters of type PositionVectorModifier and TypeMethodDescriptionstatic List<EdgePosition>
EdgePosition.getEdgePositions
(PositionVector positionVector) boolean
IrrigationLayer.isIrrigatedAt
(PositionVector positionVector) void
IrrigationLayer.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 aIrrigationChannelPosition
record 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.tiles
Methods 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 TypeMethodDescriptionvoid
TileLayer.applyImprovement
(ImprovementType improvementType, PositionVector positionVector, Board board) TileLayer.getTileAt
(PositionVector positionVector) Return the tile at the given position.private boolean
TileLayer.isPositionAvailable
(PositionVector position) Check if a position is available.boolean
TileLayer.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 void
TileLayer.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 boolean
SingleGardenerObjective.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.cache
private final Map<PositionVector,
Tile> Shape.elements
Methods in com.takenoko.shape that return PositionVectorModifier and TypeMethodDescriptionprivate static PositionVector
Shape.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 PositionVector
Shape.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