src/model/world/WorldWrapper.java
public boolean isVisible(int fromX, int fromY, int toX, int toY, double range) {
        if (range < Utils.getDistance(toX - fromX, toY - fromY)) {
            return false;
        }
        // dirty hack
        class BooleanValue {
            public boolean value = false;
        }
        BooleanValue visible = new BooleanValue();
        world.computeLine(fromX, fromY, toX, toY, cell -> {
            visible.value = cell.x == toX && cell.y == toY;
            return !cell.type.obstructsView;
        });
        return visible.value;
    }
/**
     * Returns true if position [toX, toY] can be seen from [fromX, fromY], taking into
     * account the specified range and visual obstructions along the line of sight.
     */
Returns true if position [toX, toY] can be seen from [fromX, fromY], taking into
account the specified range and visual obstructions along the line of sight.
Returns true if position [ toX toY ] can be seen from [ fromX fromY ] taking into account the specified range and visual obstructions along the line of sight .
public boolean isVisible(int fromX, int fromY, int toX, int toY, double range) {
        if (range < Utils.getDistance(toX - fromX, toY - fromY)) {
            return false;
        }
        class BooleanValue {
            public boolean value = false;
        }
        BooleanValue visible = new BooleanValue();
        world.computeLine(fromX, fromY, toX, toY, cell -> {
            visible.value = cell.x == toX && cell.y == toY;
            return !cell.type.obstructsView;
        });
        return visible.value;
    }
public boolean isVisible ( int fromX , int fromY , int toX , int toY , double range ) { if ( range < Utils . getDistance ( toX - fromX , toY - fromY ) ) { return false ; } class BooleanValue { public boolean value = false ; } BooleanValue visible = new BooleanValue ( ) ; world . computeLine ( fromX , fromY , toX , toY , cell -> { visible . value = cell . x == toX && cell . y == toY ; return ! cell . type . obstructsView ; } ) ; return visible . value ; }
Returns true if position [toX, toY] can be seen from [fromX, fromY], taking into
 account the specified range and visual obstructions along the line of sight.
Returns true if position [ toX toY ] can be seen from [ fromX fromY ] taking into account the specified range and visual obstructions along the line of sight .
// dirty hack