Class Vars
java.lang.Object
org.rspeer.game.Vars
Provides access to game
vars-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAnenumrepresenting the different types ofvarsthat the game has -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intget(int index) static intget(VarComposite composite) static intstatic int[]getAll()static intgetParentVar(int varbitIndex) static voidsetVarcInteger(int index, int value) static voidsetVarcString(int index, String value)
-
Field Details
-
BIT_MASKS
public static final int[] BIT_MASKS
-
-
Constructor Details
-
Vars
public Vars()
-
-
Method Details
-
getAll
public static int[] getAll()- Returns:
- All loaded
varps
-
getParentVar
public static int getParentVar(int varbitIndex) -
get
public static int get(int index) - Parameters:
index- The index of thevarp- Returns:
- A
varpat the given index
-
get
-
get
- Parameters:
composite- TheVarCompositetype- Returns:
- A
varmatching the specifiedVarComposite
-
setVarcInteger
public static void setVarcInteger(int index, int value) -
setVarcString
-