public static interface Faction.FAbilityUsage
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
abilityFlags() |
The unconverted ability mask, denoting ability ids, domains, flags, etc.
|
int |
domain() |
An ability domain that an ability must be in order for this usage to apply, or -1
|
long |
flagsBitmap() |
A bitmask of ability flags that MUST be set for this usage to apply to an ability
|
int |
high() |
Returns the maximum value that a player must have in the faction to be able to use the selected
ability referred to by the ability flags of this usage criterium.
|
int |
low() |
The minimum value that a player must have in the faction to be able to use the selected
ability referred to by the ability flags of this usage criterium.
|
long |
notFlagsBitmap() |
A bitmask of ability flags that must NOT be set for this usage to apply to an ability
|
boolean |
notRange() |
Returns whether the low()-high() ranges is negated or not.
|
boolean |
possibleAbilityID() |
Whether the abilityFlags() method is possibly a specific Ability ID
|
java.util.List<java.lang.String> |
setAbilityFlag(java.lang.String str) |
Sets the ability usage masks and methods from an ability id, domain, flags, etc.
|
void |
setHigh(int newVal) |
Sets the maximum value that a player must have in the faction to be able to use the selected
ability referred to by the ability flags of this usage criterium.
|
void |
setLow(java.lang.String newVal) |
Sets the minimum value that a player must have in the faction to be able to use the selected
ability referred to by the ability flags of this usage criterium.
|
java.lang.String |
toString() |
Returns a semicolon-delimited string of the values of this ability usage, suitable for
using to create a new one later.
|
int |
type() |
An ability code that an ability must be in order for this usage to apply, or -1
|
java.lang.String abilityFlags()
setAbilityFlag(String)
java.util.List<java.lang.String> setAbilityFlag(java.lang.String str)
str
- the ability usage maskabilityFlags()
,
notFlagsBitmap()
,
possibleAbilityID()
,
type()
,
domain()
,
flagsBitmap()
long notFlagsBitmap()
abilityFlags()
,
flagsBitmap()
,
Ability.FLAG_DESCS
long flagsBitmap()
abilityFlags()
,
notFlagsBitmap()
,
Ability.FLAG_DESCS
boolean possibleAbilityID()
abilityFlags()
,
CMObject.ID()
int type()
abilityFlags()
,
Ability.ACODE_DESCS
int domain()
abilityFlags()
,
Ability.DOMAIN_DESCS
boolean notRange()
int low()
abilityFlags()
,
setLow(String)
void setLow(java.lang.String newVal)
newVal
- a new minimum faction value, optionally starting with "!" to negate rangeabilityFlags()
,
low()
int high()
abilityFlags()
,
setHigh(int)
void setHigh(int newVal)
newVal
- a new maximum faction valueabilityFlags()
,
high()
java.lang.String toString()
toString
in class java.lang.Object
Faction.addAbilityUsage(String)