/** Removes all children, actions, and listeners from this group. */ public void clear () { super.clear(); clearChildren(); }
/** Removes all children, actions, and listeners from this group. */ public void clear () { super.clear(); clearChildren(); }
/** Removes all children, actions, and listeners from this group. */ public void clear () { super.clear(); clearChildren(); }
void moveColumnsDown(int y) { ArrayList<Image> bottomColumns = new ArrayList<Image>(); ArrayList<Image> topColumns = new ArrayList<Image>(); int x = 0; while (x < viewWidth) { Image columnBottom = new Image(ScreenUtils.getFrameBufferTexture(x, 0, scale, y - scale)); columnBottom.setPosition(x, 0); bottomColumns.add(columnBottom); if (countPixels(x, y, scale, viewHeight - y) > 0) { Image columnTop = new Image(ScreenUtils.getFrameBufferTexture(x, y, scale, viewHeight - y)); columnTop.setPosition(x, y); topColumns.add(columnTop); } x = x + scale; } stage.getRoot().clearChildren(); for (Image column : bottomColumns) { stage.addActor(column); } for (Image column : topColumns) { stage.addActor(column); while (movePiece(column, 0, -scale)) {} } } }