public void selectEntity(int en) {
private void selectEntity(int en) {
    public void selectEntity(int en) {        // clear any previously considered attacks        if (en != cen) {            clearAttacks();            refreshAll();        }        if (client.game.getEntity(en) != null) {            cen = en;            clientgui.setSelectedEntityNum(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()) {                        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: " + //$NON-NLS-1$                            en);                    return;                }            } // End ce()-not-on-board            target(null);            clientgui.getBoardView().highlight(ce().getPosition());            clientgui.getBoardView().select(null);            clientgui.getBoardView().cursor(null);            refreshAll();            cacheVisibleTargets();            if (!clientgui.bv.isMovingUnits()) {                clientgui.bv.centerOnHex(ce().getPosition());            }                        // Update the menu bar.            clientgui.getMenuBar().setEntity(ce());                        // 2003-12-29, nemchenk -- only twist if crew conscious            setTwistEnabled(ce().canChangeSecondaryFacing() && ce().getCrew().isActive());            setFlipArmsEnabled(ce().canFlipArms());            updateSearchlight();            setFireModeEnabled(true);        } else {            System.err.println("FiringDisplay: tried to select non-existant entity: " + en); //$NON-NLS-1$        }    }