|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Faction.FAbilityUsage
A Faction Ability Usage object represents a set of criterium that can be used to determine whether this faction allows a mob or player to use a particular ability, or class of abilities.
Faction.addAbilityUsage(String),
Faction.abilityUsages()| Method Summary | |
|---|---|
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 |
int |
flag()
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. |
int |
notflag()
A bitmask of ability flags that must NOT be set for this usage to apply to an ability |
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(int 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 |
| Method Detail |
|---|
java.lang.String abilityFlags()
setAbilityFlag(String)java.util.List<java.lang.String> setAbilityFlag(java.lang.String str)
str - the ability usage mask
abilityFlags(),
notflag(),
possibleAbilityID(),
type(),
domain(),
flag()int notflag()
abilityFlags(),
flag(),
Ability.FLAG_DESCSint flag()
abilityFlags(),
notflag(),
Ability.FLAG_DESCSboolean possibleAbilityID()
abilityFlags(),
CMObject.ID()int type()
abilityFlags(),
Ability.ACODE_DESCSint domain()
abilityFlags(),
Ability.DOMAIN_DESCSint low()
abilityFlags(),
setLow(int)void setLow(int newVal)
newVal - a new minimum faction valueabilityFlags(),
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.ObjectFaction.addAbilityUsage(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||