public void addTeamGraphicCommand ( XPMImage xpm ) { for ( int x = 0 ; x < xpm . getArrayWidth ( ) ; x ++ ) { for ( int y = 0 ; y < xpm . getArrayHeight ( ) ; y ++ ) { StringBuilder buf = new StringBuilder ( ) ; String tile = xpm . getTile ( x , y ) ; buf . append ( "(team_graphic (" ) ; buf . append ( x ) ; buf . append ( ' ' ) ; buf . append ( y ) ; buf . append ( ' ' ) ; buf . append ( tile ) ; buf . append ( ' ' ) ; buf . append ( "))" ) ; fifo . add ( fifo . size ( ) , buf . toString ( ) ) ; } } }
Coach only command . The online coach can send teams - graphics as 256 x 64 XPM to the server . Each team graphic - command sends a 8x8 tile . X and Y are the coordinates of this tile so they range from 0 to 31 and 0 to 7 respectively . Each XPM line is a line from the 8x8 XPM tile .