@Override public void clicked(PieceVisual pieceVisual, GameBoardVisual board) { if (possiblePosition(pieceVisual)) { placeRobber.setNewLocation(((HexVisual) pieceVisual).hex().location()); moveRobberGameBehaviour.pickedRobberSpot(this); } }
public PlaceRobberBehaviour(MoveRobberGameBehaviour moveRobberGameBehaviour) { super(); this.moveRobberGameBehaviour = moveRobberGameBehaviour; this.placeRobber = moveRobberGameBehaviour.getPlaceRobber(); }