void function ( int arg0 , int arg1 , int arg2 , Graphics2D arg3 , Image arg4 ) { int loc0 = arg0 * ( s + t ) ; int loc1 = arg1 * h + ( arg0 % 2 ) * h / 2 ; if ( arg2 == 1 ) { arg3 . drawImage ( arg4 , loc0 + 18 , loc1 + 16 , ( arg4 . getWidth ( null ) ) / 2 , ( arg4 . getHeight ( null ) + 8 ) / 2 , null ) ; } }
name : fillhex parameters : i , j : the x , y coordinates of the initial point of the hexagon n : an integer number to indicate a letter to draw in the hex g2 : the graphics context to draw on return : void called from : calls : hex purpose : this draws a filled in polygon based on the coordinates of the hexagon . the colour depends on whether n is negative or positive . the colour is set by hexgame.colourone and hexgame.colourtwo . the value of n is converted to letter and drawn in the hexagon . concode_field_sep boolean orFLAT concode_elem_sep int r concode_elem_sep boolean ORIENT concode_elem_sep int t concode_elem_sep int s concode_elem_sep boolean orPOINT concode_elem_sep int h concode_elem_sep boolean XYVertex concode_elem_sep int BORDERS concode_field_sep Point drawHex concode_elem_sep void setBorders concode_elem_sep void setXYasVertex concode_elem_sep void setSide concode_elem_sep Polygon hex concode_elem_sep void setHeight concode_elem_sep Point pxtoHex