boolean function ( int arg0 , int arg1 ) { arg0 = arg0 + 1 ; arg1 = arg1 + 1 ; if ( _fields [ arg0 ] [ arg1 ] != Ship . EMPTY ) { Shipmodel loc0 = _myships [ _fields [ arg0 ] [ arg1 ] . inArrayPosition ( ) ] ; loc0 . setBomb ( ) ; return true ; } else { myTurn = ! myTurn ; return false ; } }
places a bomb of the opponent on your field concode_field_sep boolean myTurn concode_elem_sep Shipmodel[] _myships concode_elem_sep Ship[][] _fields concode_field_sep List<CoordinatePair> placeShip concode_elem_sep int getField concode_elem_sep boolean checkSurrounding