public static JSGob[] objectIdList(int radius, Coord offset,
                                       String... objects) {
        ArrayList<Integer> objids = new ArrayList<Integer>();
        Coord myCurrentCoord = MyCoord();
        myCurrentCoord = MapView.tilify(myCurrentCoord);
        Coord objectOffset = new Coord(offset).mul(tileSize);
        myCurrentCoord = myCurrentCoord.add(objectOffset); // making offset
        // point
        double minRadius = radius; // find rad
        synchronized (glob.oc) {
            for (Gob gob : glob.oc) {
                double objectDistance = gob.position().dist(myCurrentCoord) / 11; // currently
                // with
                // offset
                // System.out.println(objectDistance);
                for (String objName : objects) {
                    if (objectDistance <= minRadius
                            && gob.resname().contains(objName)) {
                        if (objName.startsWith("!"))
                            continue;
                        objids.add((Integer) gob.id);
                    }// object at finding radius
                }// for bjects
            }// GOBs
        }// sync
        JSGob[] ret = new JSGob[objids.size()];
        for (int i = 0; i < objids.size(); i++)
            ret[i] = new JSGob(objids.get(i));
        return ret;
    }