public Building( int type, int id, String name, Vector coords ) { this.type = type; this.id = id; this.name = name; this.coordinates = coords;
public Building( Coords coords, IBoard board, int structureType ) {     this.id = coords.hashCode();   this.coordinates.addElement( coords );   IHex startHex = board.getHex( coords );   if ( !startHex.containsTerrain( structureType ) ) { throw new IllegalArgumentException( "The coordinates, " + coords.getBoardNum() + ", do not contain a building." ); } this.type = startHex.terrainLevel( structureType );
    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 + "." );        }    }