What is the code to create a boolean that is recognizable in both the code for the world classes and actor classes? In other words I want a boolean that works in the an actor class and a world class.
if (getObjects(Food.class).isEmpty())
{
setBackground( ... );
// whatever else you want to do at this point
}if (getObjects(Food.class).isEmpty())
{
setBackground( ... );
// whatever else you want to do at this point
}