private void initializeAll() {
public void initializeAll() {
    private void initializeAll() {        // Initialize all buildings.        buildings.removeAllElements();        if (bldgByCoords == null) {            bldgByCoords = new Hashtable();        }        else {            bldgByCoords.clear();        }        // Walk through the hexes, creating buildings.        for (int y = 0; y < height; y++) {            for (int x = 0; x < width; x++) {                // Does this hex contain a building?                IHex curHex = getHex( x, y );                if ( curHex != null && curHex.containsTerrain( Terrains.BUILDING ) ) {                    // Yup, but is it a repeat?                    Coords coords = new Coords(x,y);                    if ( !bldgByCoords.containsKey(coords) ) {                        // Nope.  Try to create an object for the new building.                        try {                            Building bldg = new Building( coords, this );                            buildings.addElement( bldg );                            // Each building will identify the hexes it covers.                            Enumeration iter = bldg.getCoords();                            while ( iter.hasMoreElements() ) {                                bldgByCoords.put( iter.nextElement(), bldg );                            }                        }                        catch ( IllegalArgumentException excep ) {                            // Log the error and remove the                            // building from the board.                            System.err.println( "Unable to create building." );                            excep.printStackTrace();                            curHex.removeTerrain( Terrains.BUILDING );                        }                    } // End building-is-new                } // End hex-has-building                                }        }        // Initialize all exits.        for (int y = 0; y < height; y++) {            for (int x = 0; x < width; x++) {                initializeHex(x, y);            }        }    } // End private void initializeAll()