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