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 class
Vars.Type
Anenum
representing the different types ofvars
that the game has
-
Field Summary
Fields Modifier and Type Field Description static int[]
BIT_MASKS
static int
VARP_COUNT
-
Constructor Summary
Constructors Constructor Description Vars()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
get(int index)
static int
get(VarComposite composite)
static int
get(Vars.Type type, int index)
static int[]
getAll()
-
-
-
Field Detail
-
VARP_COUNT
public static final int VARP_COUNT
- See Also:
- Constant Field Values
-
BIT_MASKS
public static final int[] BIT_MASKS
-
-
Method Detail
-
getAll
public static int[] getAll()
- Returns:
- All loaded
varps
-
get
public static int get(int index)
- Parameters:
index
- The index of thevarp
- Returns:
- A
varp
at the given index
-
get
public static int get(Vars.Type type, int index)
-
get
public static int get(VarComposite composite)
- Parameters:
composite
- TheVarComposite
type- Returns:
- A
var
matching the specifiedVarComposite
-
-