if (!e.isSelectableThisTurn(client.game)) { client.setDisplayVisible(true); client.mechD.displayEntity(e);
if ( client.game.getTurn().isValidEntity(e,client.game) ) { if (ce() != null) { ce().setPosition(null); client.bv.redrawEntity(ce());  Enumeration iter =  ce().getLoadedUnits().elements(); while ( iter.hasMoreElements() ) { Entity other = (Entity) iter.nextElement();  ce().unload( other ); other.setTransportId( Entity.NONE ); other.newRound(client.game.getRoundCount()); } }  selectEntity(e.getId()); if ( null != e.getPosition() ) { client.bv.centerOnHex(e.getPosition()); } } } else { client.setDisplayVisible(true); client.mechD.displayEntity(e); if (e.isDeployed()) {
    public void selectUnit(BoardViewEvent b) {    	Entity e = client.game.getEntity(b.getEntityId());    	if (client.isMyTurn()) {    		if (!e.isSelectableThisTurn(client.game)) {            	client.setDisplayVisible(true);            	client.mechD.displayEntity(e);            	client.bv.centerOnHex(e.getPosition());            } else {            	if (ce() != null) {		            ce().setPosition(null);		            client.bv.redrawEntity(ce());		            // Unload any loaded units.		            Enumeration iter =  ce().getLoadedUnits().elements();		            while ( iter.hasMoreElements() ) {		                Entity other = (Entity) iter.nextElement();		                // Please note, the Server never got this unit's load orders.		                ce().unload( other );		                other.setTransportId( Entity.NONE );		                other.newRound(client.game.getRoundCount());		            }				}	            	            selectEntity(e.getId());    		}    	} else {        	client.setDisplayVisible(true);        	client.mechD.displayEntity(e);    		if (e.isDeployed()) {            	client.bv.centerOnHex(e.getPosition());    		}    	}    }