Class Web
java.lang.Object
org.rspeer.game.web.Web
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic <T> Tstatic Coordstatic voidconnect(io.netty.channel.EventLoopGroup bootstrap) static voidstatic voidstatic voidstatic doubleRequests a distance to the position from the web serverstatic doubleRequests a distance between two positions from the web serverstatic voidstatic voidstatic WebPathstatic HouseProfilestatic voidstatic booleanisLocal()static booleanstatic WebPathpathBetween(SceneNode start, SceneNode end) Requests a path from the web server Does not cache the resultstatic WebPathpathBetween(SceneNode start, Area end) static WebPathRequests a path from the web server.static WebPathstatic voidstatic voidsetDebug(boolean debug) static voidsetHouseProfile(HouseProfile houseProfile) static voidsetLocal(boolean local) static voidsetSetting(Setting setting, boolean val) static voidsetSetting(Setting setting, int val)
-
Constructor Details
-
Web
public Web()
-
-
Method Details
-
resetSettings
public static void resetSettings() -
connect
public static void connect(io.netty.channel.EventLoopGroup bootstrap) -
pathTo
-
pathTo
-
pathBetween
-
pathBetween
-
distance
Requests a distance to the position from the web server- Parameters:
position- - the position- Returns:
- the distance to the position
-
distance
-
closestTo
-
initiateVars
public static void initiateVars() -
closestTo
-
debug
-
setDebug
public static void setDebug(boolean debug) -
enableExperimental
public static void enableExperimental() -
disableExperimental
public static void disableExperimental() -
disableWilderness
public static void disableWilderness() -
enableWilderness
public static void enableWilderness() -
setSetting
-
setLocal
public static void setLocal(boolean local) -
setSetting
-
addSettingsListener
-
isWildernessEnabled
public static boolean isWildernessEnabled() -
getCachedPath
-
clearCachedPath
public static void clearCachedPath() -
isLocal
public static boolean isLocal() -
getHouseProfile
-
setHouseProfile
-