if ( unused.equals("") ) unused = "None";
if ( unused.equals("") ) unused = Messages.getString("MechDisplay.None");
    public void displayMech(Entity en) {        // Clear the "Affected By" list.        narcList.removeAll();        // Walk through the list of teams.  There        // can't be more teams than players.        StringBuffer buff = null;        Enumeration loop = clientgui.getClient().game.getPlayers();        while ( loop.hasMoreElements() ) {            Player player = (Player) loop.nextElement();            int team = player.getTeam();            if ( en.isNarcedBy( team ) &&                 !player.isObserver()) {                buff = new StringBuffer( "NARCed by " );                buff.append( player.getName() );                buff.append( " [" )                    .append( Player.teamNames[team] )                    .append( "]" );                narcList.add( buff.toString() );            }            if ( en.isINarcedBy( team ) &&                    !player.isObserver()) {                   buff = new StringBuffer( "iNarc Homing Pod from " );                   buff.append( player.getName() );                   buff.append( " [" )                       .append( Player.teamNames[team] )                       .append( "] attached." );                   narcList.add( buff.toString() );            }        }        if ( en.isINarcedWith(INarcPod.ECM)) {               buff = new StringBuffer( "iNarc ECM Pod attached." );               narcList.add( buff.toString() );        }        if ( en.isINarcedWith(INarcPod.HAYWIRE)) {               buff = new StringBuffer( "iNarc Haywire Pod attached." );               narcList.add( buff.toString() );        }        if ( en.isINarcedWith(INarcPod.NEMESIS)) {               buff = new StringBuffer( "iNarc Nemesis Pod attached." );               narcList.add( buff.toString() );        }        // Show inferno track.        if ( en.infernos.isStillBurning() ) {            buff = new StringBuffer( "Inferno burn remaining: " );            buff.append( en.infernos.getTurnsLeftToBurn() );            narcList.add( buff.toString() );        }        // Show ECM affect.        Coords pos = en.getPosition();        if ( Compute.isAffectedByECM( en, pos, pos ) ) {            narcList.add( "In enemy ECM field." );        }        // Show Turret Locked.        if ( en instanceof Tank &&             !( (Tank) en ).hasNoTurret() &&             !en.canChangeSecondaryFacing() ) {            narcList.add( "Turret locked" );        }        // Show jammed weapons.        Enumeration weaps = en.getWeapons();        while ( weaps.hasMoreElements() ) {            Mounted weapon = (Mounted) weaps.nextElement();            if ( weapon.isJammed() ) {                buff = new StringBuffer( weapon.getName() );                buff.append( " is Jammed" );                narcList.add( buff.toString() );            }        }        // Show breached locations.        for ( int loc = 0; loc < en.locations(); loc++ ) {            if ( Entity.LOC_BREACHED == en.getLocationStatus(loc) ) {                buff = new StringBuffer( en.getLocationName(loc) );                buff.append( " Breached" );                narcList.add( buff.toString() );            }        }        // transport values        String unused = en.getUnusedString();        if ( unused.equals("") ) unused = "None";        this.unusedR.setText( unused );        Enumeration iter = en.getLoadedUnits().elements();        carrysR.setText( null );        boolean hasText = false;        while ( iter.hasMoreElements() ) {            carrysR.append( ((Entity)iter.nextElement()).getShortName() );            hasText = true;            if ( iter.hasMoreElements() ) {                carrysR.append( "\n" );            }        }        // Show club.        Mounted club = Compute.clubMechHas( en );        if ( null != club ) {            if ( hasText ) {                carrysR.append( "\n" );            }            carrysR.append( club.getName() );        }        // Show Heat Effects, but only for Mechs.        heatR.setText("");        if (en instanceof Mech) {            boolean moreHeatMove = false, moreHeatFire = false;            boolean hasTSM = false;            if (((Mech)en).hasTSM()) hasTSM = true;            if (en.heat>=30) {                heatR.append("Was automaticly shut down\n");                moreHeatMove = true;            }            if (en.heat >=25 && !moreHeatMove) {                if (hasTSM) {                    heatR.append ("-4 Movement Points\n");                } else {                    heatR.append("-5 Movement Points\n");                }                moreHeatMove = true;            }            if (en.heat >= 24) {                heatR.append("+4 Modifier to Fire\n");                moreHeatFire = true;            }            if (en.heat >= 20 && !moreHeatMove) {                if (hasTSM) {                    heatR.append ("-3 Movement Points\n");                } else {                    heatR.append ("-4 Movement Points\n");                }                moreHeatMove = true;            }            if (en.heat >= 17 && !moreHeatFire) {                heatR.append ("+3 Modifier to Fire\n");                moreHeatFire = true;            }            if (en.heat >= 15 && !moreHeatMove) {                if (hasTSM) {                    heatR.append ("-2 Movement Points\n");                } else {                    heatR.append ("-3 Movement Points\n");                }                moreHeatMove = true;            }            if (en.heat >= 13 && !moreHeatFire) {                heatR.append ("+2 Modifier to Fire\n");                moreHeatFire = true;            }            if (en.heat >= 10 && !moreHeatMove) {                if (hasTSM) {                    heatR.append ("-1 Movement Point\n");                } else {                    heatR.append ("-2 Movement Points\n");                }                moreHeatMove = true;            }            if (en.heat == 9 && !moreHeatMove && hasTSM) {                heatR.append ("+1 Movement Point (TSM)\n");                moreHeatMove = true;            }            if (en.heat >= 8 && !moreHeatFire) {                heatR.append ("+1 Modifier to Fire\n");                moreHeatFire = true;            }            if (en.heat >= 5 && !moreHeatMove) {                heatR.append ("-1 Movement Point\n");                moreHeatMove = true;            }            if (en.heat <=4) {                heatR.append ("None\n");            }        }    } // End public void displayMech( Entity )