/** * Returns the logical number of hexes moved the path (does not count turns, * etc). */ public int getHexesMoved() { if (getLastStep() == null) { return 0; } return getLastStep().getDistance(); }
int distTraveled = step.getDistance(); int velocity = step.getVelocity(); if (bv.game.getBoard().onGround()) {
j++; if ((step.getDistance() == 0) && (md.length() != j)) { thrustUsed += step.getMp(); } else { if ((step.getDistance() == 0) && (md.length() == j)) { thrustUsed += step.getMp();
position = prev.getPosition(); distance = prev.getDistance(); mpUsed = prev.mpUsed; totalHeat = prev.totalHeat;
final int distance = start.distance(land); if (isJumping() && (getEntity().getJumpType() != Mech.JUMP_BOOSTER)) { if (step.isThisStepBackwards() || (step.getDistance() > distance)) { step.setMovementType(EntityMovementType.MOVE_ILLEGAL);
altitude = last.getAltitude(); pos = last.getPosition(); distance = last.getDistance();
distance = step.getDistance();