HashSet<Coords> ignore = new HashSet(); Vector<Coords> candidate = new Vector();
HashSet<Coords> ignore = new HashSet<Coords>(); Vector<Coords> candidate = new Vector<Coords>();
    protected static void addCliffs(IBoard board, int modifier) {        HashSet<Coords> ignore = new HashSet(); //previously considered hexes        Vector<Coords> candidate = new Vector();        for(int x=0;x<board.getWidth();x++) {            for(int y=0;y<board.getHeight();y++) {                Coords c = new Coords(x,y);                int elevation = board.getHex(c).getElevation();                if(ignore.contains(c))continue;                if(!hexCouldBeCliff(board,c)) {                    ignore.add(c);                    continue;                }                findCliffNeighbours(board,c, candidate,ignore);                //is the candidate interesting (at least 3 hexes)?                if(candidate.size() >= 3 && Compute.randomInt(100) < modifier) {                    if(elevation > 0)                        elevation --;                    else                        elevation ++;                    for(Enumeration<Coords> e=candidate.elements();e.hasMoreElements();) {                        c = e.nextElement();                        IHex hex = board.getHex(c);                        hex.setElevation(elevation);                    }                }                candidate.removeAllElements();            }        }    }