Class MovementSourceIsHomeValidator
java.lang.Object
games.stendhal.server.entity.mapstuff.game.movevalidator.MovementSourceIsHomeValidator
- All Implemented Interfaces:
MoveValidator
Was this item pulled from its home place?
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(GameBoard board, Player player, BoardToken token, int xIndex, int yIndex) validates a move
-
Constructor Details
-
MovementSourceIsHomeValidator
public MovementSourceIsHomeValidator()
-
-
Method Details
-
validate
Description copied from interface:MoveValidatorvalidates a move- Specified by:
validatein interfaceMoveValidator- Parameters:
board- the game boardplayer- player doing the movetoken- the token which was movedxIndex- target x-indexyIndex- target y-index- Returns:
- true, if the move is valid, false otherwise
-