Package com.takenoko.actions.actors
Class MovePandaAction
java.lang.Object
com.takenoko.actions.actors.MovePandaAction
- All Implemented Interfaces:
Action
,DefaultAction
- Direct Known Subclasses:
ForcedMovePandaAction
This class represents the action of moving the panda.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMovePandaAction
(PositionVector relativePositionVector) Constructor for the MovePandaAction class. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canBePlayed
(Board board) boolean
execute
(Board board, BotManager botManager) Move the panda with a vector on the board and display a message.int
hashCode()
toString()
-
Field Details
-
relativePositionVector
-
-
Constructor Details
-
MovePandaAction
Constructor for the MovePandaAction class.- Parameters:
relativePositionVector
- the position vector to move the panda
-
-
Method Details
-
canBePlayed
-
execute
Move the panda with a vector on the board and display a message. -
toString
-
equals
-
hashCode
public int hashCode()
-