private void drawAllDeployment(Graphics g){
  Rectangle view=g.getClipBounds();
  int drawX=(view.x / (int)(HEX_WC * scale)) - 1;
  int drawY=(view.y / (int)(HEX_H * scale)) - 1;
  int drawWidth=(view.width / (int)(HEX_WC * scale)) + 3;
  int drawHeight=(view.height / (int)(HEX_H * scale)) + 3;
  IBoard board=game.getBoard();
  for (int i=0; i < drawHeight; i++) {
    for (int j=0; j < drawWidth; j++) {
      Coords c=new Coords(j + drawX,i + drawY);
      Enumeration<IPlayer> allP=game.getPlayers();
      IPlayer cp;
      int pCount=0;
      int bThickness=1 + 10 / game.getNoOfPlayers();
      while (allP.hasMoreElements()) {
        cp=allP.nextElement();
        if (board.isLegalDeployment(c,cp.getStartingPos())) {
          Color bC=new Color(PlayerColors.getColorRGB(cp.getColorIndex()));
          drawHexBorder(g,getHexLocation(c),bC,(bThickness + 2) * pCount,bThickness);
          pCount++;
        }
      }
    }
  }
}

private void drawAllDeployment ( Graphics g ) { Rectangle view = g . getClipBounds ( ) ; int drawX = ( view . x / ( int ) ( HEX_WC * scale ) ) - 1 ; int drawY = ( view . y / ( int ) ( HEX_H * scale ) ) - 1 ; int drawWidth = ( view . width / ( int ) ( HEX_WC * scale ) ) + 3 ; int drawHeight = ( view . height / ( int ) ( HEX_H * scale ) ) + 3 ; IBoard board = game . getBoard ( ) ; for ( int i = 0 ; i < drawHeight ; i ++ ) { for ( int j = 0 ; j < drawWidth ; j ++ ) { Coords c = new Coords ( j + drawX , i + drawY ) ; Enumeration < IPlayer > allP = game . getPlayers ( ) ; IPlayer cp ; int pCount = 0 ; int bThickness = 1 + 10 / game . getNoOfPlayers ( ) ; while ( allP . hasMoreElements ( ) ) { cp = allP . nextElement ( ) ; if ( board . isLegalDeployment ( c , cp . getStartingPos ( ) ) ) { Color bC = new Color ( PlayerColors . getColorRGB ( cp . getColorIndex ( ) ) ) ; drawHexBorder ( g , getHexLocation ( c ) , bC , ( bThickness + 2 ) * pCount , bThickness ) ; pCount ++ ; } } } } }
draw indicators for the deployment zones of all players
