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