int[] xcoords = { p.x + 21, p.x + 62, p.x + 83, p.x + 83, p.x + 62, p.x + 21, p.x, p.x }; int[] ycoords = { p.y, p.y, p.y + 35, p.y + 36, p.y + 71, p.y + 71, p.y + 36, p.y + 35 };
int[] xcoords = { p.x + (int)(21*scale), p.x + (int)(62*scale), p.x + (int)(83*scale), p.x + (int)(83*scale), p.x + (int)(62*scale), p.x + (int)(21*scale), p.x, p.x }; int[] ycoords = { p.y, p.y, p.y + (int)(35*scale), p.y + (int)(36*scale), p.y + (int)(71*scale), p.y + (int)(71*scale), p.y + (int)(36*scale), p.y + (int)(35*scale) };
    private void drawDeployment() {        // only update visible hexes        int drawX = view.x / 63 - 1;        int drawY = view.y / 72 - 1;        int drawWidth = view.width / 63 + 3;        int drawHeight = view.height / 72 + 3;        // loop through the hexes        for (int i = 0; i < drawHeight; i++) {            for (int j = 0; j < drawWidth; j++) {                Coords c = new Coords(j + drawX, i + drawY);                Point p = getHexLocation(c);                p.translate(-(view.x), -(view.y));                if (game.board.isLegalDeployment(c, m_plDeployer)) {                    backGraph.setColor(Color.yellow);                    int[] xcoords = { p.x + 21, p.x + 62, p.x + 83, p.x + 83,                                      p.x + 62, p.x + 21, p.x, p.x };                    int[] ycoords = { p.y, p.y, p.y + 35, p.y + 36, p.y + 71,                                      p.y + 71, p.y + 36, p.y + 35 };                    backGraph.drawPolygon(xcoords, ycoords, 8);                }            }        }    }