public void addCatchCommand ( int direction ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "(catch " ) ; buf . append ( direction ) ; buf . append ( ' ' ) ; fifo . add ( fifo . size ( ) , buf . toString ( ) ) ; }
Goalie special command . Tries to catch the ball in a given direction relative to its body direction . If the catch is successful the ball will be in the goalies hand untill kicked away .