}
StringBuffer buffer = new StringBuffer(); if (structureType == Terrains.FUEL_TANK) { buffer.append("Fuel Tank #"); } else if (structureType == Terrains.BUILDING) { buffer.append("Building #"); } else if (structureType == Terrains.BRIDGE) { buffer.append("Bridge #"); } else { buffer.append("Structure #"); } buffer.append( this.id ); this.name = buffer.toString();  }
    public Building( int type, int id, String name, Vector coords ) {        this.type = type;        this.id = id;        this.name = name;        this.coordinates = coords;        // Insure that we've got a good type (and initialize our CF).        this.currentCF = getDefaultCF( this.type );        this.phaseCF = this.currentCF;        if ( this.currentCF == Building.UNKNOWN ) {            throw new IllegalArgumentException( "Invalid construction type: " +                                                this.type + "." );        }    }