static int turnForLateralShift(int shift, int direction) { if (direction == MovePath.STEP_FORWARDS) { switch (shift) { case MovePath.STEP_LATERAL_LEFT : return MovePath.STEP_TURN_LEFT; case MovePath.STEP_LATERAL_RIGHT : return MovePath.STEP_TURN_RIGHT; default : return shift; } } else { switch (shift) { case MovePath.STEP_TURN_LEFT : return MovePath.STEP_LATERAL_RIGHT_BACKWARDS; case MovePath.STEP_TURN_RIGHT : return MovePath.STEP_LATERAL_LEFT_BACKWARDS; default : return shift; }
static int turnForLateralShift(int shift) { switch (shift) { case MovePath.STEP_LATERAL_LEFT : return MovePath.STEP_TURN_LEFT; case MovePath.STEP_LATERAL_RIGHT : return MovePath.STEP_TURN_RIGHT; case MovePath.STEP_LATERAL_LEFT_BACKWARDS : return MovePath.STEP_TURN_LEFT; case MovePath.STEP_LATERAL_RIGHT_BACKWARDS : return MovePath.STEP_TURN_RIGHT; default : return shift;
    static int turnForLateralShift(int shift, int direction) {        if (direction == MovePath.STEP_FORWARDS) {            switch (shift) {                case MovePath.STEP_LATERAL_LEFT :                    return MovePath.STEP_TURN_LEFT;                case MovePath.STEP_LATERAL_RIGHT :                    return MovePath.STEP_TURN_RIGHT;                default :                    return shift;            }        } else {            switch (shift) {                case MovePath.STEP_TURN_LEFT :                    return MovePath.STEP_LATERAL_RIGHT_BACKWARDS;                case MovePath.STEP_TURN_RIGHT :                    return MovePath.STEP_LATERAL_LEFT_BACKWARDS;                default :                    return shift;            }        }    }