question: public void removeDirection ( final Direction dir , final boolean face ) { RPAction action ; int size ; action = new RPAction ( ) ; action . put ( "type" , "move" ) ; action . put ( "dir" , - dir . get ( ) ) ; send ( action ) ; directions . remove ( dir ) ; size = directions . size ( ) ; if ( size == 0 ) { action = new RPAction ( ) ; action . put ( "type" , "stop" ) ; } else { if ( face ) { action = new FaceRPAction ( directions . get ( size - 1 ) ) ; } else { action = new MoveRPAction ( directions . get ( size - 1 ) ) ; } } send ( action ) ; }
target:  Remove a player movement direction.