lib/tunnel.js
// returns true if any of the tunnel corners touch any room corners
returns true if any of the tunnel corners touch any room corners
returns true if any of the tunnel corners touch any room corners
_atRoomCorner(room) {
    if (room.isCornerPoint(this.x, this.y)) {
      return true
    }
    if (room.isCornerPoint((this.x+this.width)-1, this.y)) {
      return true
    }
    if (room.isCornerPoint(this.x, (this.y+this.height)-1)) {
      return true
    }
    if (room.isCornerPoint((this.x+this.width)-1, (this.y+this.height)-1)) {
      return true
    }
    return false
  }
_atRoomCorner ( room ) { if ( room . isCornerPoint ( this . x , this . y ) ) { return true } if ( room . isCornerPoint ( ( this . x + this . width ) - 1 , this . y ) ) { return true } if ( room . isCornerPoint ( this . x , ( this . y + this . height ) - 1 ) ) { return true } if ( room . isCornerPoint ( ( this . x + this . width ) - 1 , ( this . y + this . height ) - 1 ) ) { return true } return false }
returns true if any of the tunnel corners touch any room corners
returns true if any of the tunnel corners touch any room corners