public interface IVariablesAPI
Modifier and Type | Method and Description |
---|---|
int |
get(int setting)
Gets the setting at a given index.
|
boolean |
get(int setting,
int bit)
Gets the setting as a bit at a given index.
|
int |
get(int setting,
int startBit,
int size)
Gets the setting as a part of the full setting at a given index.
|
int |
getVarbit(int varbitId)
Gets a value corresponding to the passed varbit id.
|
int |
getVarbit(Varbits varbit)
Gets a value corresponding to the passed varbit.
|
int |
getVarp(int varpId)
Gets a value corresponding to the passed varp id.
|
int |
getVarp(VarPlayer varp)
Gets a value corresponding to the passed varp.
|
int[] |
getVarps() |
int get(int setting)
setting
- The setting index to return the value ofboolean get(int setting, int bit)
setting
- The setting index to return the value ofbit
- The bit index to return the value of.int get(int setting, int startBit, int size)
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.int getVarbit(Varbits varbit)
varbit
- the varbitint getVarbit(int varbitId)
varbitId
- the varbit idint getVarp(VarPlayer varp)
varp
- the varpint getVarp(int varpId)
varpId
- the varp idint[] getVarps()