How do i get the amount of on actor currently on the scene. I want to change the world once all of one type of actor is gone.
if (getWorld().getObjects(/*ClassName*/.class).isEmpty()) Greenfoot.setWorld(/* ... */);
if (getWorld().getObjects(ClassName.class).size() == 0) Greenfoot.setWorld(SomeWorld);