Package com.takenoko.actors
Class Gardener
java.lang.Object
com.takenoko.actors.Actor
com.takenoko.actors.Gardener
Gardener class. The gardener is an actor that can move on the board.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGardener()
Constructor for the Gardener class.Gardener
(PositionVector position) Constructor for the Gardener class. -
Method Summary
Methods inherited from class com.takenoko.actors.Actor
equals, getPosition, getPositionVector, getPossibleMoves, hashCode, isMovePossible, move
-
Constructor Details
-
Gardener
Constructor for the Gardener class.- Parameters:
position
- the position of the gardener
-
Gardener
public Gardener()Constructor for the Gardener class. Instantiate the gardener at the origin.
-
-
Method Details