Package com.takenoko.actions.actors
Class MoveGardenerAction
java.lang.Object
com.takenoko.actions.actors.MoveGardenerAction
- All Implemented Interfaces:
Action
,DefaultAction
Action to move a gardener.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMoveGardenerAction
(PositionVector relativePositionVector) Constructor for the MoveGardenerAction class. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canBePlayed
(Board board) boolean
execute
(Board board, BotManager botManager) Move the Gardener with a vector on the board and display a message.int
hashCode()
-
Field Details
-
relativePositionVector
-
-
Constructor Details
-
MoveGardenerAction
Constructor for the MoveGardenerAction class.- Parameters:
relativePositionVector
- the position vector to move the Gardener
-
-
Method Details
-
canBePlayed
-
execute
Move the Gardener with a vector on the board and display a message. -
equals
-
hashCode
public int hashCode()
-