Module necro.game.system.LineOfSight

Functions

check (x1, y1, x2, y2, mask, skipTiles) Checks if a clear line of sight exists between the specified two points (with an optional number of tiles to skip relative to the starting position), testing for the presence of walls or solid entities.


Functions

check (x1, y1, x2, y2, mask, skipTiles)
Checks if a clear line of sight exists between the specified two points (with an optional number of tiles to skip relative to the starting position), testing for the presence of walls or solid entities.

Parameters:

  • x1
  • y1
  • x2
  • y2
  • mask
  • skipTiles
generated by LDoc 1.4.6