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.


1 | if (getWorld().getObjects( /*ClassName*/ . class ).isEmpty()) Greenfoot.setWorld( /* ... */ ); |
1 | if (getWorld().getObjects(ClassName. class ).size() == 0 ) Greenfoot.setWorld(SomeWorld); |