I'm trying to make this loop, but I don't know the syntax.
The code errors on the .getX() and .getY() methods for the object
for(Object las : getObjectsInRange(80, laser.class)){ las1x = las.getX() - getX(); las1y = las.getY() - getY(); }