private void _loadObjectsRoutine(MapLayer objectLayer) {
   if (getTileLayer() != null) {
     Iterator<MapObject> objects = objectLayer.getObjects().iterator();
     while (objects.hasNext()) {
       MapObject object = objects.next();
       Integer position_x = object.getProperties().get("x", Float.class).intValue();
       Integer position_y = object.getProperties().get("y", Float.class).intValue();
       listener.objectFound(object, position_x, position_y);
     }
   }
 }
 public boolean loadTmx(String filename) throws InterruptedException, STiledLevelException {
   this.filename = filename;
   map = _loadAssetsRoutine(this.filename);
   if (map != null) {
     levelRenderer = new OrthogonalTiledMapRenderer(map, 1);
     _loadSpecialTilesRoutine(map);
     _loadLayersRoutine(map);
     _loadObjectsRoutine(objectLayer);
     loaded = true;
     if (listener != null) {
       listener.tiledMapLoaded(this);
     }
   }
   return getLoaded();
 }
 public boolean loadTiledMap(TiledMap map) throws STiledLevelException {
   this.map = map;
   levelRenderer = new OrthogonalTiledMapRenderer(this.map, 1);
   MapProperties mapProperties = this.map.getProperties();
   Iterator<String> keyIterator = mapProperties.getKeys();
   while (keyIterator.hasNext()) {
     System.out.println(keyIterator.next());
   }
   _loadSpecialTilesRoutine(this.map);
   _loadLayersRoutine(this.map);
   _loadObjectsRoutine(objectLayer);
   loaded = true;
   if (listener != null) {
     listener.tiledMapLoaded(this);
   }
   return getLoaded();
 }