public Hex(int level,ITerrain[] terrains,String theme,Coords c){
  this.level=level;
  coords=c;
  this.terrains=terrains;
  hsTerrains=new HashSet<Integer>((int)((Terrains.SIZE * 1.25) + 0.5),0.75f);
  for (int i=0; i < terrains.length; i++) {
    if (terrains[i] != null) {
      hsTerrains.add(i);
    }
  }
  if ((theme == null) || (theme.length() > 0)) {
    this.theme=theme;
  }
 else {
    this.theme=null;
  }
  originalTheme=this.theme;
}

public Hex ( int level , ITerrain [ ] terrains , String theme , Coords c ) { this . level = level ; coords = c ; this . terrains = terrains ; hsTerrains = new HashSet < Integer > ( ( int ) ( ( Terrains . SIZE * 1.25 ) + 0.5 ) , 0.75f ) ; for ( int i = 0 ; i < terrains . length ; i ++ ) { if ( terrains [ i ] != null ) { hsTerrains . add ( i ) ; } } if ( ( theme == null ) || ( theme . length ( ) > 0 ) ) { this . theme = theme ; } else { this . theme = null ; } originalTheme = this . theme ; }
constructs hex with all parameters .
