boolean function ( ) { for ( MastModel loc0 : mast ) if ( loc0 . getState ( ) == FIELD_STATE . SHIP ) return false ; return true ; }
check if every mast of ship has been hit . sprawdza czy zostaly trafione wszystkie maszty statku . concode_field_sep String name concode_elem_sep MastModel[] mast concode_field_sep String getName concode_elem_sep MastModel[] getMasts concode_elem_sep void sink concode_elem_sep boolean isConnected