Class Vars

java.lang.Object
org.rspeer.game.Vars

public class Vars extends Object
Provides access to game vars
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    An enum representing the different types of vars that the game has
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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[]
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VARP_COUNT

      public static final int VARP_COUNT
      See Also:
    • BIT_MASKS

      public static final int[] BIT_MASKS
  • Constructor Details

    • Vars

      public Vars()
  • Method Details

    • getAll

      public static int[] getAll()
      Returns:
      All loaded varps
    • get

      public static int get(int index)
      Parameters:
      index - The index of the varp
      Returns:
      A varp at the given index
    • get

      public static int get(Vars.Type type, int index)
      Parameters:
      type - The type of the var
      index - The index of the var
      Returns:
      A var at the given index of the specified Vars.Type
      See Also:
    • get

      public static int get(VarComposite composite)
      Parameters:
      composite - The VarComposite type
      Returns:
      A var matching the specified VarComposite