if (object instanceof RectangleMapObject) {
RectangleMapObject rectangleObject = (RectangleMapObject) object;
if (rectangleObject.getProperties().containsKey(TiledMapManager.MOBILE)) {
Rectangle rect = rectangleObject.getRectangle();
Direction direction = null;
if (Boolean.valueOf((String) rectangleObject.getProperties().get("right_direction")))
direction = Direction.RIGHT;
else
direction = Direction.LEFT;