if (!client.bv.isMovingUnits()) { client.bv.centerOnHex(ce().getPosition()); }
if (!client.bv.isMovingUnits()) { client.bv.centerOnHex(ce().getPosition()); }   client.getMenuBar().setEntity( ce() );
    public void selectEntity(int en) {        // clear any previously considered attacks        if (en != cen) {            clearAttacks();            refreshAll();        }        if (client.game.getEntity(en) != null) {            this.cen = en;            // If the selected entity is not on the board, use the next one.            // ASSUMPTION: there will always be *at least one* entity on map.            if ( null == ce().getPosition() ) {    // Walk through the list of entities for this player.    for ( int nextId = client.getNextEntityNum(en);          nextId != en;          nextId = client.getNextEntityNum(nextId) ) {        if (null != client.game.getEntity(nextId).getPosition()) {      this.cen = nextId;      break;        }                } // Check the player's next entity.                // We were *supposed* to have found an on-board entity.                if ( null == ce().getPosition() ) {                    System.err.println                        ("FiringDisplay: could not find an on-board entity: " +                         en);                    return;                }            } // End ce()-not-on-board            target(null);            client.game.board.highlight(ce().getPosition());            client.game.board.select(null);            client.game.board.cursor(null);            refreshAll();            cacheVisibleTargets();	        if (!client.bv.isMovingUnits()) {	            client.bv.centerOnHex(ce().getPosition());	        }                        butTwist.setEnabled(ce().canChangeSecondaryFacing());            butFindClub.setEnabled(Compute.canMechFindClub(client.game, en));            butSpot.setEnabled(ce().canSpot()              && client.game.getOptions().booleanOption("indirect_fire"));            butFlipArms.setEnabled(ce().canFlipArms());        } else {            System.err.println("FiringDisplay: tried to select non-existant entity: " + en);        }    }