public void addWeapon(ChargeAttackAction attack) { final String roll = attack.toHit(this.boardView1.game).getValueAsString(); weaponDescs.add(Messages.getString( "BoardView1.charge", new Object[] { roll })); //$NON-NLS-1$ }
public void addWeapon(ProtomechPhysicalAttackAction attack) { final String roll = attack.toHit(this.boardView1.game).getValueAsString(); weaponDescs.add(Messages.getString( "BoardView1.proto", new Object[] { roll })); //$NON-NLS-1$ }
public void addWeapon(PushAttackAction attack) { final String roll = attack.toHit(this.boardView1.game).getValueAsString(); weaponDescs.add(Messages.getString( "BoardView1.push", new Object[] { roll })); //$NON-NLS-1$ }
public void addWeapon(DfaAttackAction attack) { final String roll = attack.toHit(this.boardView1.game).getValueAsString(); weaponDescs.add(Messages.getString( "BoardView1.DFA", new Object[] { roll })); //$NON-NLS-1$ }
public void addWeapon(ClubAttackAction attack) { final String roll = attack.toHit(this.boardView1.game).getValueAsString(); final String club = attack.getClub().getName(); weaponDescs.add(Messages.getString( "BoardView1.hit", new Object[] { club, roll })); //$NON-NLS-1$ }
"PhysicalDisplay.ChooseClubDialog.line", //$NON-NLS-1$ new Object[] { club.getName(), toHit.getValueAsString(), dmgString });
/** * Adds a weapon to this attack */ public void addWeapon(WeaponAttackAction attack) { final Entity entity = this.boardView1.game.getEntity(attack.getEntityId()); final WeaponType wtype = (WeaponType) entity.getEquipment( attack.getWeaponId()).getType(); final String roll = attack.toHit(this.boardView1.game).getValueAsString(); final String table = attack.toHit(this.boardView1.game).getTableDesc(); weaponDescs .add(wtype.getName() + Messages.getString("BoardView1.needs") + roll + " " + table); //$NON-NLS-1$ }
this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), KickAttackAction.LEFT).getValueAsString(); rollRight = KickAttackAction.toHit( this.boardView1.game, this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), KickAttackAction.RIGHT).getValueAsString(); bufer = Messages .getString( this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), KickAttackAction.LEFT).getValueAsString(); bufer = Messages.getString( "BoardView1.kickLeft", new Object[] { rollLeft }); //$NON-NLS-1$ this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), KickAttackAction.RIGHT).getValueAsString(); bufer = Messages.getString( "BoardView1.kickRight", new Object[] { rollRight }); //$NON-NLS-1$
this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), PunchAttackAction.LEFT, false).getValueAsString(); rollRight = PunchAttackAction.toHit( this.boardView1.game, this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), PunchAttackAction.RIGHT, false).getValueAsString(); bufer = Messages .getString( this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), PunchAttackAction.LEFT, false).getValueAsString(); bufer = Messages.getString( "BoardView1.punchLeft", new Object[] { rollLeft }); //$NON-NLS-1$ this.boardView1.game.getTarget(attack.getTargetType(), attack.getTargetId()), PunchAttackAction.RIGHT, false).getValueAsString(); bufer = Messages .getString(
private void explosives() { ToHitData explo = LayExplosivesAttackAction.toHit(clientgui.getClient() .getGame(), cen, target); String title = Messages.getString( "PhysicalDisplay.LayExplosivesAttackDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.LayExplosivesAttackDialog.message", new Object[] {//$NON-NLS-1$ explo.getValueAsString(), new Double(Compute.oddsAbove(explo.getValue())), explo.getDesc() }); if (clientgui.doYesNoDialog(title, message)) { disableButtons(); attacks.addElement(new LayExplosivesAttackAction(cen, target .getTargetType(), target.getTargetId())); ready(); } }
clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString()); setFireEnabled(false); } else if (toHit.getValue() == TargetRoll.AUTOMATIC_FAIL) { clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString()); setFireEnabled(true); } else { clientgui.mechD.wPan.wToHitR .setText(toHit.getValueAsString() + " (" + Compute.oddsAbove(
.getString( "PhysicalDisplay.GrappleDialog.message", new Object[] { //$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( "PhysicalDisplay.CounterGrappleDialog.message", new Object[] { //$NON-NLS-1$ target.getDisplayName(), toHit.getValueAsString(), new Double( Compute.oddsAbove(
/** * Thrash at the target, unless the player cancels the action. */ void thrash() { ThrashAttackAction act = new ThrashAttackAction(cen, target.getTargetType(), target.getTargetId()); ToHitData toHit = act.toHit(clientgui.getClient().getGame()); String title = Messages .getString( "PhysicalDisplay.TrashDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.TrashDialog.message", new Object[] {//$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING))), toHit.getDesc(), ThrashAttackAction.getDamageFor(ce()) + toHit.getTableDesc() }); // Give the user to cancel the attack. if (clientgui.doYesNoDialog(title, message)) { disableButtons(); attacks.addElement(act); ready(); } }
private void breakGrapple() { ToHitData toHit = BreakGrappleAttackAction.toHit(clientgui.getClient() .getGame(), cen, target); String title = Messages.getString( "PhysicalDisplay.BreakGrappleDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.BreakGrappleDialog.message", new Object[] { //$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING))), toHit.getDesc() }); if (clientgui.doYesNoDialog(title, message)) { disableButtons(); // declare searchlight, if possible if (GUIPreferences.getInstance().getAutoDeclareSearchlight()) { doSearchlight(); } attacks.addElement(new BreakGrappleAttackAction(cen, target .getTargetType(), target.getTargetId())); ready(); } }
/** * slice 'em up with your vibroclaws */ public void vibroclawatt() { BAVibroClawAttackAction act = new BAVibroClawAttackAction(cen, target.getTargetType(), target.getTargetId()); ToHitData toHit = act.toHit(clientgui.getClient().getGame()); String title = Messages .getString( "PhysicalDisplay.BAVibroClawDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.BAVibroClawDialog.message", new Object[] {//$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING))), toHit.getDesc(), ce().getVibroClaws() + toHit.getTableDesc() }); // Give the user to cancel the attack. if (clientgui.doYesNoDialog(title, message)) { disableButtons(); attacks.addElement(act); ready(); } }
/** * Trip that target! */ void trip() { ToHitData toHit = TripAttackAction.toHit(clientgui.getClient() .getGame(), cen, target); String title = Messages .getString( "PhysicalDisplay.TripDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.TripDialog.message", new Object[] { //$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING))), toHit.getDesc() }); if (clientgui.doYesNoDialog(title, message)) { disableButtons(); // declare searchlight, if possible if (GUIPreferences.getInstance().getAutoDeclareSearchlight()) { doSearchlight(); } attacks.addElement(new TripAttackAction(cen, target.getTargetType(), target.getTargetId())); ready(); } }
/** * Push that target! */ void push() { ToHitData toHit = PushAttackAction.toHit(clientgui.getClient() .getGame(), cen, target); String title = Messages .getString( "PhysicalDisplay.PushDialog.title", new Object[] { target.getDisplayName() }); //$NON-NLS-1$ String message = Messages .getString( "PhysicalDisplay.PushDialog.message", new Object[] {//$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove( toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING))), toHit.getDesc() }); if (clientgui.doYesNoDialog(title, message)) { disableButtons(); // declare searchlight, if possible if (GUIPreferences.getInstance().getAutoDeclareSearchlight()) { doSearchlight(); } attacks.addElement(new PushAttackAction(cen, target.getTargetType(), target.getTargetId(), target .getPosition())); ready(); } }
+ Messages.getString("FiringDisplay.bearingsOnlyWrongPhase"); } else if (toHit.getValue() == TargetRoll.AUTOMATIC_FAIL) { str += " Automatic Failure: " + toHit.getValueAsString(); } else if (toHit.getValue() > 12) { str += " Can't hit: " + toHit.getValueAsString(); } else { str += " To hit: " + toHit.getValueAsString() + " (" + Compute.oddsAbove(toHit.getValue(), ce().hasAbility(OptionsConstants.PILOT_APTITUDE_GUNNERY)) + "%)";
.getString( "PhysicalDisplay.ProtoMechAttackDialog.message", new Object[] {//$NON-NLS-1$ proto.getValueAsString(), new Double( Compute.oddsAbove(
.getString( "PhysicalDisplay.JumpJetDialog.message", new Object[] { //$NON-NLS-1$ toHit.getValueAsString(), new Double( Compute.oddsAbove(