Class TeleportationRules

java.lang.Object
games.stendhal.server.core.config.zone.TeleportationRules

public class TeleportationRules extends Object
  • Constructor Details

    • TeleportationRules

      public TeleportationRules()
  • Method Details

    • disallowIn

      public void disallowIn(int x, int y, int width, int height)
      Block teleporting to a rectangular area.
      Parameters:
      x - x coordinate of the blocked area
      y - y coordinate of the blocked area
      width - width of the blocked area
      height - height of the blocked area
    • disallowIn

      public void disallowIn()
      Block teleporting in.
    • isInAllowed

      public boolean isInAllowed(int x, int y)
      Check if teleporting to a location is allowed.
      Parameters:
      x - x coordinate
      y - y coordinate
      Returns:
      true if teleporting to the point is allowed, false otherwise
    • disallowOut

      public void disallowOut(int x, int y, int width, int height)
      Block teleporting from a rectangular area.
      Parameters:
      x - x coordinate of the blocked area
      y - y coordinate of the blocked area
      width - width of the blocked area
      height - height of the blocked area
    • disallowOut

      public void disallowOut()
      Block teleporting out.
    • isOutAllowed

      public boolean isOutAllowed(int x, int y)
      Check if teleporting from a location is allowed.
      Parameters:
      x - x coordinate
      y - y coordinate
      Returns:
      true if teleporting to the point is allowed, false otherwise