I want to make a loop that goes until all the objects of a certain Actor subclass are removed from the world.
I have tried:
while ( !getWorld(getObjects(Actor.Flower).isEmpty()) )
But I get an error saying that the variable "Actor" can't be found.
--------------------------------------------------------------
I also want to create a loop that goes until an Actor reaches -2, -2 of the world's height and width.
I have tried:
while ( !this.getWorld(getWidth() == -2) && !this.getWorld(getHeight() == -2) )
But I think this is probably very far off from what is supposed to be done.

