I'm creating a snowman game. The snowman will check for a fire and it can shoot ice. If the ice hits a fire it will "ice it", so it turns into a trappedfire. If a snowman walks into a trapped it will be removed. If nothing touches the trappedfire it will become a fire again after a few seconds. My problem is the last part, that the trapped fire will become a fire again after a few seconds. Help?
private void checkForFire()
{
Fire fire = (Fire)getOneIntersectingObject(Fire.class);
if(fire != null)
{
TrappedFire trappedFire = new TrappedFire();
trappedFire.setRotation(fire.getRotation());
getWorld().addObject(trappedFire, fire.getX(), fire.getY());
getWorld().removeObject(fire);
getWorld().removeObject(this);
