...just like the World would not be able to access the private variables from Healkit (even though they were created in that class).
if (!getWorld().getObjects(Bullet.class).isEmpty())
{
Actor bullet = (Actor)getWorld().getObjects(Bullet.class).get(0);
Actor enemy = bullet.getOneIntersectingObject(Enemy.class); // ***** error occurs here ********
if (enemy != null)
{
getWorld().removeObject(enemy);
getWorld().removeObject(bullet);
score++;
}
}