} catch (IOException excep) { excep.printStackTrace(System.err); doAlertDialog(Messages.getString("ClientGUI.errorSavingFile"), excep.getMessage()); //$NON-NLS-1$
} catch (IOException excep) { excep.printStackTrace(System.err); doAlertDialog(Messages.getString("ClientGUI.errorSavingFile"), excep.getMessage()); //$NON-NLS-1$
} catch (IOException excep) { excep.printStackTrace(System.err); doAlertDialog(Messages.getString("ClientGUI.errorSavingFile"), excep.getMessage()); //$NON-NLS-1$
} catch (IOException excep) { excep.printStackTrace(System.err); doAlertDialog(Messages.getString("ClientGUI.errorSavingFile"), excep.getMessage()); //$NON-NLS-1$
doAlertDialog(Messages.getString("ClientGUI.errorLoadingFile"), excep.getMessage()); //$NON-NLS-1$
clientgui.doAlertDialog(Messages.getString("ChatLounge.ImproperCommand"), Messages.getString("ChatLounge.SelectBotOrPlayer")); //$NON-NLS-1$ //$NON-NLS-2$ return; Client c = getPlayerSelected(); if (c == null) { clientgui.doAlertDialog(Messages.getString("ChatLounge.ImproperCommand"), Messages.getString("ChatLounge.SelectBotOrPlayer")); //$NON-NLS-1$ //$NON-NLS-2$ return; clientgui.doAlertDialog(Messages.getString("ChatLounge.ImproperCommand"), Messages.getString("ChatLounge.SelectBotOrPlayer")); //$NON-NLS-1$ //$NON-NLS-2$ return; clientgui.doAlertDialog(Messages.getString("ChatLounge.ImproperCommand"), Messages.getString("ChatLounge.SelectBotOrPlayer")); //$NON-NLS-1$ //$NON-NLS-2$ return; clientgui.doAlertDialog(Messages.getString("ChatLounge.AlertExistsBot.title"), Messages.getString("ChatLounge.AlertExistsBot.message")); //$NON-NLS-1$ //$NON-NLS-2$ } else { c.connect(); } catch (Exception e) { clientgui.doAlertDialog(Messages.getString("ChatLounge.AlertBot.title"), Messages.getString("ChatLounge.AlertBot.message")); //$NON-NLS-1$ //$NON-NLS-2$ Client c = getPlayerSelected(); if ((c == null) || c.equals(clientgui.getClient())) {
new Integer(choC3nodeCount), new Integer(Entity.MAX_C3_NODES) }); clientgui.doAlertDialog(Messages .getString("CustomMechDialog.NetworkTooBig.title"), //$NON-NLS-1$ message);
/** * The entity spends the rest of its turn spotting */ protected void doSpot() { if ((ce() == null) || (target == null)) { return; } if (ce().isINarcedWith(INarcPod.HAYWIRE)) { String title = Messages .getString("FiringDisplay.CantSpotDialog.title"); //$NON-NLS-1$ String body = Messages .getString("FiringDisplay.CantSpotDialog.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body); return; } // comfirm this action String title = Messages .getString("FiringDisplay.SpotForInderectDialog.title"); //$NON-NLS-1$ String body = Messages .getString("FiringDisplay.SpotForInderectDialog.message"); //$NON-NLS-1$ if (!clientgui.doYesNoDialog(title, body)) { return; } attacks.addElement(new SpotAction(cen, target.getTargetId())); }
@Override public void gameReport(GameReportEvent e) { // Normally the Report Display is updated when the panel is // switched during a phase change. // This update is for reports that get sent at odd times, // currently Tactical Genius reroll requests and when // a player wishes to continue moving after a fall. if (curPanel instanceof ReportDisplay) { // Tactical Genius ((ReportDisplay) curPanel).appendReportTab(getClient().phaseReport); ((ReportDisplay) curPanel).resetReadyButton(); // Check if the player deserves an active reroll button // (possible, if he gets one which he didn't use, and his // opponent got and used one) and if so activates it. if (getClient().getGame().hasTacticalGenius(getClient().getLocalPlayer())) { if (!((ReportDisplay) curPanel).hasRerolled()) { ((ReportDisplay) curPanel).resetRerollButton(); } } // Show a popup to the players so that we know whats up! if (!(getClient() instanceof TestBot)) { doAlertDialog("Tactical Genius Report", e.getReport()); } } else { // Continued movement after getting up if (!(getClient() instanceof TestBot)) { doAlertDialog("Movement Report", e.getReport()); } } }
clientgui.doAlertDialog(Messages.getString("ChatLounge.ExclusiveDeploy.title"), //$NON-NLS-1$ Messages.getString("ChatLounge.ExclusiveDeploy.msg")); //$NON-NLS-1$ return; || ((player.getStartingPos() - 1) == i)) && (player.getId() != client.getLocalPlayer().getId())) { clientgui.doAlertDialog(Messages.getString("ChatLounge.OverlapDeploy.title"), //$NON-NLS-1$ Messages.getString("ChatLounge.OverlapDeploy.msg")); //$NON-NLS-1$ return; msg += player + "\n"; clientgui.doAlertDialog(title, msg); return;
clientgui.doAlertDialog( Messages.getString("PhysicalDisplay.AlertDialog.title"), //$NON-NLS-1$ Messages.getString("PhysicalDisplay.AlertDialog.message")); //$NON-NLS-1$
String body = Messages .getString("MovementDisplay.NoPlaceToUnload.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body); return null;
clientgui.doAlertDialog( Messages.getString("ChatLounge.ExclusiveDeploy.title"), //$NON-NLS-1$ Messages.getString("ChatLounge.ExclusiveDeploy.msg")); //$NON-NLS-1$ && (player.getId() != client.getLocalPlayer() .getId())) { clientgui.doAlertDialog( Messages.getString("ChatLounge.OverlapDeploy.title"), //$NON-NLS-1$ Messages.getString("ChatLounge.OverlapDeploy.msg")); //$NON-NLS-1$
doAlertDialog(Messages.getString("ClientGUI.FatalError.title"), Messages.getString("ClientGUI.FatalError.message") + e); //$NON-NLS-1$ //$NON-NLS-2$ die(); } catch (IOException e) { e.printStackTrace(); doAlertDialog(Messages.getString("ClientGUI.FatalError.title"), Messages.getString("ClientGUI.FatalError.message1") + e); //$NON-NLS-1$ //$NON-NLS-2$ die();
String body = Messages .getString("MovementDisplay.DumpFailure.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body); String body = Messages .getString("MovementDisplay.DumpSuccessful.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body);
if (!clientgui.getClient().getGame() .containsMinefield(ce.getPosition())) { clientgui.doAlertDialog(Messages .getString("MovementDisplay.CantClearMinefield"), //$NON-NLS-1$ Messages.getString("MovementDisplay.NoMinefield")); //$NON-NLS-1$ new Object[] { ((IAero) ce()) clientgui.doAlertDialog(title, body); } else { if (clientgui new Object[] { ((IAero) ce()) clientgui.doAlertDialog(title, body); } else { if (clientgui new Object[] { ((IAero) ce()) clientgui.doAlertDialog(title, body); } else { if (clientgui
|| (deployI && (mf.getType() == Minefield.TYPE_INFERNO))) { clientgui .doAlertDialog( Messages .getString("DeployMinefieldDisplay.IllegalPlacement"), Messages.getString("DeployMinefieldDisplay.DuplicateMinefield")); //$NON-NLS-1$ //$NON-NLS-2$ if (sea && !(deployM || deployI)) { clientgui .doAlertDialog( Messages .getString("DeployMinefieldDisplay.IllegalPlacement"), Messages.getString("DeployMinefieldDisplay.WaterPlacement")); //$NON-NLS-1$ //$NON-NLS-2$
if ((target == null) || target.equals(ce) || !target.isAero()) { clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantRam"), //$NON-NLS-1$ Messages.getString("MovementDisplay.NoTarget")); //$NON-NLS-1$ clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantRam"), //$NON-NLS-1$ toHit.getDesc()); clientgui.doAlertDialog( Messages.getString(ce.isAirborneVTOLorWIGE()? "MovementDisplay.CantRam":"MovementDisplay.CantCharge"), //$NON-NLS-1$ clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantCharge"), //$NON-NLS-1$ toHit.getDesc()); clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantDFA"), Messages.getString("MovementDisplay.NoTarget")); //$NON-NLS-1$ //$NON-NLS-2$ clientgui.doAlertDialog( Messages.getString("MovementDisplay.CantDFA"), //$NON-NLS-1$ toHit.getDesc());
String body = Messages .getString("MovementDisplay.VelocityLeft.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body); return; String body = Messages .getString("MovementDisplay.MicroliteMove.message"); //$NON-NLS-1$ clientgui.doAlertDialog(title, body); return;