/** * Returns the number of MPs used in the path */ public int getMpUsed() { if (getLastStep() != null) { return getLastStep().getMpUsed(); } return 0; }
String costString = null; StringBuffer costStringBuf = new StringBuffer(); costStringBuf.append(step.getMpUsed());
public int getMovementheatBuildup() { MoveStep last = getLastStep(); if (last == null) { return 0; } int heat = last.getTotalHeat(); int move = 0; switch (last.getMovementType(true)) { case MOVE_WALK: case MOVE_VTOL_WALK: move = 1; break; case MOVE_RUN: case MOVE_VTOL_RUN: move = 2; break; case MOVE_SPRINT: case MOVE_VTOL_SPRINT: move = 3; break; case MOVE_JUMP: move = getEntity().getJumpHeat(last.getMpUsed()); break; default: move = 1000; } return heat + move; // illegal? }
if (p.getLastStep().getMpUsed() > sp.path.getEntity() .getRunMP()) { continue; // ignore if I'm out of MP
private void updateThrustButton() { final Entity ce = ce(); if (null == ce) { return; } if (!ce.isAero()) { return; } // only allow thrust if there is thrust left to spend int mpUsed = 0; MoveStep last = cmd.getLastStep(); if (null != last) { mpUsed = last.getMpUsed(); } if (mpUsed >= ce.getRunMP()) { setThrustEnabled(false); } else { setThrustEnabled(true); } return; }
currentStep.getMpUsed() <= mp.getEntity().getRunMP() - turnCost) { MovePath tiltedPath = straightLine.clone(); tiltedPath.addStep(stepType);
if (step.getMpUsed() > maxSafeMP) { roll.append(new PilotingRollData(getId(), 0, "used more MPs than at 1G possible"));
if (isInfantry && ((getMpUsed() - getMp()) == 0)) { setFirstStep(true); if (bDumping && (getMpUsed() > tmpSafeTh) && !a.isRandomMove()) { return; if (getMpUsed() <= tmpSafeTh) { movementType = EntityMovementType.MOVE_SAFE_THRUST; } else if (getMpUsed() <= entity.getRunMPwithoutMASC()) { movementType = EntityMovementType.MOVE_OVER_THRUST; } else if (a.isRandomMove()) { && (getMpUsed() <= entity.getJumpMPWithTerrain()) && !isProne() && !isHullDown() if (getMpUsed() <= tmpWalkMP) { if ((getEntity().getMovementMode() == EntityMovementMode.VTOL || getEntity().getMovementMode() == EntityMovementMode.WIGE) } else if ((((getMpUsed() <= runMP) && isMASCUsed) || (getMpUsed() <= runMPnoMASC)) && !isRunProhibited()) { } else if ((getMpUsed() <= runMP) && !isRunProhibited() && !isEvading()) { setUsingMASC(true); && ((getMpUsed() <= sprintMPnoMASC) || ((getMpUsed() <= sprintMP) && isMASCUsed))
|| (moveType == EntityMovementType .MOVE_VTOL_RUN)) { if (step.getMpUsed() > entity.getRunMP(false, false, false)) { rollTarget = entity.checkMovedTooFast(step, overallMoveType); checkNag(rollTarget, nagReport, psrList); int origWalkMP = entity.getWalkMP(false, false); int gravWalkMP = entity.getWalkMP(); if (step.getMpUsed() > entity.getJumpMP(false)) { rollTarget = entity.checkMovedTooFast(step, overallMoveType); checkNag(rollTarget, nagReport, psrList); if (step.getMpUsed() > entity.getSprintMP(false, false, false)) { rollTarget = entity.checkMovedTooFast(step, overallMoveType); checkNag(rollTarget, nagReport, psrList); if ((step.getMpUsed() > entity.getRunMP(false, false, false)) && !step.isOnlyPavement()) { rollTarget = entity.checkMovedTooFast(step, overallMoveType); else if (step.getMpUsed() > (entity.getRunMP(false, false, false) + 1)) { rollTarget = entity.checkMovedTooFast(step,