void clear(){
  if (!objects.isEmpty()) {
    logger.debug("Game objects not empty!");
    final Iterator<IEntity> it=iterator();
    while (it.hasNext()) {
      final IEntity entity=it.next();
      logger.debug("Residual entity: " + entity);
      entity.release();
    }
    objects.clear();
  }
}

void clear ( ) { if ( ! objects . isEmpty ( ) ) { logger . debug ( "Game objects not empty!" ) ; final Iterator < IEntity > it = iterator ( ) ; while ( it . hasNext ( ) ) { final IEntity entity = it . next ( ) ; logger . debug ( "Residual entity: " + entity ) ; entity . release ( ) ; } objects . clear ( ) ; } }
removes all the object entities .
