out.write( "<mascTurns value=\"" ); value = mech.getMASCTurns(); out.write( String.valueOf(value) ); out.write( "\" /><mascUsed value=\"" ); out.write( mech.isMASCUsed() ? "true" : "false" ); out.write( "\" />" );
    public static void encode( Entity entity, Writer out )        throws IOException    {        Enumeration iter; // used when marching through a list of sub-elements        Coords coords;        int turns;        String substr;        // First, validate our input.        if ( null == entity ) {            throw new IllegalArgumentException( "The entity is null." );        }        if ( null == out ) {            throw new IllegalArgumentException( "The writer is null." );        }        // Our EntityEncoder already gave us our root element.        // TODO : write BipedMech-specific elements.    }