/** * Sends a data packet indicating the chosen movement. */ private synchronized void moveTo(MovePath md) { md.clipToPossible(); if (ce().hasUMU()) { getClient().sendUpdateEntity(ce()); } getClient().moveEntity(cen, md); }
gear = GEAR_TURN; } else if (args[1].equalsIgnoreCase("CLIP")) { cmd.clipToPossible(); return "Path cliped to whats actually possible. " + ce().toString() + " is now in gear "
private void removeLastStep() { cmd.removeLastStep(); if (cmd.length() == 0) { clear(); if ((gear == MovementDisplay.GEAR_JUMP) && (!cmd.isJumping())) { cmd.addStep(MoveStepType.START_JUMP); } else if (ce().isConvertingNow()) { cmd.addStep(MoveStepType.CONVERT_MODE); } } else { clientgui.bv.drawMovementData(ce(), cmd); clientgui.bv.setWeaponFieldofFire(ce(), cmd); // Set the button's label to "Done" // if the entire move is impossible. MovePath possible = cmd.clone(); possible.clipToPossible(); if (possible.length() == 0) { butDone.setText("<html><b>" + Messages.getString("MovementDisplay.Done") + "</b></html>"); //$NON-NLS-1$ } } updateButtons(); }
possible.clipToPossible(); if (possible.length() == 0) { butDone.setText("<html><b>" cmd.clipToPossible();
cmd.clipToPossible(); if ((cmd.length() == 0) && !ce().isAirborne() && GUIPreferences.getInstance().getNagForNoAction()) {