core/src/de/lksbhm/mona/puzzle/Puzzle.java
/**
	 * Very unsafe method. Only use if you know that tile is in a circle. Better
	 * don't use it and have it only for updateInvalidListTiles
	 * 
	 * @param tile
	 * @param list
	 */
Very unsafe method. Only use if you know that tile is in a circle. Better
don't use it and have it only for updateInvalidListTiles

@param tile
@param list
Very unsafe method . Only use if you know that tile is in a circle . Better don ' t use it and have it only for updateInvalidListTiles @param tile @param list
private void addInvalidCircleToList(Piece tile, LinkedList<Piece> list) {
		Piece current = tile;
		Piece previous = null;
		Piece adjacent;
		do {
			adjacent = current.getInAdjacent();
			if (previous == adjacent && previous != null) {
				adjacent = current.getOutAdjacent();
			}
			previous = current;
			current = adjacent;
			if (!isInvalid[current.getX()][current.getY()]) {
				isInvalid[current.getX()][current.getY()] = true;
				list.add(current);
			}
		} while (current != tile);
	}
private void addInvalidCircleToList ( Piece tile , LinkedList < Piece > list ) { Piece current = tile ; Piece previous = null ; Piece adjacent ; do { adjacent = current . getInAdjacent ( ) ; if ( previous == adjacent && previous != null ) { adjacent = current . getOutAdjacent ( ) ; } previous = current ; current = adjacent ; if ( ! isInvalid [ current . getX ( ) ] [ current . getY ( ) ] ) { isInvalid [ current . getX ( ) ] [ current . getY ( ) ] = true ; list . add ( current ) ; } } while ( current != tile ) ; }
Very unsafe method.
Very unsafe method .