I want my actor z to check wether actor a, actor b or actor c are currently in the world. If none of them is in the world actor z should call a method. Could you give some example code please?


if (getWorld().getObjects(a.class).isEmpty() && getWorld().getObjects(b.class).isEmpty() && getWorld().getObjects(c.class).isEmpty()) { //call the method; }