public/js-roguelike-skeleton/src/game.js
function(entity, x, y){
            var tile = this.map.get(x, y);
            return tile && !tile.blocksLos;
        }
function(entity, x, y){
            var tile = this.map.get(x, y);
            return tile && !tile.blocksLos;
        }
function ( entity , x , y ) { var tile = this . map . get ( x , y ) ; return tile && ! tile . blocksLos ; }
Checks if a map tile can be seen through.
This is where code for special cases like smoke, fog, x-ray vision can be implemented by checking the entity param.
@method entityCanSeeThrough
@param {Number} x - The x map tile coord to check.
@param {Number} y - The y map tile coord to check.
@return {Bool}
Checks if a map tile can be seen through . This is where code for special cases like smoke fog x - ray vision can be implemented by checking the entity param .