Hi
I've a class in my game called Drone. If a drone hits an object of class fireball, both disappear. Everytime a drone disappears there should spawn a new one. But how can I check in the World class if an object is still there or not?
if(isTouching(Fireball.class))
{
removeTouching(Fireball.class);
getWorld.addObject(new Drone(),x,y);
getWorld.removeObject(this);
}