Package org.rspeer.game.web
Class Web
java.lang.Object
org.rspeer.game.web.Web
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static <T> T
static Position
static void
connect
(io.netty.channel.EventLoopGroup bootstrap) static void
static void
static double
Requests a distance to the position from the web serverstatic double
Requests a distance between two positions from the web serverstatic void
static WebPath
static boolean
static WebPath
pathBetween
(SceneNode start, SceneNode end) Requests a path from the web server Does not cache the resultstatic WebPath
Requests a path from the web server.static void
static void
setDebug
(boolean debug)
-
Constructor Details
-
Web
public Web()
-
-
Method Details
-
resetSettings
public static void resetSettings() -
connect
public static void connect(io.netty.channel.EventLoopGroup bootstrap) -
pathTo
Requests a path from the web server. Caches and recalculates based on the destination- Parameters:
node
- - the destination- Returns:
- path to the destination
-
pathBetween
Requests a path from the web server Does not cache the result- Parameters:
start
- - the start positionend
- - the end position- Returns:
- path from start to end
-
distance
Requests a distance to the position from the web server- Parameters:
position
- - the position- Returns:
- the distance to the position
-
distance
Requests a distance between two positions from the web server- Parameters:
start
- - the start positionend
- - the end position- Returns:
- the distance between the two positions
-
closestTo
-
closestTo
-
debug
-
setDebug
public static void setDebug(boolean debug) -
disableWilderness
public static void disableWilderness() -
enableWilderness
public static void enableWilderness() -
isWildernessEnabled
public static boolean isWildernessEnabled() -
getCachedPath
-
clearCachedPath
public static void clearCachedPath()
-