Package com.epicbot.api.shared.methods
Interface IVariablesAPI
public interface IVariablesAPI
-
Method Summary
Modifier and TypeMethodDescriptionintget(int setting) Gets the setting at a given index.booleanget(int setting, int bit) Gets the setting as a bit at a given index.intget(int setting, int startBit, int size) Gets the setting as a part of the full setting at a given index.intgetVarbit(int varbitId) Gets a value corresponding to the passed varbit id.intGets a value corresponding to the passed varbit.intgetVarp(int varpId) Gets a value corresponding to the passed varp id.intGets a value corresponding to the passed varp.int[]getVarps()
-
Method Details
-
get
int get(int setting) Gets the setting at a given index.- Parameters:
setting- The setting index to return the value of- Returns:
- an int representing the setting of the given setting id; otherwise -1.
-
get
boolean get(int setting, int bit) Gets the setting as a bit at a given index.- Parameters:
setting- The setting index to return the value ofbit- The bit index to return the value of.- Returns:
- the requested bit
-
get
int get(int setting, int startBit, int size) Gets the setting as a part of the full setting at a given index.- Parameters:
setting- The setting index to return the value of.startBit- The bit as which the requested values start.size- The size of the value, being a number of bits.- Returns:
- the requested setting region
-
getVarbit
Gets a value corresponding to the passed varbit.- Parameters:
varbit- the varbit- Returns:
- the value or -1 if the varbit does not exist
-
getVarbit
int getVarbit(int varbitId) Gets a value corresponding to the passed varbit id.- Parameters:
varbitId- the varbit id- Returns:
- the value or -1 if the varbit does not exist
-
getVarp
Gets a value corresponding to the passed varp.- Parameters:
varp- the varp- Returns:
- the value
-
getVarp
int getVarp(int varpId) Gets a value corresponding to the passed varp id.- Parameters:
varpId- the varp id- Returns:
- the value or -1 if the varp does not exist
-
getVarps
int[] getVarps()
-