public ArrayList<Actor> getObjectsAt(int dx, int dy, Class<? extends Actor> searchedClass)
    {
        ArrayList<Actor> objectsAtPosition = new ArrayList<>();

        for (Actor actor : actorList)
        {
            if(searchedClass.isAssignableFrom(actor.getClass()))
                continue;

            if(actor.getRect().contains(dx, dy))
                objectsAtPosition.add(actor);
        }
        return objectsAtPosition;
    }