Exemple #1
0
  @Override
  public void startDrop(PieceType pieceType, CatanColor pieceColor, boolean isCancelAllowed) {

    overlay = new MapOverlay(map);
    overlay.setController(overlayController);
    overlay.startDrop(pieceType, pieceColor, isCancelAllowed);
    overlay.showModal();
    System.out.println("map overlay");
  }
Exemple #2
0
 @Override
 public void refreshDrop() {
   if (overlay != null) {
     overlay.showModal();
     System.out.println("map overlay");
   }
 }
Exemple #3
0
 private void closeModal() {
   overlay.cancelDrop();
   overlay.closeModal();
 }