use of com.badlogic.gdx.scenes.scene2d.Actor in project netthreads-libgdx by alistairrutherford.
the class Layer method enter.
@Override
public void enter() {
SnapshotArray<Actor> list = getChildren();
int size = list.size;
for (int i = 0; i < size; i++) {
Actor actor = list.get(i);
if (actor instanceof Layer) {
Layer layer = (Layer) actor;
layer.enter();
}
}
}
use of com.badlogic.gdx.scenes.scene2d.Actor in project netthreads-libgdx by alistairrutherford.
the class Layer method touchDragged.
@Override
public boolean touchDragged(int x, int y, int pointer) {
boolean handled = false;
SnapshotArray<Actor> list = getChildren();
int size = list.size;
int index = 0;
while (index < size && !handled) {
Actor actor = list.get(index);
if (actor instanceof Layer) {
Layer layer = (Layer) actor;
handled = layer.touchDragged(x, y, pointer);
}
index++;
}
return handled;
}
use of com.badlogic.gdx.scenes.scene2d.Actor in project netthreads-libgdx by alistairrutherford.
the class Layer method exit.
@Override
public void exit() {
SnapshotArray<Actor> list = getChildren();
int size = list.size;
for (int i = 0; i < size; i++) {
Actor actor = list.get(i);
if (actor instanceof Layer) {
Layer layer = (Layer) actor;
layer.exit();
}
}
}
use of com.badlogic.gdx.scenes.scene2d.Actor in project netthreads-libgdx by alistairrutherford.
the class Layer method touchDown.
@Override
public boolean touchDown(int x, int y, int pointer, int button) {
boolean handled = false;
SnapshotArray<Actor> list = getChildren();
int size = list.size;
int index = 0;
while (index < size && !handled) {
Actor actor = list.get(index);
if (actor instanceof Layer) {
Layer layer = (Layer) actor;
handled = layer.touchDown(x, y, pointer, button);
}
index++;
}
return handled;
}
use of com.badlogic.gdx.scenes.scene2d.Actor in project netthreads-libgdx by alistairrutherford.
the class Layer method touchUp.
@Override
public boolean touchUp(int x, int y, int pointer, int button) {
boolean handled = false;
SnapshotArray<Actor> list = getChildren();
int size = list.size;
int index = 0;
while (index < size && !handled) {
Actor actor = list.get(index);
if (actor instanceof Layer) {
Layer layer = (Layer) actor;
handled = layer.touchUp(x, y, pointer, button);
}
index++;
}
return handled;
}
Aggregations