int direction = ce().clipSecondaryFacing(ce().getPosition().direction(target));
int direction = ce().getFacing();  if ( null != target ) direction = ce().clipSecondaryFacing(ce().getPosition().direction(target));
    private void torsoTwist(Coords target) {        int direction = ce().clipSecondaryFacing(ce().getPosition().direction(target));        if (direction != ce().getSecondaryFacing()) {            clearAttacks();            attacks.addElement(new TorsoTwistAction(cen, direction));            ce().setSecondaryFacing(direction);            refreshAll();        }    }