Package com.takenoko.actions.tile
Class PlaceTileWithImprovementAction
java.lang.Object
com.takenoko.actions.tile.PlaceTileAction
com.takenoko.actions.tile.PlaceTileWithImprovementAction
- All Implemented Interfaces:
Action
This class represents the action of placing a tile on the board with an improvement from the
inventory.
-
Field Summary
Fields inherited from class com.takenoko.actions.tile.PlaceTileAction
tile
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceTileWithImprovementAction
(Tile tile, PositionVector positionVector, ImprovementType improvementType) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Board board, BotManager botManager) Apply the improvement on tile then place the tile on the board and display a message.Methods inherited from class com.takenoko.actions.tile.PlaceTileAction
equals, hashCode
-
Constructor Details
-
PlaceTileWithImprovementAction
public PlaceTileWithImprovementAction(Tile tile, PositionVector positionVector, ImprovementType improvementType)
-
-
Method Details
-
execute
Apply the improvement on tile then place the tile on the board and display a message.- Specified by:
execute
in interfaceAction
- Overrides:
execute
in classPlaceTileAction
- Parameters:
board
- the boardbotManager
- the bot manager- Returns:
- the action result
-