Module necro.game.tile.Collision

Functions

check (x, y, mask)
findNearbyVacantTile (x, y, mask, offsets)
getVacantTiles (entity, minDistance, maxDistance, radius, noAlign, mask)
setMask (entity, mask)
update (entity)

Tables

Group
Type


Functions

check (x, y, mask)

Parameters:

  • x
  • y
  • mask
findNearbyVacantTile (x, y, mask, offsets)

Parameters:

  • x
  • y
  • mask
  • offsets
getVacantTiles (entity, minDistance, maxDistance, radius, noAlign, mask)

Parameters:

  • entity
  • minDistance
  • maxDistance
  • radius
  • noAlign
  • mask
setMask (entity, mask)

Parameters:

  • entity
  • mask
update (entity)

Parameters:

  • entity

Tables

Group

Fields:

  • CHARACTER 65548
  • SOLID 65551
  • IGNORE_WALLS 65566
  • UNSAFE 704 - Deprecated
  • WEAPON_CLEARANCE 8195
  • ENEMY_PLACEMENT 65999
  • ITEM_PLACEMENT 67087
  • PLAYER_PLACEMENT 67535
Type

Fields:

  • NONE 0
  • WALL 1
  • OBJECT 2 - Chests, shrines
  • PLAYER 4 - Playable characters
  • ENEMY 8 - Enemies, cratelikes
  • CHARACTER 12 - Deprecated legacy value representing PLAYER|ENEMY
  • BORDER 16
  • FLOOR 32
  • HAZARD 64
  • LIQUID 128
  • EXIT 256
  • TRAP 512
  • ITEM 1024
  • FIXTURE 2048 - Wall torches, firepigs, doors, spike traps
  • FAMILIAR 4096
  • PREBOSS 8192
  • LUCK 16384 - Players wearing a ring of luck
  • CRATE 32768
  • ORB 65536 - Electric orbs
  • DOOR 131072 - Doors
generated by LDoc 1.4.6