Package com.takenoko.actions.improvement
Class ApplyImprovementFromInventoryAction
java.lang.Object
com.takenoko.actions.improvement.ApplyImprovementAction
com.takenoko.actions.improvement.ApplyImprovementFromInventoryAction
- All Implemented Interfaces:
Action,DefaultAction
public class ApplyImprovementFromInventoryAction
extends ApplyImprovementAction
implements DefaultAction
Action to apply an improvement from the inventory.
-
Field Summary
FieldsFields inherited from class com.takenoko.actions.improvement.ApplyImprovementAction
positionVector -
Constructor Summary
ConstructorsConstructorDescriptionApplyImprovementFromInventoryAction(ImprovementType improvementType, PositionVector positionVector) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBePlayed(Board board, BotState botState) booleanexecute(Board board, BotManager botManager) Executes the action on the board and the bot manager.inthashCode()
-
Field Details
-
improvementType
-
-
Constructor Details
-
ApplyImprovementFromInventoryAction
public ApplyImprovementFromInventoryAction(ImprovementType improvementType, PositionVector positionVector)
-
-
Method Details
-
execute
Description copied from interface:ActionExecutes the action on the board and the bot manager.- Specified by:
executein interfaceAction- Overrides:
executein classApplyImprovementAction- Parameters:
board- the boardbotManager- the bot manager- Returns:
- the action result
-
canBePlayed
-
equals
- Overrides:
equalsin classApplyImprovementAction
-
hashCode
public int hashCode()- Overrides:
hashCodein classApplyImprovementAction
-