示例#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");
  }
示例#2
0
 @Override
 public void refreshDrop() {
   if (overlay != null) {
     overlay.showModal();
     System.out.println("map overlay");
   }
 }
示例#3
0
 private void closeModal() {
   overlay.cancelDrop();
   overlay.closeModal();
 }