public void addPlayerInitCommand ( String teamName , boolean isGoalie ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "(init " ) ; buf . append ( teamName ) ; buf . append ( " (version " ) ; if ( isGoalie ) { buf . append ( serverVersion ) ; buf . append ( ") (goalie))" ) ; } else { buf . append ( serverVersion ) ; buf . append ( "))" ) ; } fifo . add ( fifo . size ( ) , buf . toString ( ) ) ; }
This is used to initialise a player .