Package com.takenoko.layers.bamboo
Class BambooLayer
java.lang.Object
com.takenoko.layers.bamboo.BambooLayer
BambooLayer class. The bamboo layer contains the number of bamboo on each tile.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
eatBamboo
(PositionVector positionVector, Board board) Eat a bamboo from a tile.boolean
getBambooAt
(PositionVector positionVector, Board board) Get the number of bamboo on a tile.getGrowablePositions
(Board board) growBamboo
(PositionVector positionVector, Board board) Grow bamboo on a tile.int
hashCode()
boolean
isEatableAt
(PositionVector positionVector, Board board) boolean
isGrowableAt
(PositionVector positionVector, Board board)
-
Field Details
-
bamboo
-
-
Constructor Details
-
BambooLayer
public BambooLayer()Constructor for the BambooLayer class. -
BambooLayer
-
-
Method Details
-
growBamboo
Grow bamboo on a tile. By default, the number of bamboo is 1 if the tile is irrigated.- Parameters:
positionVector
- the position of the tileboard
- the board- Returns:
- the number of bamboo grown
-
getBambooAt
Get the number of bamboo on a tile.- Parameters:
positionVector
- the position of the tileboard
- the board- Returns:
- the number of bamboo on the tile
-
eatBamboo
Eat a bamboo from a tile.- Parameters:
positionVector
- the position of the tileboard
- the board
-
copy
-
equals
-
hashCode
public int hashCode() -
isEatableAt
-
isGrowableAt
-
getGrowablePositions
-