Class World
java.lang.Object
org.rspeer.game.adapter.component.World
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()Retrieves the set of flags associated with the world.intgetId()Retrieves the location of the world.intgetMask()intgetPing()Deprecated.intReturns the population of the world.intstatic booleanChecks whether the current world is a members only world.static booleanisPVP()
-
Field Details
-
SKILL_TOTAL_500
public static final int SKILL_TOTAL_500- See Also:
-
SKILL_TOTAL_750
public static final int SKILL_TOTAL_750- See Also:
-
SKILL_TOTAL_1250
public static final int SKILL_TOTAL_1250- See Also:
-
SKILL_TOTAL_1500
public static final int SKILL_TOTAL_1500- See Also:
-
SKILL_TOTAL_1750
public static final int SKILL_TOTAL_1750- See Also:
-
SKILL_TOTAL_2000
public static final int SKILL_TOTAL_2000- See Also:
-
SKILL_TOTAL_2200
public static final int SKILL_TOTAL_2200- See Also:
-
-
Constructor Details
-
World
-
-
Method Details
-
isMembers
public static boolean isMembers()Checks whether the current world is a members only world.- Returns:
trueif the current world is a members only world,falseotherwise.
-
isPVP
public static boolean isPVP() -
getSkillTotal
public int getSkillTotal() -
getActivity
-
getDomain
-
getPing
Deprecated.Retrieves the ping of the current world. A cache is used to prevent excessive ping requests.- Returns:
- The ping of the current world, else -1 if the provider is null or an exception occurs.
-
getMask
public int getMask() -
getId
public int getId() -
getPopulation
public int getPopulation()Returns the population of the world.- Returns:
- the population of the world, or -1 if the provider is null
-
getFlags
Retrieves the set of flags associated with the world.- Returns:
- An EnumSet containing the flags associated with the world.
-
getLocation
Retrieves the location of the world.- Returns:
- The location of the world. Returns
World.Location.USif the provider is null. - Throws:
IllegalStateException- if the location is unknown. Please report it.
-