Module necro.game.tile.Area

Functions

distance (rect, x, y) Maximum relative distance from (x, y) to the area edges.
isHome (homeOwner, visitor, threshold) Returns true if visitor is within homeOwner’s homeArea, false otherwise.
iterateBorder (rect, outset)


Functions

distance (rect, x, y)
Maximum relative distance from (x, y) to the area edges. 0 for the area edges, < 0 inside the area, > 0 outside the area.

Parameters:

  • rect
  • x
  • y
isHome (homeOwner, visitor, threshold)
Returns true if visitor is within homeOwner’s homeArea, false otherwise. Excludes the area’s edge by default; use threshold = 1 to include the edges.

Parameters:

  • homeOwner
  • visitor
  • threshold
iterateBorder (rect, outset)

Parameters:

  • rect
  • outset
generated by LDoc 1.4.6