Package org.rspeer.game
Class Vars
- java.lang.Object
-
- org.rspeer.game.Vars
-
public class Vars extends Object
Provides access to gamevars
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVars.TypeAnenumrepresenting the different types ofvarsthat the game has
-
Field Summary
Fields Modifier and Type Field Description static int[]BIT_MASKS
-
Constructor Summary
Constructors Constructor Description Vars()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intget(int index)static intget(VarComposite composite)static intget(Vars.Type type, int index)static int[]getAll()static intgetParentVar(int varbitIndex)
-
-
-
Method Detail
-
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
public static int get(Vars.Type type, int index)
-
get
public static int get(VarComposite composite)
- Parameters:
composite- TheVarCompositetype- Returns:
- A
varmatching the specifiedVarComposite
-
-