public void dispose() { super.dispose(); if (texture != null) { texture.dispose(); } if (batch != null) { batch.dispose(); } }
protected void processTouchDragged() { if (!locked) { if (getContainer() != null) { getContainer().sendToFront(this); } this.move(this.input.getTouchDX(), this.input.getTouchDY()); super.processTouchDragged(); } }
@Override public void dispose() { super.dispose(); if (print != null) { print.dispose(); print = null; } if (animation != null) { animation.dispose(); animation = null; } }
@Override public void update(long elapsedTime) { if (!visible) { return; } super.update(elapsedTime); if (print.isComplete()) { animation.update(elapsedTime); } printTime += elapsedTime; if (printTime >= totalDuration) { printTime = printTime % totalDuration; print.next(); } }
protected void processTouchPressed() { if (!input.isMoving()) { int posx = 0; int posy = 0; if (getContainer() == null) { posx = (int) ((getX() + input.getTouchX()) / blockSize); posy = (int) ((getY() + input.getTouchY()) / blockSize); } else { posx = (int) ((getContainer().getX() + getX() + input.getTouchX()) / blockSize); posy = (int) ((getContainer().getY() + getY() + input.getTouchY()) / blockSize); } mapId = fied2d.getType(posx, posy); super.processTouchPressed(); } }
protected void processTouchReleased() { if (!input.isMoving()) { super.processTouchReleased(); } }
protected void processTouchClicked() { if (!input.isMoving()) { super.processTouchClicked(); } }