boolean topBackwards = topStep != null && topStep.isThisStepBackwards(); MoveStep mpCandStep = mpCandidate.getLastStep(); boolean mpCandBackwars = mpCandStep != null && mpCandStep.isThisStepBackwards(); if (!(topMP.getEntity() instanceof Infantry) && topBackwards != mpCandBackwars) { break;
@Override public CoordsWithFacing getDestination(MovePath e) { MoveStep lastStep = e.getLastStep(); /* * entity moving backwards is like entity with an opposite facing * moving forwards :) NOOOT */ CoordsWithFacing cfw; if (lastStep != null && lastStep.isThisStepBackwards()) { Facing f = Facing.valueOfInt(e.getFinalFacing()); cfw = new CoordsWithFacing(e.getFinalCoords(), f.getOpposite().getIntValue()); } else { cfw = new CoordsWithFacing(e); } return cfw; }
final int distance = start.distance(land); if (isJumping() && (getEntity().getJumpType() != Mech.JUMP_BOOSTER)) { if (step.isThisStepBackwards() || (step.getDistance() > distance)) { step.setMovementType(EntityMovementType.MOVE_ILLEGAL);
&& isThisStepBackwards() && !(isJumping() && (entity.getJumpType() == Mech.JUMP_BOOSTER)) && (((destAlt != srcAlt) && !game.getOptions().booleanOption(
if (prev.isThisStepBackwards() != isThisStepBackwards()) { setDistance(0); // start over after shifting gears