hasEndoSteel = false; hasFerroFibrous = false;  sLoadout.append( getWeapons() ) .append("\n") .append(getAmmo()) .append("\n") .append(getMisc());  sBasic.append( mech.getShortName() ); sBasic.append("\n"); if ( !isInf ) { sBasic.append( Math.round(mech.getWeight()) ) .append(" tons   " ); } if (mech.isClan()) { sBasic.append( "Clan" ); } else { sBasic.append( "Inner Sphere" ); } sBasic.append("\n\n"); sBasic.append( "Movement: " ) .append( mech.getWalkMP() ) .append( "/" ) .append( mech.getRunMP() ) .append( "/" ) .append( mech.getJumpMP() ) .append( "\n" ); if ( isMech ) { Mech aMech = (Mech) mech; sBasic.append( "Engine: " ) .append( aMech.engineRating() ); if (aMech.hasXL()) { sBasic.append( " XL" ); } sBasic.append("\n"); sBasic.append( "Heat Sinks: " ) .append( aMech.heatSinks() ); if (aMech.getHeatCapacity() > aMech.heatSinks()) { sBasic.append( " [" ) .append( aMech.getHeatCapacity() ) .append( "]" ); } sBasic.append("\n"); } sBasic.append("\n") .append( getInternalAndArmor() );
    public MechView(Entity entity) {        mech = entity;        isMech = entity instanceof Mech;        isInf = entity instanceof Infantry;    }