Class Vars

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

public class Vars extends Object
Provides access to game vars
  • 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 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
    • setVarcInteger

      public static void setVarcInteger(int index, int value)
    • setVarcString

      public static void setVarcString(int index, String value)