Interface CollisionMap

All Known Implementing Classes:
GlobalCollisionMap, LocalCollisionMap

public interface CollisionMap
Interface for querying tile collision data used in pathfinding.

CollisionMap provides methods to check whether movement is possible between adjacent tiles in any cardinal or diagonal direction. This is the foundation of the pathfinding system, determining which tiles are walkable.

Direction Methods

Each direction method returns true if movement is ALLOWED in that direction:

Diagonal Movement

Diagonal movement is only allowed if both the diagonal path AND the two adjacent cardinal paths are clear. For example, moving Northeast requires that North, East, and the diagonal tile itself are all accessible.

Implementation Classes

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    e(int x, int y, int z)
    Checks if movement East (x+1) is allowed from the specified position.
    default boolean
    e(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if movement East is allowed from the specified world point.
    default boolean
    fullBlock(int x, int y, int z)
    Checks if a tile is fully blocked (like game objects that occupy the entire tile).
    default boolean
    fullBlock(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if a tile is fully blocked at the specified world point.
    boolean
    n(int x, int y, int z)
    Checks if movement North (y+1) is allowed from the specified position.
    default boolean
    n(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if movement North is allowed from the specified world point.
    default boolean
    ne(int x, int y, int z)
    Checks if diagonal movement Northeast is allowed from the specified position.
    default boolean
    ne(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if diagonal movement Northeast is allowed from the specified world point.
    default boolean
    nw(int x, int y, int z)
    Checks if diagonal movement Northwest is allowed from the specified position.
    default boolean
    nw(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if diagonal movement Northwest is allowed from the specified world point.
    default boolean
    s(int x, int y, int z)
    Checks if movement South (y-1) is allowed from the specified position.
    default boolean
    s(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if movement South is allowed from the specified world point.
    default boolean
    se(int x, int y, int z)
    Checks if diagonal movement Southeast is allowed from the specified position.
    default boolean
    se(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if diagonal movement Southeast is allowed from the specified world point.
    default boolean
    sw(int x, int y, int z)
    Checks if diagonal movement Southwest is allowed from the specified position.
    default boolean
    sw(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if diagonal movement Southwest is allowed from the specified world point.
    default boolean
    w(int x, int y, int z)
    Checks if movement West (x-1) is allowed from the specified position.
    default boolean
    w(net.runelite.api.coords.WorldPoint worldPoint)
    Checks if movement West is allowed from the specified world point.
  • Method Details

    • n

      boolean n(int x, int y, int z)
      Checks if movement North (y+1) is allowed from the specified position.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if movement North is allowed
    • e

      boolean e(int x, int y, int z)
      Checks if movement East (x+1) is allowed from the specified position.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if movement East is allowed
    • s

      default boolean s(int x, int y, int z)
      Checks if movement South (y-1) is allowed from the specified position. Implemented by checking if North is allowed from the southern tile.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if movement South is allowed
    • w

      default boolean w(int x, int y, int z)
      Checks if movement West (x-1) is allowed from the specified position. Implemented by checking if East is allowed from the western tile.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if movement West is allowed
    • ne

      default boolean ne(int x, int y, int z)
      Checks if diagonal movement Northeast is allowed from the specified position. Requires North, East, and both intermediate paths to be clear.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if diagonal movement Northeast is allowed
    • nw

      default boolean nw(int x, int y, int z)
      Checks if diagonal movement Northwest is allowed from the specified position. Requires North, West, and both intermediate paths to be clear.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if diagonal movement Northwest is allowed
    • se

      default boolean se(int x, int y, int z)
      Checks if diagonal movement Southeast is allowed from the specified position. Requires South, East, and both intermediate paths to be clear.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if diagonal movement Southeast is allowed
    • sw

      default boolean sw(int x, int y, int z)
      Checks if diagonal movement Southwest is allowed from the specified position. Requires South, West, and both intermediate paths to be clear.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if diagonal movement Southwest is allowed
    • fullBlock

      default boolean fullBlock(int x, int y, int z)
      Checks if a tile is fully blocked (like game objects that occupy the entire tile). A tile is fully blocked if movement is not allowed in any cardinal direction.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the plane/level
      Returns:
      true if the tile is fully blocked
    • n

      default boolean n(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if movement North is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if movement North is allowed
    • s

      default boolean s(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if movement South is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if movement South is allowed
    • w

      default boolean w(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if movement West is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if movement West is allowed
    • e

      default boolean e(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if movement East is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if movement East is allowed
    • ne

      default boolean ne(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if diagonal movement Northeast is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if diagonal movement Northeast is allowed
    • nw

      default boolean nw(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if diagonal movement Northwest is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if diagonal movement Northwest is allowed
    • se

      default boolean se(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if diagonal movement Southeast is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if diagonal movement Southeast is allowed
    • sw

      default boolean sw(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if diagonal movement Southwest is allowed from the specified world point.
      Parameters:
      worldPoint - the world point to check from
      Returns:
      true if diagonal movement Southwest is allowed
    • fullBlock

      default boolean fullBlock(net.runelite.api.coords.WorldPoint worldPoint)
      Checks if a tile is fully blocked at the specified world point.
      Parameters:
      worldPoint - the world point to check
      Returns:
      true if the tile is fully blocked in all cardinal directions