Class Web

java.lang.Object
org.rspeer.game.web.Web

public class Web extends Object
  • Constructor Details

    • Web

      public Web()
  • Method Details

    • resetSettings

      public static void resetSettings()
    • connect

      public static void connect(io.netty.channel.EventLoopGroup bootstrap)
    • pathTo

      public static WebPath pathTo(SceneNode node)
      Requests a path from the web server. Caches and recalculates based on the destination
      Parameters:
      node - - the destination
      Returns:
      path to the destination
    • pathBetween

      public static WebPath pathBetween(SceneNode start, SceneNode end)
      Requests a path from the web server Does not cache the result
      Parameters:
      start - - the start position
      end - - the end position
      Returns:
      path from start to end
    • distance

      public static double distance(SceneNode position)
      Requests a distance to the position from the web server
      Parameters:
      position - - the position
      Returns:
      the distance to the position
    • distance

      public static double distance(SceneNode start, SceneNode end)
      Requests a distance between two positions from the web server
      Parameters:
      start - - the start position
      end - - the end position
      Returns:
      the distance between the two positions
    • closestTo

      public static Position closestTo(SceneNode target, SceneNode... candidates)
    • closestTo

      public static <T> T closestTo(SceneNode target, Function<T,Position> function, T... candidates)
    • debug

      public static void debug(Object ctx, String msg)
    • setDebug

      public static void setDebug(boolean debug)
    • disableWilderness

      public static void disableWilderness()
    • enableWilderness

      public static void enableWilderness()
    • isWildernessEnabled

      public static boolean isWildernessEnabled()
    • getCachedPath

      public static WebPath getCachedPath()
    • clearCachedPath

      public static void clearCachedPath()