World worf = getWorld();
worf.removeObjects(worf.getObjects(null));
^^ This is in one of my Classes, which is a subclass of Actor, and works.
For some reason, when I change the method to a specific class (eg, Actor), I get this:
"cannot find symbol - variable Actor"
this is what it looks like in the code:
World worf = getWorld();
worf.removeObjects(worf.getObjects(Actor));
and also I imported these:
import greenfoot.*;
import java.lang.Class;
import java.lang.Object;
import java.util.List;
help much appreciated, thank you!