public void addKickCommand ( int power , int direction ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( "(kick " ) ; buf . append ( power ) ; buf . append ( ' ' ) ; buf . append ( direction ) ; buf . append ( ' ' ) ; fifo . add ( fifo . size ( ) , buf . toString ( ) ) ; }
This command accelerates the ball with the given power in the given direction .